// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package credentialschema
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
type _GenesisState_2_list struct {
list *[]*CredentialSchema
}
func (x *_GenesisState_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchema)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchema)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
v := new(CredentialSchema)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
v := new(CredentialSchema)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) IsValid() bool {
return x.list != nil
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_credential_schemas protoreflect.FieldDescriptor
fd_GenesisState_schema_counter protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_genesis_proto_init()
md_GenesisState = File_veranablockchain_credentialschema_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
fd_GenesisState_credential_schemas = md_GenesisState.Fields().ByName("credential_schemas")
fd_GenesisState_schema_counter = md_GenesisState.Fields().ByName("schema_counter")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
if len(x.CredentialSchemas) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.CredentialSchemas})
if !f(fd_GenesisState_credential_schemas, value) {
return
}
}
if x.SchemaCounter != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaCounter)
if !f(fd_GenesisState_schema_counter, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.GenesisState.params":
return x.Params != nil
case "veranablockchain.credentialschema.GenesisState.credential_schemas":
return len(x.CredentialSchemas) != 0
case "veranablockchain.credentialschema.GenesisState.schema_counter":
return x.SchemaCounter != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.GenesisState.params":
x.Params = nil
case "veranablockchain.credentialschema.GenesisState.credential_schemas":
x.CredentialSchemas = nil
case "veranablockchain.credentialschema.GenesisState.schema_counter":
x.SchemaCounter = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.credentialschema.GenesisState.credential_schemas":
if len(x.CredentialSchemas) == 0 {
return protoreflect.ValueOfList(&_GenesisState_2_list{})
}
listValue := &_GenesisState_2_list{list: &x.CredentialSchemas}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.credentialschema.GenesisState.schema_counter":
value := x.SchemaCounter
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
case "veranablockchain.credentialschema.GenesisState.credential_schemas":
lv := value.List()
clv := lv.(*_GenesisState_2_list)
x.CredentialSchemas = *clv.list
case "veranablockchain.credentialschema.GenesisState.schema_counter":
x.SchemaCounter = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.credentialschema.GenesisState.credential_schemas":
if x.CredentialSchemas == nil {
x.CredentialSchemas = []*CredentialSchema{}
}
value := &_GenesisState_2_list{list: &x.CredentialSchemas}
return protoreflect.ValueOfList(value)
case "veranablockchain.credentialschema.GenesisState.schema_counter":
panic(fmt.Errorf("field schema_counter of message veranablockchain.credentialschema.GenesisState is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.credentialschema.GenesisState.credential_schemas":
list := []*CredentialSchema{}
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
case "veranablockchain.credentialschema.GenesisState.schema_counter":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.CredentialSchemas) > 0 {
for _, e := range x.CredentialSchemas {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.SchemaCounter != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaCounter))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.SchemaCounter != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaCounter))
i--
dAtA[i] = 0x18
}
if len(x.CredentialSchemas) > 0 {
for iNdEx := len(x.CredentialSchemas) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.CredentialSchemas[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemas", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.CredentialSchemas = append(x.CredentialSchemas, &CredentialSchema{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CredentialSchemas[len(x.CredentialSchemas)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaCounter", wireType)
}
x.SchemaCounter = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaCounter |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/credentialschema/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the credentialschema module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
CredentialSchemas []*CredentialSchema `protobuf:"bytes,2,rep,name=credential_schemas,json=credentialSchemas,proto3" json:"credential_schemas,omitempty"`
SchemaCounter uint64 `protobuf:"varint,3,opt,name=schema_counter,json=schemaCounter,proto3" json:"schema_counter,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
func (x *GenesisState) GetCredentialSchemas() []*CredentialSchema {
if x != nil {
return x.CredentialSchemas
}
return nil
}
func (x *GenesisState) GetSchemaCounter() uint64 {
if x != nil {
return x.SchemaCounter
}
return 0
}
var File_veranablockchain_credentialschema_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_credentialschema_genesis_proto_rawDesc = []byte{
0x0a, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x01, 0x0a,
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4c, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7,
0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x68, 0x0a, 0x12, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x04, 0xc8, 0xde,
0x1f, 0x00, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x42, 0xaa, 0x02, 0x0a,
0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x21, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0xca, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_veranablockchain_credentialschema_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_credentialschema_genesis_proto_rawDescData = file_veranablockchain_credentialschema_genesis_proto_rawDesc
)
func file_veranablockchain_credentialschema_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_credentialschema_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_credentialschema_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_credentialschema_genesis_proto_rawDescData)
})
return file_veranablockchain_credentialschema_genesis_proto_rawDescData
}
var file_veranablockchain_credentialschema_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_credentialschema_genesis_proto_goTypes = []interface{}{
(*GenesisState)(nil), // 0: veranablockchain.credentialschema.GenesisState
(*Params)(nil), // 1: veranablockchain.credentialschema.Params
(*CredentialSchema)(nil), // 2: veranablockchain.credentialschema.CredentialSchema
}
var file_veranablockchain_credentialschema_genesis_proto_depIdxs = []int32{
1, // 0: veranablockchain.credentialschema.GenesisState.params:type_name -> veranablockchain.credentialschema.Params
2, // 1: veranablockchain.credentialschema.GenesisState.credential_schemas:type_name -> veranablockchain.credentialschema.CredentialSchema
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_veranablockchain_credentialschema_genesis_proto_init() }
func file_veranablockchain_credentialschema_genesis_proto_init() {
if File_veranablockchain_credentialschema_genesis_proto != nil {
return
}
file_veranablockchain_credentialschema_params_proto_init()
file_veranablockchain_credentialschema_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_credentialschema_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_credentialschema_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_credentialschema_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_credentialschema_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_credentialschema_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_credentialschema_genesis_proto = out.File
file_veranablockchain_credentialschema_genesis_proto_rawDesc = nil
file_veranablockchain_credentialschema_genesis_proto_goTypes = nil
file_veranablockchain_credentialschema_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_module_module_proto_init()
md_Module = File_veranablockchain_credentialschema_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.credentialschema.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/credentialschema/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_credentialschema_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_credentialschema_module_module_proto_rawDesc = []byte{
0x0a, 0x35, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31,
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a,
0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x43, 0xba, 0xc0, 0x96,
0xda, 0x01, 0x3d, 0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x42, 0xd4, 0x02, 0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x55, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x4d, 0xaa, 0x02, 0x28,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x28, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x4d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0xe2, 0x02, 0x34, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x2a, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a,
0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_credentialschema_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_credentialschema_module_module_proto_rawDescData = file_veranablockchain_credentialschema_module_module_proto_rawDesc
)
func file_veranablockchain_credentialschema_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_credentialschema_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_credentialschema_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_credentialschema_module_module_proto_rawDescData)
})
return file_veranablockchain_credentialschema_module_module_proto_rawDescData
}
var file_veranablockchain_credentialschema_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_credentialschema_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.credentialschema.module.Module
}
var file_veranablockchain_credentialschema_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_credentialschema_module_module_proto_init() }
func file_veranablockchain_credentialschema_module_module_proto_init() {
if File_veranablockchain_credentialschema_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_credentialschema_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_credentialschema_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_credentialschema_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_credentialschema_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_credentialschema_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_credentialschema_module_module_proto = out.File
file_veranablockchain_credentialschema_module_module_proto_rawDesc = nil
file_veranablockchain_credentialschema_module_module_proto_goTypes = nil
file_veranablockchain_credentialschema_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package credentialschema
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Params protoreflect.MessageDescriptor
fd_Params_credential_schema_trust_deposit protoreflect.FieldDescriptor
fd_Params_credential_schema_schema_max_size protoreflect.FieldDescriptor
fd_Params_credential_schema_issuer_grantor_validation_validity_period_max_days protoreflect.FieldDescriptor
fd_Params_credential_schema_verifier_grantor_validation_validity_period_max_days protoreflect.FieldDescriptor
fd_Params_credential_schema_issuer_validation_validity_period_max_days protoreflect.FieldDescriptor
fd_Params_credential_schema_verifier_validation_validity_period_max_days protoreflect.FieldDescriptor
fd_Params_credential_schema_holder_validation_validity_period_max_days protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_params_proto_init()
md_Params = File_veranablockchain_credentialschema_params_proto.Messages().ByName("Params")
fd_Params_credential_schema_trust_deposit = md_Params.Fields().ByName("credential_schema_trust_deposit")
fd_Params_credential_schema_schema_max_size = md_Params.Fields().ByName("credential_schema_schema_max_size")
fd_Params_credential_schema_issuer_grantor_validation_validity_period_max_days = md_Params.Fields().ByName("credential_schema_issuer_grantor_validation_validity_period_max_days")
fd_Params_credential_schema_verifier_grantor_validation_validity_period_max_days = md_Params.Fields().ByName("credential_schema_verifier_grantor_validation_validity_period_max_days")
fd_Params_credential_schema_issuer_validation_validity_period_max_days = md_Params.Fields().ByName("credential_schema_issuer_validation_validity_period_max_days")
fd_Params_credential_schema_verifier_validation_validity_period_max_days = md_Params.Fields().ByName("credential_schema_verifier_validation_validity_period_max_days")
fd_Params_credential_schema_holder_validation_validity_period_max_days = md_Params.Fields().ByName("credential_schema_holder_validation_validity_period_max_days")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.CredentialSchemaTrustDeposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.CredentialSchemaTrustDeposit)
if !f(fd_Params_credential_schema_trust_deposit, value) {
return
}
}
if x.CredentialSchemaSchemaMaxSize != uint64(0) {
value := protoreflect.ValueOfUint64(x.CredentialSchemaSchemaMaxSize)
if !f(fd_Params_credential_schema_schema_max_size, value) {
return
}
}
if x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != uint32(0) {
value := protoreflect.ValueOfUint32(x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays)
if !f(fd_Params_credential_schema_issuer_grantor_validation_validity_period_max_days, value) {
return
}
}
if x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != uint32(0) {
value := protoreflect.ValueOfUint32(x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays)
if !f(fd_Params_credential_schema_verifier_grantor_validation_validity_period_max_days, value) {
return
}
}
if x.CredentialSchemaIssuerValidationValidityPeriodMaxDays != uint32(0) {
value := protoreflect.ValueOfUint32(x.CredentialSchemaIssuerValidationValidityPeriodMaxDays)
if !f(fd_Params_credential_schema_issuer_validation_validity_period_max_days, value) {
return
}
}
if x.CredentialSchemaVerifierValidationValidityPeriodMaxDays != uint32(0) {
value := protoreflect.ValueOfUint32(x.CredentialSchemaVerifierValidationValidityPeriodMaxDays)
if !f(fd_Params_credential_schema_verifier_validation_validity_period_max_days, value) {
return
}
}
if x.CredentialSchemaHolderValidationValidityPeriodMaxDays != uint32(0) {
value := protoreflect.ValueOfUint32(x.CredentialSchemaHolderValidationValidityPeriodMaxDays)
if !f(fd_Params_credential_schema_holder_validation_validity_period_max_days, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.Params.credential_schema_trust_deposit":
return x.CredentialSchemaTrustDeposit != uint64(0)
case "veranablockchain.credentialschema.Params.credential_schema_schema_max_size":
return x.CredentialSchemaSchemaMaxSize != uint64(0)
case "veranablockchain.credentialschema.Params.credential_schema_issuer_grantor_validation_validity_period_max_days":
return x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_verifier_grantor_validation_validity_period_max_days":
return x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_issuer_validation_validity_period_max_days":
return x.CredentialSchemaIssuerValidationValidityPeriodMaxDays != uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_verifier_validation_validity_period_max_days":
return x.CredentialSchemaVerifierValidationValidityPeriodMaxDays != uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_holder_validation_validity_period_max_days":
return x.CredentialSchemaHolderValidationValidityPeriodMaxDays != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.Params"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.Params.credential_schema_trust_deposit":
x.CredentialSchemaTrustDeposit = uint64(0)
case "veranablockchain.credentialschema.Params.credential_schema_schema_max_size":
x.CredentialSchemaSchemaMaxSize = uint64(0)
case "veranablockchain.credentialschema.Params.credential_schema_issuer_grantor_validation_validity_period_max_days":
x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays = uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_verifier_grantor_validation_validity_period_max_days":
x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays = uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_issuer_validation_validity_period_max_days":
x.CredentialSchemaIssuerValidationValidityPeriodMaxDays = uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_verifier_validation_validity_period_max_days":
x.CredentialSchemaVerifierValidationValidityPeriodMaxDays = uint32(0)
case "veranablockchain.credentialschema.Params.credential_schema_holder_validation_validity_period_max_days":
x.CredentialSchemaHolderValidationValidityPeriodMaxDays = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.Params"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.Params.credential_schema_trust_deposit":
value := x.CredentialSchemaTrustDeposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.Params.credential_schema_schema_max_size":
value := x.CredentialSchemaSchemaMaxSize
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.Params.credential_schema_issuer_grantor_validation_validity_period_max_days":
value := x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.Params.credential_schema_verifier_grantor_validation_validity_period_max_days":
value := x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.Params.credential_schema_issuer_validation_validity_period_max_days":
value := x.CredentialSchemaIssuerValidationValidityPeriodMaxDays
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.Params.credential_schema_verifier_validation_validity_period_max_days":
value := x.CredentialSchemaVerifierValidationValidityPeriodMaxDays
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.Params.credential_schema_holder_validation_validity_period_max_days":
value := x.CredentialSchemaHolderValidationValidityPeriodMaxDays
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.Params"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.Params.credential_schema_trust_deposit":
x.CredentialSchemaTrustDeposit = value.Uint()
case "veranablockchain.credentialschema.Params.credential_schema_schema_max_size":
x.CredentialSchemaSchemaMaxSize = value.Uint()
case "veranablockchain.credentialschema.Params.credential_schema_issuer_grantor_validation_validity_period_max_days":
x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays = uint32(value.Uint())
case "veranablockchain.credentialschema.Params.credential_schema_verifier_grantor_validation_validity_period_max_days":
x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays = uint32(value.Uint())
case "veranablockchain.credentialschema.Params.credential_schema_issuer_validation_validity_period_max_days":
x.CredentialSchemaIssuerValidationValidityPeriodMaxDays = uint32(value.Uint())
case "veranablockchain.credentialschema.Params.credential_schema_verifier_validation_validity_period_max_days":
x.CredentialSchemaVerifierValidationValidityPeriodMaxDays = uint32(value.Uint())
case "veranablockchain.credentialschema.Params.credential_schema_holder_validation_validity_period_max_days":
x.CredentialSchemaHolderValidationValidityPeriodMaxDays = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.Params"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.Params.credential_schema_trust_deposit":
panic(fmt.Errorf("field credential_schema_trust_deposit of message veranablockchain.credentialschema.Params is not mutable"))
case "veranablockchain.credentialschema.Params.credential_schema_schema_max_size":
panic(fmt.Errorf("field credential_schema_schema_max_size of message veranablockchain.credentialschema.Params is not mutable"))
case "veranablockchain.credentialschema.Params.credential_schema_issuer_grantor_validation_validity_period_max_days":
panic(fmt.Errorf("field credential_schema_issuer_grantor_validation_validity_period_max_days of message veranablockchain.credentialschema.Params is not mutable"))
case "veranablockchain.credentialschema.Params.credential_schema_verifier_grantor_validation_validity_period_max_days":
panic(fmt.Errorf("field credential_schema_verifier_grantor_validation_validity_period_max_days of message veranablockchain.credentialschema.Params is not mutable"))
case "veranablockchain.credentialschema.Params.credential_schema_issuer_validation_validity_period_max_days":
panic(fmt.Errorf("field credential_schema_issuer_validation_validity_period_max_days of message veranablockchain.credentialschema.Params is not mutable"))
case "veranablockchain.credentialschema.Params.credential_schema_verifier_validation_validity_period_max_days":
panic(fmt.Errorf("field credential_schema_verifier_validation_validity_period_max_days of message veranablockchain.credentialschema.Params is not mutable"))
case "veranablockchain.credentialschema.Params.credential_schema_holder_validation_validity_period_max_days":
panic(fmt.Errorf("field credential_schema_holder_validation_validity_period_max_days of message veranablockchain.credentialschema.Params is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.Params"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.Params.credential_schema_trust_deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.Params.credential_schema_schema_max_size":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.Params.credential_schema_issuer_grantor_validation_validity_period_max_days":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.Params.credential_schema_verifier_grantor_validation_validity_period_max_days":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.Params.credential_schema_issuer_validation_validity_period_max_days":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.Params.credential_schema_verifier_validation_validity_period_max_days":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.Params.credential_schema_holder_validation_validity_period_max_days":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.Params"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.CredentialSchemaTrustDeposit != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaTrustDeposit))
}
if x.CredentialSchemaSchemaMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaSchemaMaxSize))
}
if x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays))
}
if x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays))
}
if x.CredentialSchemaIssuerValidationValidityPeriodMaxDays != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaIssuerValidationValidityPeriodMaxDays))
}
if x.CredentialSchemaVerifierValidationValidityPeriodMaxDays != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaVerifierValidationValidityPeriodMaxDays))
}
if x.CredentialSchemaHolderValidationValidityPeriodMaxDays != 0 {
n += 1 + runtime.Sov(uint64(x.CredentialSchemaHolderValidationValidityPeriodMaxDays))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.CredentialSchemaHolderValidationValidityPeriodMaxDays != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaHolderValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x38
}
if x.CredentialSchemaVerifierValidationValidityPeriodMaxDays != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaVerifierValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x30
}
if x.CredentialSchemaIssuerValidationValidityPeriodMaxDays != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaIssuerValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x28
}
if x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x20
}
if x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x18
}
if x.CredentialSchemaSchemaMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaSchemaMaxSize))
i--
dAtA[i] = 0x10
}
if x.CredentialSchemaTrustDeposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CredentialSchemaTrustDeposit))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaTrustDeposit", wireType)
}
x.CredentialSchemaTrustDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaTrustDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaSchemaMaxSize", wireType)
}
x.CredentialSchemaSchemaMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaSchemaMaxSize |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays", wireType)
}
x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays", wireType)
}
x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaIssuerValidationValidityPeriodMaxDays", wireType)
}
x.CredentialSchemaIssuerValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaIssuerValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaVerifierValidationValidityPeriodMaxDays", wireType)
}
x.CredentialSchemaVerifierValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaVerifierValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaHolderValidationValidityPeriodMaxDays", wireType)
}
x.CredentialSchemaHolderValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CredentialSchemaHolderValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/credentialschema/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CredentialSchemaTrustDeposit uint64 `protobuf:"varint,1,opt,name=credential_schema_trust_deposit,json=credentialSchemaTrustDeposit,proto3" json:"credential_schema_trust_deposit,omitempty"`
CredentialSchemaSchemaMaxSize uint64 `protobuf:"varint,2,opt,name=credential_schema_schema_max_size,json=credentialSchemaSchemaMaxSize,proto3" json:"credential_schema_schema_max_size,omitempty"`
CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays uint32 `protobuf:"varint,3,opt,name=credential_schema_issuer_grantor_validation_validity_period_max_days,json=credentialSchemaIssuerGrantorValidationValidityPeriodMaxDays,proto3" json:"credential_schema_issuer_grantor_validation_validity_period_max_days,omitempty"`
CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays uint32 `protobuf:"varint,4,opt,name=credential_schema_verifier_grantor_validation_validity_period_max_days,json=credentialSchemaVerifierGrantorValidationValidityPeriodMaxDays,proto3" json:"credential_schema_verifier_grantor_validation_validity_period_max_days,omitempty"`
CredentialSchemaIssuerValidationValidityPeriodMaxDays uint32 `protobuf:"varint,5,opt,name=credential_schema_issuer_validation_validity_period_max_days,json=credentialSchemaIssuerValidationValidityPeriodMaxDays,proto3" json:"credential_schema_issuer_validation_validity_period_max_days,omitempty"`
CredentialSchemaVerifierValidationValidityPeriodMaxDays uint32 `protobuf:"varint,6,opt,name=credential_schema_verifier_validation_validity_period_max_days,json=credentialSchemaVerifierValidationValidityPeriodMaxDays,proto3" json:"credential_schema_verifier_validation_validity_period_max_days,omitempty"`
CredentialSchemaHolderValidationValidityPeriodMaxDays uint32 `protobuf:"varint,7,opt,name=credential_schema_holder_validation_validity_period_max_days,json=credentialSchemaHolderValidationValidityPeriodMaxDays,proto3" json:"credential_schema_holder_validation_validity_period_max_days,omitempty"`
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_params_proto_rawDescGZIP(), []int{0}
}
func (x *Params) GetCredentialSchemaTrustDeposit() uint64 {
if x != nil {
return x.CredentialSchemaTrustDeposit
}
return 0
}
func (x *Params) GetCredentialSchemaSchemaMaxSize() uint64 {
if x != nil {
return x.CredentialSchemaSchemaMaxSize
}
return 0
}
func (x *Params) GetCredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays() uint32 {
if x != nil {
return x.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays
}
return 0
}
func (x *Params) GetCredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays() uint32 {
if x != nil {
return x.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays
}
return 0
}
func (x *Params) GetCredentialSchemaIssuerValidationValidityPeriodMaxDays() uint32 {
if x != nil {
return x.CredentialSchemaIssuerValidationValidityPeriodMaxDays
}
return 0
}
func (x *Params) GetCredentialSchemaVerifierValidationValidityPeriodMaxDays() uint32 {
if x != nil {
return x.CredentialSchemaVerifierValidationValidityPeriodMaxDays
}
return 0
}
func (x *Params) GetCredentialSchemaHolderValidationValidityPeriodMaxDays() uint32 {
if x != nil {
return x.CredentialSchemaHolderValidationValidityPeriodMaxDays
}
return 0
}
var File_veranablockchain_credentialschema_params_proto protoreflect.FileDescriptor
var file_veranablockchain_credentialschema_params_proto_rawDesc = []byte{
0x0a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe7, 0x06, 0x0a,
0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x74, 0x72, 0x75,
0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x1c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x48,
0x0a, 0x21, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1d, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x44, 0x63, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69,
0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74,
0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x79,
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x3c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x4d, 0x61,
0x78, 0x44, 0x61, 0x79, 0x73, 0x12, 0x8e, 0x01, 0x0a, 0x46, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x69,
0x66, 0x69, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x5f, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79,
0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x79, 0x73,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x3e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72,
0x47, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x4d,
0x61, 0x78, 0x44, 0x61, 0x79, 0x73, 0x12, 0x7b, 0x0a, 0x3c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x73, 0x73, 0x75,
0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x6d, 0x61,
0x78, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x35, 0x63, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x73,
0x73, 0x75, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x4d, 0x61, 0x78, 0x44,
0x61, 0x79, 0x73, 0x12, 0x7f, 0x0a, 0x3e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65,
0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x78,
0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x37, 0x63, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72,
0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x4d, 0x61, 0x78,
0x44, 0x61, 0x79, 0x73, 0x12, 0x7b, 0x0a, 0x3c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72,
0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x78, 0x5f,
0x64, 0x61, 0x79, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x35, 0x63, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x48, 0x6f, 0x6c, 0x64,
0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69,
0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x4d, 0x61, 0x78, 0x44, 0x61, 0x79,
0x73, 0x3a, 0x33, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x2a, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa9, 0x02, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xa2,
0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xca, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xe2, 0x02, 0x2d,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x22,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x3a, 0x3a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_credentialschema_params_proto_rawDescOnce sync.Once
file_veranablockchain_credentialschema_params_proto_rawDescData = file_veranablockchain_credentialschema_params_proto_rawDesc
)
func file_veranablockchain_credentialschema_params_proto_rawDescGZIP() []byte {
file_veranablockchain_credentialschema_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_credentialschema_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_credentialschema_params_proto_rawDescData)
})
return file_veranablockchain_credentialschema_params_proto_rawDescData
}
var file_veranablockchain_credentialschema_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_credentialschema_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.credentialschema.Params
}
var file_veranablockchain_credentialschema_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_credentialschema_params_proto_init() }
func file_veranablockchain_credentialschema_params_proto_init() {
if File_veranablockchain_credentialschema_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_credentialschema_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_credentialschema_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_credentialschema_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_credentialschema_params_proto_depIdxs,
MessageInfos: file_veranablockchain_credentialschema_params_proto_msgTypes,
}.Build()
File_veranablockchain_credentialschema_params_proto = out.File
file_veranablockchain_credentialschema_params_proto_rawDesc = nil
file_veranablockchain_credentialschema_params_proto_goTypes = nil
file_veranablockchain_credentialschema_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package credentialschema
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryListCredentialSchemasRequest protoreflect.MessageDescriptor
fd_QueryListCredentialSchemasRequest_tr_id protoreflect.FieldDescriptor
fd_QueryListCredentialSchemasRequest_modified_after protoreflect.FieldDescriptor
fd_QueryListCredentialSchemasRequest_response_max_size protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryListCredentialSchemasRequest = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryListCredentialSchemasRequest")
fd_QueryListCredentialSchemasRequest_tr_id = md_QueryListCredentialSchemasRequest.Fields().ByName("tr_id")
fd_QueryListCredentialSchemasRequest_modified_after = md_QueryListCredentialSchemasRequest.Fields().ByName("modified_after")
fd_QueryListCredentialSchemasRequest_response_max_size = md_QueryListCredentialSchemasRequest.Fields().ByName("response_max_size")
}
var _ protoreflect.Message = (*fastReflection_QueryListCredentialSchemasRequest)(nil)
type fastReflection_QueryListCredentialSchemasRequest QueryListCredentialSchemasRequest
func (x *QueryListCredentialSchemasRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListCredentialSchemasRequest)(x)
}
func (x *QueryListCredentialSchemasRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListCredentialSchemasRequest_messageType fastReflection_QueryListCredentialSchemasRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryListCredentialSchemasRequest_messageType{}
type fastReflection_QueryListCredentialSchemasRequest_messageType struct{}
func (x fastReflection_QueryListCredentialSchemasRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListCredentialSchemasRequest)(nil)
}
func (x fastReflection_QueryListCredentialSchemasRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListCredentialSchemasRequest)
}
func (x fastReflection_QueryListCredentialSchemasRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCredentialSchemasRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListCredentialSchemasRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCredentialSchemasRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListCredentialSchemasRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryListCredentialSchemasRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListCredentialSchemasRequest) New() protoreflect.Message {
return new(fastReflection_QueryListCredentialSchemasRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListCredentialSchemasRequest) Interface() protoreflect.ProtoMessage {
return (*QueryListCredentialSchemasRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListCredentialSchemasRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.TrId != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrId)
if !f(fd_QueryListCredentialSchemasRequest_tr_id, value) {
return
}
}
if x.ModifiedAfter != nil {
value := protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
if !f(fd_QueryListCredentialSchemasRequest_modified_after, value) {
return
}
}
if x.ResponseMaxSize != uint32(0) {
value := protoreflect.ValueOfUint32(x.ResponseMaxSize)
if !f(fd_QueryListCredentialSchemasRequest_response_max_size, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListCredentialSchemasRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.tr_id":
return x.TrId != uint64(0)
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after":
return x.ModifiedAfter != nil
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.response_max_size":
return x.ResponseMaxSize != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.tr_id":
x.TrId = uint64(0)
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after":
x.ModifiedAfter = nil
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.response_max_size":
x.ResponseMaxSize = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListCredentialSchemasRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.tr_id":
value := x.TrId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after":
value := x.ModifiedAfter
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.response_max_size":
value := x.ResponseMaxSize
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.tr_id":
x.TrId = value.Uint()
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after":
x.ModifiedAfter = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.response_max_size":
x.ResponseMaxSize = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after":
if x.ModifiedAfter == nil {
x.ModifiedAfter = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.tr_id":
panic(fmt.Errorf("field tr_id of message veranablockchain.credentialschema.QueryListCredentialSchemasRequest is not mutable"))
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.response_max_size":
panic(fmt.Errorf("field response_max_size of message veranablockchain.credentialschema.QueryListCredentialSchemasRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListCredentialSchemasRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.tr_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.credentialschema.QueryListCredentialSchemasRequest.response_max_size":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListCredentialSchemasRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryListCredentialSchemasRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListCredentialSchemasRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListCredentialSchemasRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListCredentialSchemasRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListCredentialSchemasRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.TrId != 0 {
n += 1 + runtime.Sov(uint64(x.TrId))
}
if x.ModifiedAfter != nil {
l = options.Size(x.ModifiedAfter)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ResponseMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.ResponseMaxSize))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListCredentialSchemasRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ResponseMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ResponseMaxSize))
i--
dAtA[i] = 0x18
}
if x.ModifiedAfter != nil {
encoded, err := options.Marshal(x.ModifiedAfter)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if x.TrId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListCredentialSchemasRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCredentialSchemasRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCredentialSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
x.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.ModifiedAfter == nil {
x.ModifiedAfter = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ModifiedAfter); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
x.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryListCredentialSchemasResponse_1_list)(nil)
type _QueryListCredentialSchemasResponse_1_list struct {
list *[]*CredentialSchema
}
func (x *_QueryListCredentialSchemasResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryListCredentialSchemasResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryListCredentialSchemasResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchema)
(*x.list)[i] = concreteValue
}
func (x *_QueryListCredentialSchemasResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchema)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryListCredentialSchemasResponse_1_list) AppendMutable() protoreflect.Value {
v := new(CredentialSchema)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListCredentialSchemasResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryListCredentialSchemasResponse_1_list) NewElement() protoreflect.Value {
v := new(CredentialSchema)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListCredentialSchemasResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryListCredentialSchemasResponse protoreflect.MessageDescriptor
fd_QueryListCredentialSchemasResponse_schemas protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryListCredentialSchemasResponse = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryListCredentialSchemasResponse")
fd_QueryListCredentialSchemasResponse_schemas = md_QueryListCredentialSchemasResponse.Fields().ByName("schemas")
}
var _ protoreflect.Message = (*fastReflection_QueryListCredentialSchemasResponse)(nil)
type fastReflection_QueryListCredentialSchemasResponse QueryListCredentialSchemasResponse
func (x *QueryListCredentialSchemasResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListCredentialSchemasResponse)(x)
}
func (x *QueryListCredentialSchemasResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListCredentialSchemasResponse_messageType fastReflection_QueryListCredentialSchemasResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryListCredentialSchemasResponse_messageType{}
type fastReflection_QueryListCredentialSchemasResponse_messageType struct{}
func (x fastReflection_QueryListCredentialSchemasResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListCredentialSchemasResponse)(nil)
}
func (x fastReflection_QueryListCredentialSchemasResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListCredentialSchemasResponse)
}
func (x fastReflection_QueryListCredentialSchemasResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCredentialSchemasResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListCredentialSchemasResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCredentialSchemasResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListCredentialSchemasResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryListCredentialSchemasResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListCredentialSchemasResponse) New() protoreflect.Message {
return new(fastReflection_QueryListCredentialSchemasResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListCredentialSchemasResponse) Interface() protoreflect.ProtoMessage {
return (*QueryListCredentialSchemasResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListCredentialSchemasResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Schemas) != 0 {
value := protoreflect.ValueOfList(&_QueryListCredentialSchemasResponse_1_list{list: &x.Schemas})
if !f(fd_QueryListCredentialSchemasResponse_schemas, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListCredentialSchemasResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas":
return len(x.Schemas) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas":
x.Schemas = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListCredentialSchemasResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas":
if len(x.Schemas) == 0 {
return protoreflect.ValueOfList(&_QueryListCredentialSchemasResponse_1_list{})
}
listValue := &_QueryListCredentialSchemasResponse_1_list{list: &x.Schemas}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas":
lv := value.List()
clv := lv.(*_QueryListCredentialSchemasResponse_1_list)
x.Schemas = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas":
if x.Schemas == nil {
x.Schemas = []*CredentialSchema{}
}
value := &_QueryListCredentialSchemasResponse_1_list{list: &x.Schemas}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListCredentialSchemasResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas":
list := []*CredentialSchema{}
return protoreflect.ValueOfList(&_QueryListCredentialSchemasResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryListCredentialSchemasResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryListCredentialSchemasResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListCredentialSchemasResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryListCredentialSchemasResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListCredentialSchemasResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCredentialSchemasResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListCredentialSchemasResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListCredentialSchemasResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListCredentialSchemasResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Schemas) > 0 {
for _, e := range x.Schemas {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListCredentialSchemasResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Schemas) > 0 {
for iNdEx := len(x.Schemas) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Schemas[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListCredentialSchemasResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCredentialSchemasResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCredentialSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Schemas", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Schemas = append(x.Schemas, &CredentialSchema{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Schemas[len(x.Schemas)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetCredentialSchemaRequest protoreflect.MessageDescriptor
fd_QueryGetCredentialSchemaRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryGetCredentialSchemaRequest = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryGetCredentialSchemaRequest")
fd_QueryGetCredentialSchemaRequest_id = md_QueryGetCredentialSchemaRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_QueryGetCredentialSchemaRequest)(nil)
type fastReflection_QueryGetCredentialSchemaRequest QueryGetCredentialSchemaRequest
func (x *QueryGetCredentialSchemaRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetCredentialSchemaRequest)(x)
}
func (x *QueryGetCredentialSchemaRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetCredentialSchemaRequest_messageType fastReflection_QueryGetCredentialSchemaRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetCredentialSchemaRequest_messageType{}
type fastReflection_QueryGetCredentialSchemaRequest_messageType struct{}
func (x fastReflection_QueryGetCredentialSchemaRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetCredentialSchemaRequest)(nil)
}
func (x fastReflection_QueryGetCredentialSchemaRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetCredentialSchemaRequest)
}
func (x fastReflection_QueryGetCredentialSchemaRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCredentialSchemaRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCredentialSchemaRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetCredentialSchemaRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetCredentialSchemaRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetCredentialSchemaRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetCredentialSchemaRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_QueryGetCredentialSchemaRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetCredentialSchemaRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetCredentialSchemaRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryGetCredentialSchemaRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetCredentialSchemaRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetCredentialSchemaRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetCredentialSchemaRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetCredentialSchemaRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCredentialSchemaRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCredentialSchemaRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCredentialSchemaRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCredentialSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetCredentialSchemaResponse protoreflect.MessageDescriptor
fd_QueryGetCredentialSchemaResponse_schema protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryGetCredentialSchemaResponse = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryGetCredentialSchemaResponse")
fd_QueryGetCredentialSchemaResponse_schema = md_QueryGetCredentialSchemaResponse.Fields().ByName("schema")
}
var _ protoreflect.Message = (*fastReflection_QueryGetCredentialSchemaResponse)(nil)
type fastReflection_QueryGetCredentialSchemaResponse QueryGetCredentialSchemaResponse
func (x *QueryGetCredentialSchemaResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetCredentialSchemaResponse)(x)
}
func (x *QueryGetCredentialSchemaResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetCredentialSchemaResponse_messageType fastReflection_QueryGetCredentialSchemaResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetCredentialSchemaResponse_messageType{}
type fastReflection_QueryGetCredentialSchemaResponse_messageType struct{}
func (x fastReflection_QueryGetCredentialSchemaResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetCredentialSchemaResponse)(nil)
}
func (x fastReflection_QueryGetCredentialSchemaResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetCredentialSchemaResponse)
}
func (x fastReflection_QueryGetCredentialSchemaResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCredentialSchemaResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCredentialSchemaResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetCredentialSchemaResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetCredentialSchemaResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetCredentialSchemaResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetCredentialSchemaResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Schema != nil {
value := protoreflect.ValueOfMessage(x.Schema.ProtoReflect())
if !f(fd_QueryGetCredentialSchemaResponse_schema, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema":
return x.Schema != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema":
x.Schema = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema":
value := x.Schema
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema":
x.Schema = value.Message().Interface().(*CredentialSchema)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema":
if x.Schema == nil {
x.Schema = new(CredentialSchema)
}
return protoreflect.ValueOfMessage(x.Schema.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetCredentialSchemaResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema":
m := new(CredentialSchema)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryGetCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetCredentialSchemaResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryGetCredentialSchemaResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetCredentialSchemaResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCredentialSchemaResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetCredentialSchemaResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetCredentialSchemaResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetCredentialSchemaResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Schema != nil {
l = options.Size(x.Schema)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCredentialSchemaResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Schema != nil {
encoded, err := options.Marshal(x.Schema)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCredentialSchemaResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Schema == nil {
x.Schema = &CredentialSchema{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Schema); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryRenderJsonSchemaRequest protoreflect.MessageDescriptor
fd_QueryRenderJsonSchemaRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryRenderJsonSchemaRequest = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryRenderJsonSchemaRequest")
fd_QueryRenderJsonSchemaRequest_id = md_QueryRenderJsonSchemaRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_QueryRenderJsonSchemaRequest)(nil)
type fastReflection_QueryRenderJsonSchemaRequest QueryRenderJsonSchemaRequest
func (x *QueryRenderJsonSchemaRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryRenderJsonSchemaRequest)(x)
}
func (x *QueryRenderJsonSchemaRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryRenderJsonSchemaRequest_messageType fastReflection_QueryRenderJsonSchemaRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryRenderJsonSchemaRequest_messageType{}
type fastReflection_QueryRenderJsonSchemaRequest_messageType struct{}
func (x fastReflection_QueryRenderJsonSchemaRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryRenderJsonSchemaRequest)(nil)
}
func (x fastReflection_QueryRenderJsonSchemaRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryRenderJsonSchemaRequest)
}
func (x fastReflection_QueryRenderJsonSchemaRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryRenderJsonSchemaRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryRenderJsonSchemaRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryRenderJsonSchemaRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryRenderJsonSchemaRequest) New() protoreflect.Message {
return new(fastReflection_QueryRenderJsonSchemaRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Interface() protoreflect.ProtoMessage {
return (*QueryRenderJsonSchemaRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_QueryRenderJsonSchemaRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryRenderJsonSchemaRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryRenderJsonSchemaRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryRenderJsonSchemaRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryRenderJsonSchemaRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryRenderJsonSchemaRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryRenderJsonSchemaRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryRenderJsonSchemaRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryRenderJsonSchemaRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryRenderJsonSchemaRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRenderJsonSchemaRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRenderJsonSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryRenderJsonSchemaResponse protoreflect.MessageDescriptor
fd_QueryRenderJsonSchemaResponse_schema protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_query_proto_init()
md_QueryRenderJsonSchemaResponse = File_veranablockchain_credentialschema_query_proto.Messages().ByName("QueryRenderJsonSchemaResponse")
fd_QueryRenderJsonSchemaResponse_schema = md_QueryRenderJsonSchemaResponse.Fields().ByName("schema")
}
var _ protoreflect.Message = (*fastReflection_QueryRenderJsonSchemaResponse)(nil)
type fastReflection_QueryRenderJsonSchemaResponse QueryRenderJsonSchemaResponse
func (x *QueryRenderJsonSchemaResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryRenderJsonSchemaResponse)(x)
}
func (x *QueryRenderJsonSchemaResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryRenderJsonSchemaResponse_messageType fastReflection_QueryRenderJsonSchemaResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryRenderJsonSchemaResponse_messageType{}
type fastReflection_QueryRenderJsonSchemaResponse_messageType struct{}
func (x fastReflection_QueryRenderJsonSchemaResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryRenderJsonSchemaResponse)(nil)
}
func (x fastReflection_QueryRenderJsonSchemaResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryRenderJsonSchemaResponse)
}
func (x fastReflection_QueryRenderJsonSchemaResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryRenderJsonSchemaResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryRenderJsonSchemaResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryRenderJsonSchemaResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryRenderJsonSchemaResponse) New() protoreflect.Message {
return new(fastReflection_QueryRenderJsonSchemaResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Interface() protoreflect.ProtoMessage {
return (*QueryRenderJsonSchemaResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Schema != "" {
value := protoreflect.ValueOfString(x.Schema)
if !f(fd_QueryRenderJsonSchemaResponse_schema, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse.schema":
return x.Schema != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse.schema":
x.Schema = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse.schema":
value := x.Schema
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse.schema":
x.Schema = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse.schema":
panic(fmt.Errorf("field schema of message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryRenderJsonSchemaResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse.schema":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.QueryRenderJsonSchemaResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryRenderJsonSchemaResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.QueryRenderJsonSchemaResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryRenderJsonSchemaResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryRenderJsonSchemaResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryRenderJsonSchemaResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryRenderJsonSchemaResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryRenderJsonSchemaResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Schema)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryRenderJsonSchemaResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Schema) > 0 {
i -= len(x.Schema)
copy(dAtA[i:], x.Schema)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Schema)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryRenderJsonSchemaResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRenderJsonSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRenderJsonSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Schema = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/credentialschema/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
type QueryListCredentialSchemasRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrId uint64 `protobuf:"varint,1,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"` // optional
ModifiedAfter *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=modified_after,json=modifiedAfter,proto3" json:"modified_after,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,3,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (x *QueryListCredentialSchemasRequest) Reset() {
*x = QueryListCredentialSchemasRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListCredentialSchemasRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListCredentialSchemasRequest) ProtoMessage() {}
// Deprecated: Use QueryListCredentialSchemasRequest.ProtoReflect.Descriptor instead.
func (*QueryListCredentialSchemasRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{2}
}
func (x *QueryListCredentialSchemasRequest) GetTrId() uint64 {
if x != nil {
return x.TrId
}
return 0
}
func (x *QueryListCredentialSchemasRequest) GetModifiedAfter() *timestamppb.Timestamp {
if x != nil {
return x.ModifiedAfter
}
return nil
}
func (x *QueryListCredentialSchemasRequest) GetResponseMaxSize() uint32 {
if x != nil {
return x.ResponseMaxSize
}
return 0
}
type QueryListCredentialSchemasResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Schemas []*CredentialSchema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
}
func (x *QueryListCredentialSchemasResponse) Reset() {
*x = QueryListCredentialSchemasResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListCredentialSchemasResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListCredentialSchemasResponse) ProtoMessage() {}
// Deprecated: Use QueryListCredentialSchemasResponse.ProtoReflect.Descriptor instead.
func (*QueryListCredentialSchemasResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryListCredentialSchemasResponse) GetSchemas() []*CredentialSchema {
if x != nil {
return x.Schemas
}
return nil
}
type QueryGetCredentialSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *QueryGetCredentialSchemaRequest) Reset() {
*x = QueryGetCredentialSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetCredentialSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetCredentialSchemaRequest) ProtoMessage() {}
// Deprecated: Use QueryGetCredentialSchemaRequest.ProtoReflect.Descriptor instead.
func (*QueryGetCredentialSchemaRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{4}
}
func (x *QueryGetCredentialSchemaRequest) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type QueryGetCredentialSchemaResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Schema *CredentialSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
}
func (x *QueryGetCredentialSchemaResponse) Reset() {
*x = QueryGetCredentialSchemaResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetCredentialSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetCredentialSchemaResponse) ProtoMessage() {}
// Deprecated: Use QueryGetCredentialSchemaResponse.ProtoReflect.Descriptor instead.
func (*QueryGetCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{5}
}
func (x *QueryGetCredentialSchemaResponse) GetSchema() *CredentialSchema {
if x != nil {
return x.Schema
}
return nil
}
type QueryRenderJsonSchemaRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *QueryRenderJsonSchemaRequest) Reset() {
*x = QueryRenderJsonSchemaRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryRenderJsonSchemaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryRenderJsonSchemaRequest) ProtoMessage() {}
// Deprecated: Use QueryRenderJsonSchemaRequest.ProtoReflect.Descriptor instead.
func (*QueryRenderJsonSchemaRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{6}
}
func (x *QueryRenderJsonSchemaRequest) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type QueryRenderJsonSchemaResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
}
func (x *QueryRenderJsonSchemaResponse) Reset() {
*x = QueryRenderJsonSchemaResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_query_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryRenderJsonSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryRenderJsonSchemaResponse) ProtoMessage() {}
// Deprecated: Use QueryRenderJsonSchemaResponse.ProtoReflect.Descriptor instead.
func (*QueryRenderJsonSchemaResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_query_proto_rawDescGZIP(), []int{7}
}
func (x *QueryRenderJsonSchemaResponse) GetSchema() string {
if x != nil {
return x.Schema
}
return ""
}
var File_veranablockchain_credentialschema_query_proto protoreflect.FileDescriptor
var file_veranablockchain_credentialschema_query_proto_rawDesc = []byte{
0x0a, 0x2d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x63, 0x0a, 0x13, 0x51,
0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8,
0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73,
0x22, 0xb1, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x72, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x72, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x0e, 0x6d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,
0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66,
0x69, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x61, 0x78,
0x53, 0x69, 0x7a, 0x65, 0x22, 0x79, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73,
0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x07, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,
0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22,
0x31, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
0x69, 0x64, 0x22, 0x75, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2e, 0x0a, 0x1c, 0x51, 0x75, 0x65,
0x72, 0x79, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x37, 0x0a, 0x1d, 0x51, 0x75, 0x65,
0x72, 0x79, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x32, 0xce, 0x05, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x92, 0x01, 0x0a,
0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36,
0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11,
0x2f, 0x76, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x12, 0xbd, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x44, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x45, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x43,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11,
0x12, 0x0f, 0x2f, 0x76, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x73, 0x2f, 0x6c, 0x69, 0x73,
0x74, 0x12, 0xbb, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x42, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76, 0x70, 0x72,
0x2f, 0x76, 0x31, 0x2f, 0x63, 0x73, 0x2f, 0x67, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12,
0xb1, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65,
0x6e, 0x64, 0x65, 0x72, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52,
0x65, 0x6e, 0x64, 0x65, 0x72, 0x4a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12,
0x12, 0x2f, 0x76, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x73, 0x2f, 0x6a, 0x73, 0x2f, 0x7b,
0x69, 0x64, 0x7d, 0x42, 0xa8, 0x02, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x0a, 0x51,
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c,
0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xa2, 0x02, 0x03, 0x56, 0x43,
0x58, 0xaa, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0xca, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x47, 0x50,
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_credentialschema_query_proto_rawDescOnce sync.Once
file_veranablockchain_credentialschema_query_proto_rawDescData = file_veranablockchain_credentialschema_query_proto_rawDesc
)
func file_veranablockchain_credentialschema_query_proto_rawDescGZIP() []byte {
file_veranablockchain_credentialschema_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_credentialschema_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_credentialschema_query_proto_rawDescData)
})
return file_veranablockchain_credentialschema_query_proto_rawDescData
}
var file_veranablockchain_credentialschema_query_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_veranablockchain_credentialschema_query_proto_goTypes = []interface{}{
(*QueryParamsRequest)(nil), // 0: veranablockchain.credentialschema.QueryParamsRequest
(*QueryParamsResponse)(nil), // 1: veranablockchain.credentialschema.QueryParamsResponse
(*QueryListCredentialSchemasRequest)(nil), // 2: veranablockchain.credentialschema.QueryListCredentialSchemasRequest
(*QueryListCredentialSchemasResponse)(nil), // 3: veranablockchain.credentialschema.QueryListCredentialSchemasResponse
(*QueryGetCredentialSchemaRequest)(nil), // 4: veranablockchain.credentialschema.QueryGetCredentialSchemaRequest
(*QueryGetCredentialSchemaResponse)(nil), // 5: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse
(*QueryRenderJsonSchemaRequest)(nil), // 6: veranablockchain.credentialschema.QueryRenderJsonSchemaRequest
(*QueryRenderJsonSchemaResponse)(nil), // 7: veranablockchain.credentialschema.QueryRenderJsonSchemaResponse
(*Params)(nil), // 8: veranablockchain.credentialschema.Params
(*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
(*CredentialSchema)(nil), // 10: veranablockchain.credentialschema.CredentialSchema
}
var file_veranablockchain_credentialschema_query_proto_depIdxs = []int32{
8, // 0: veranablockchain.credentialschema.QueryParamsResponse.params:type_name -> veranablockchain.credentialschema.Params
9, // 1: veranablockchain.credentialschema.QueryListCredentialSchemasRequest.modified_after:type_name -> google.protobuf.Timestamp
10, // 2: veranablockchain.credentialschema.QueryListCredentialSchemasResponse.schemas:type_name -> veranablockchain.credentialschema.CredentialSchema
10, // 3: veranablockchain.credentialschema.QueryGetCredentialSchemaResponse.schema:type_name -> veranablockchain.credentialschema.CredentialSchema
0, // 4: veranablockchain.credentialschema.Query.Params:input_type -> veranablockchain.credentialschema.QueryParamsRequest
2, // 5: veranablockchain.credentialschema.Query.ListCredentialSchemas:input_type -> veranablockchain.credentialschema.QueryListCredentialSchemasRequest
4, // 6: veranablockchain.credentialschema.Query.GetCredentialSchema:input_type -> veranablockchain.credentialschema.QueryGetCredentialSchemaRequest
6, // 7: veranablockchain.credentialschema.Query.RenderJsonSchema:input_type -> veranablockchain.credentialschema.QueryRenderJsonSchemaRequest
1, // 8: veranablockchain.credentialschema.Query.Params:output_type -> veranablockchain.credentialschema.QueryParamsResponse
3, // 9: veranablockchain.credentialschema.Query.ListCredentialSchemas:output_type -> veranablockchain.credentialschema.QueryListCredentialSchemasResponse
5, // 10: veranablockchain.credentialschema.Query.GetCredentialSchema:output_type -> veranablockchain.credentialschema.QueryGetCredentialSchemaResponse
7, // 11: veranablockchain.credentialschema.Query.RenderJsonSchema:output_type -> veranablockchain.credentialschema.QueryRenderJsonSchemaResponse
8, // [8:12] is the sub-list for method output_type
4, // [4:8] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_veranablockchain_credentialschema_query_proto_init() }
func file_veranablockchain_credentialschema_query_proto_init() {
if File_veranablockchain_credentialschema_query_proto != nil {
return
}
file_veranablockchain_credentialschema_params_proto_init()
file_veranablockchain_credentialschema_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_credentialschema_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListCredentialSchemasRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListCredentialSchemasResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetCredentialSchemaRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetCredentialSchemaResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryRenderJsonSchemaRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryRenderJsonSchemaResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_credentialschema_query_proto_rawDesc,
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_credentialschema_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_credentialschema_query_proto_depIdxs,
MessageInfos: file_veranablockchain_credentialschema_query_proto_msgTypes,
}.Build()
File_veranablockchain_credentialschema_query_proto = out.File
file_veranablockchain_credentialschema_query_proto_rawDesc = nil
file_veranablockchain_credentialschema_query_proto_goTypes = nil
file_veranablockchain_credentialschema_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/credentialschema/query.proto
package credentialschema
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.credentialschema.Query/Params"
Query_ListCredentialSchemas_FullMethodName = "/veranablockchain.credentialschema.Query/ListCredentialSchemas"
Query_GetCredentialSchema_FullMethodName = "/veranablockchain.credentialschema.Query/GetCredentialSchema"
Query_RenderJsonSchema_FullMethodName = "/veranablockchain.credentialschema.Query/RenderJsonSchema"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ListCredentialSchemas queries a list of CredentialSchema items.
ListCredentialSchemas(ctx context.Context, in *QueryListCredentialSchemasRequest, opts ...grpc.CallOption) (*QueryListCredentialSchemasResponse, error)
// GetCredentialSchema returns a credential schema by ID
GetCredentialSchema(ctx context.Context, in *QueryGetCredentialSchemaRequest, opts ...grpc.CallOption) (*QueryGetCredentialSchemaResponse, error)
// RenderJsonSchema returns the JSON schema definition
RenderJsonSchema(ctx context.Context, in *QueryRenderJsonSchemaRequest, opts ...grpc.CallOption) (*QueryRenderJsonSchemaResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListCredentialSchemas(ctx context.Context, in *QueryListCredentialSchemasRequest, opts ...grpc.CallOption) (*QueryListCredentialSchemasResponse, error) {
out := new(QueryListCredentialSchemasResponse)
err := c.cc.Invoke(ctx, Query_ListCredentialSchemas_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetCredentialSchema(ctx context.Context, in *QueryGetCredentialSchemaRequest, opts ...grpc.CallOption) (*QueryGetCredentialSchemaResponse, error) {
out := new(QueryGetCredentialSchemaResponse)
err := c.cc.Invoke(ctx, Query_GetCredentialSchema_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) RenderJsonSchema(ctx context.Context, in *QueryRenderJsonSchemaRequest, opts ...grpc.CallOption) (*QueryRenderJsonSchemaResponse, error) {
out := new(QueryRenderJsonSchemaResponse)
err := c.cc.Invoke(ctx, Query_RenderJsonSchema_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ListCredentialSchemas queries a list of CredentialSchema items.
ListCredentialSchemas(context.Context, *QueryListCredentialSchemasRequest) (*QueryListCredentialSchemasResponse, error)
// GetCredentialSchema returns a credential schema by ID
GetCredentialSchema(context.Context, *QueryGetCredentialSchemaRequest) (*QueryGetCredentialSchemaResponse, error)
// RenderJsonSchema returns the JSON schema definition
RenderJsonSchema(context.Context, *QueryRenderJsonSchemaRequest) (*QueryRenderJsonSchemaResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) ListCredentialSchemas(context.Context, *QueryListCredentialSchemasRequest) (*QueryListCredentialSchemasResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCredentialSchemas not implemented")
}
func (UnimplementedQueryServer) GetCredentialSchema(context.Context, *QueryGetCredentialSchemaRequest) (*QueryGetCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCredentialSchema not implemented")
}
func (UnimplementedQueryServer) RenderJsonSchema(context.Context, *QueryRenderJsonSchemaRequest) (*QueryRenderJsonSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenderJsonSchema not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListCredentialSchemas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListCredentialSchemasRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListCredentialSchemas(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_ListCredentialSchemas_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListCredentialSchemas(ctx, req.(*QueryListCredentialSchemasRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetCredentialSchemaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetCredentialSchema_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetCredentialSchema(ctx, req.(*QueryGetCredentialSchemaRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_RenderJsonSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRenderJsonSchemaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).RenderJsonSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_RenderJsonSchema_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).RenderJsonSchema(ctx, req.(*QueryRenderJsonSchemaRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.credentialschema.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListCredentialSchemas",
Handler: _Query_ListCredentialSchemas_Handler,
},
{
MethodName: "GetCredentialSchema",
Handler: _Query_GetCredentialSchema_Handler,
},
{
MethodName: "RenderJsonSchema",
Handler: _Query_RenderJsonSchema_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/credentialschema/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package credentialschema
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.credentialschema.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.credentialschema.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.credentialschema.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.credentialschema.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.credentialschema.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.credentialschema.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.credentialschema.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateCredentialSchema protoreflect.MessageDescriptor
fd_MsgCreateCredentialSchema_creator protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_tr_id protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_json_schema protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_issuer_grantor_validation_validity_period protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_verifier_grantor_validation_validity_period protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_issuer_validation_validity_period protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_verifier_validation_validity_period protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_holder_validation_validity_period protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_issuer_perm_management_mode protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchema_verifier_perm_management_mode protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgCreateCredentialSchema = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgCreateCredentialSchema")
fd_MsgCreateCredentialSchema_creator = md_MsgCreateCredentialSchema.Fields().ByName("creator")
fd_MsgCreateCredentialSchema_tr_id = md_MsgCreateCredentialSchema.Fields().ByName("tr_id")
fd_MsgCreateCredentialSchema_json_schema = md_MsgCreateCredentialSchema.Fields().ByName("json_schema")
fd_MsgCreateCredentialSchema_issuer_grantor_validation_validity_period = md_MsgCreateCredentialSchema.Fields().ByName("issuer_grantor_validation_validity_period")
fd_MsgCreateCredentialSchema_verifier_grantor_validation_validity_period = md_MsgCreateCredentialSchema.Fields().ByName("verifier_grantor_validation_validity_period")
fd_MsgCreateCredentialSchema_issuer_validation_validity_period = md_MsgCreateCredentialSchema.Fields().ByName("issuer_validation_validity_period")
fd_MsgCreateCredentialSchema_verifier_validation_validity_period = md_MsgCreateCredentialSchema.Fields().ByName("verifier_validation_validity_period")
fd_MsgCreateCredentialSchema_holder_validation_validity_period = md_MsgCreateCredentialSchema.Fields().ByName("holder_validation_validity_period")
fd_MsgCreateCredentialSchema_issuer_perm_management_mode = md_MsgCreateCredentialSchema.Fields().ByName("issuer_perm_management_mode")
fd_MsgCreateCredentialSchema_verifier_perm_management_mode = md_MsgCreateCredentialSchema.Fields().ByName("verifier_perm_management_mode")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateCredentialSchema)(nil)
type fastReflection_MsgCreateCredentialSchema MsgCreateCredentialSchema
func (x *MsgCreateCredentialSchema) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchema)(x)
}
func (x *MsgCreateCredentialSchema) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateCredentialSchema_messageType fastReflection_MsgCreateCredentialSchema_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateCredentialSchema_messageType{}
type fastReflection_MsgCreateCredentialSchema_messageType struct{}
func (x fastReflection_MsgCreateCredentialSchema_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchema)(nil)
}
func (x fastReflection_MsgCreateCredentialSchema_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchema)
}
func (x fastReflection_MsgCreateCredentialSchema_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchema
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateCredentialSchema) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchema
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateCredentialSchema) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateCredentialSchema_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateCredentialSchema) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchema)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateCredentialSchema) Interface() protoreflect.ProtoMessage {
return (*MsgCreateCredentialSchema)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateCredentialSchema) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCreateCredentialSchema_creator, value) {
return
}
}
if x.TrId != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrId)
if !f(fd_MsgCreateCredentialSchema_tr_id, value) {
return
}
}
if x.JsonSchema != "" {
value := protoreflect.ValueOfString(x.JsonSchema)
if !f(fd_MsgCreateCredentialSchema_json_schema, value) {
return
}
}
if x.IssuerGrantorValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerGrantorValidationValidityPeriod)
if !f(fd_MsgCreateCredentialSchema_issuer_grantor_validation_validity_period, value) {
return
}
}
if x.VerifierGrantorValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierGrantorValidationValidityPeriod)
if !f(fd_MsgCreateCredentialSchema_verifier_grantor_validation_validity_period, value) {
return
}
}
if x.IssuerValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerValidationValidityPeriod)
if !f(fd_MsgCreateCredentialSchema_issuer_validation_validity_period, value) {
return
}
}
if x.VerifierValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierValidationValidityPeriod)
if !f(fd_MsgCreateCredentialSchema_verifier_validation_validity_period, value) {
return
}
}
if x.HolderValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.HolderValidationValidityPeriod)
if !f(fd_MsgCreateCredentialSchema_holder_validation_validity_period, value) {
return
}
}
if x.IssuerPermManagementMode != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerPermManagementMode)
if !f(fd_MsgCreateCredentialSchema_issuer_perm_management_mode, value) {
return
}
}
if x.VerifierPermManagementMode != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierPermManagementMode)
if !f(fd_MsgCreateCredentialSchema_verifier_perm_management_mode, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateCredentialSchema) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.creator":
return x.Creator != ""
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.tr_id":
return x.TrId != uint64(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.json_schema":
return x.JsonSchema != ""
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_grantor_validation_validity_period":
return x.IssuerGrantorValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_grantor_validation_validity_period":
return x.VerifierGrantorValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_validation_validity_period":
return x.IssuerValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_validation_validity_period":
return x.VerifierValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.holder_validation_validity_period":
return x.HolderValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_perm_management_mode":
return x.IssuerPermManagementMode != uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_perm_management_mode":
return x.VerifierPermManagementMode != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchema) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.creator":
x.Creator = ""
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.tr_id":
x.TrId = uint64(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.json_schema":
x.JsonSchema = ""
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_grantor_validation_validity_period":
x.IssuerGrantorValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_grantor_validation_validity_period":
x.VerifierGrantorValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_validation_validity_period":
x.IssuerValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_validation_validity_period":
x.VerifierValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.holder_validation_validity_period":
x.HolderValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_perm_management_mode":
x.IssuerPermManagementMode = uint32(0)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_perm_management_mode":
x.VerifierPermManagementMode = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateCredentialSchema) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.tr_id":
value := x.TrId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.json_schema":
value := x.JsonSchema
return protoreflect.ValueOfString(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_grantor_validation_validity_period":
value := x.IssuerGrantorValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_grantor_validation_validity_period":
value := x.VerifierGrantorValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_validation_validity_period":
value := x.IssuerValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_validation_validity_period":
value := x.VerifierValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.holder_validation_validity_period":
value := x.HolderValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_perm_management_mode":
value := x.IssuerPermManagementMode
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_perm_management_mode":
value := x.VerifierPermManagementMode
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchema does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchema) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.tr_id":
x.TrId = value.Uint()
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.json_schema":
x.JsonSchema = value.Interface().(string)
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_grantor_validation_validity_period":
x.IssuerGrantorValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_grantor_validation_validity_period":
x.VerifierGrantorValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_validation_validity_period":
x.IssuerValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_validation_validity_period":
x.VerifierValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.holder_validation_validity_period":
x.HolderValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_perm_management_mode":
x.IssuerPermManagementMode = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_perm_management_mode":
x.VerifierPermManagementMode = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchema) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.creator":
panic(fmt.Errorf("field creator of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.tr_id":
panic(fmt.Errorf("field tr_id of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.json_schema":
panic(fmt.Errorf("field json_schema of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_grantor_validation_validity_period":
panic(fmt.Errorf("field issuer_grantor_validation_validity_period of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_grantor_validation_validity_period":
panic(fmt.Errorf("field verifier_grantor_validation_validity_period of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_validation_validity_period":
panic(fmt.Errorf("field issuer_validation_validity_period of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_validation_validity_period":
panic(fmt.Errorf("field verifier_validation_validity_period of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.holder_validation_validity_period":
panic(fmt.Errorf("field holder_validation_validity_period of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_perm_management_mode":
panic(fmt.Errorf("field issuer_perm_management_mode of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_perm_management_mode":
panic(fmt.Errorf("field verifier_perm_management_mode of message veranablockchain.credentialschema.MsgCreateCredentialSchema is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateCredentialSchema) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.tr_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.json_schema":
return protoreflect.ValueOfString("")
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_grantor_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_grantor_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.holder_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.issuer_perm_management_mode":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgCreateCredentialSchema.verifier_perm_management_mode":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateCredentialSchema) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgCreateCredentialSchema", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateCredentialSchema) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchema) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateCredentialSchema) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateCredentialSchema) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateCredentialSchema)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.TrId != 0 {
n += 1 + runtime.Sov(uint64(x.TrId))
}
l = len(x.JsonSchema)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.IssuerGrantorValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerGrantorValidationValidityPeriod))
}
if x.VerifierGrantorValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierGrantorValidationValidityPeriod))
}
if x.IssuerValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerValidationValidityPeriod))
}
if x.VerifierValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierValidationValidityPeriod))
}
if x.HolderValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.HolderValidationValidityPeriod))
}
if x.IssuerPermManagementMode != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerPermManagementMode))
}
if x.VerifierPermManagementMode != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierPermManagementMode))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchema)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.VerifierPermManagementMode != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierPermManagementMode))
i--
dAtA[i] = 0x50
}
if x.IssuerPermManagementMode != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerPermManagementMode))
i--
dAtA[i] = 0x48
}
if x.HolderValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.HolderValidationValidityPeriod))
i--
dAtA[i] = 0x40
}
if x.VerifierValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierValidationValidityPeriod))
i--
dAtA[i] = 0x38
}
if x.IssuerValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerValidationValidityPeriod))
i--
dAtA[i] = 0x30
}
if x.VerifierGrantorValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x28
}
if x.IssuerGrantorValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x20
}
if len(x.JsonSchema) > 0 {
i -= len(x.JsonSchema)
copy(dAtA[i:], x.JsonSchema)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.JsonSchema)))
i--
dAtA[i] = 0x1a
}
if x.TrId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrId))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchema)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
x.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field JsonSchema", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.JsonSchema = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerGrantorValidationValidityPeriod", wireType)
}
x.IssuerGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierGrantorValidationValidityPeriod", wireType)
}
x.VerifierGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerValidationValidityPeriod", wireType)
}
x.IssuerValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierValidationValidityPeriod", wireType)
}
x.VerifierValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HolderValidationValidityPeriod", wireType)
}
x.HolderValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.HolderValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerPermManagementMode", wireType)
}
x.IssuerPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerPermManagementMode |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierPermManagementMode", wireType)
}
x.VerifierPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierPermManagementMode |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateCredentialSchemaResponse protoreflect.MessageDescriptor
fd_MsgCreateCredentialSchemaResponse_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgCreateCredentialSchemaResponse = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgCreateCredentialSchemaResponse")
fd_MsgCreateCredentialSchemaResponse_id = md_MsgCreateCredentialSchemaResponse.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateCredentialSchemaResponse)(nil)
type fastReflection_MsgCreateCredentialSchemaResponse MsgCreateCredentialSchemaResponse
func (x *MsgCreateCredentialSchemaResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchemaResponse)(x)
}
func (x *MsgCreateCredentialSchemaResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateCredentialSchemaResponse_messageType fastReflection_MsgCreateCredentialSchemaResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateCredentialSchemaResponse_messageType{}
type fastReflection_MsgCreateCredentialSchemaResponse_messageType struct{}
func (x fastReflection_MsgCreateCredentialSchemaResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchemaResponse)(nil)
}
func (x fastReflection_MsgCreateCredentialSchemaResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchemaResponse)
}
func (x fastReflection_MsgCreateCredentialSchemaResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchemaResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchemaResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateCredentialSchemaResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchemaResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCreateCredentialSchemaResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgCreateCredentialSchemaResponse_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse.id":
panic(fmt.Errorf("field id of message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateCredentialSchemaResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateCredentialSchemaResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchemaResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchemaResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateCredentialSchema protoreflect.MessageDescriptor
fd_MsgUpdateCredentialSchema_creator protoreflect.FieldDescriptor
fd_MsgUpdateCredentialSchema_id protoreflect.FieldDescriptor
fd_MsgUpdateCredentialSchema_issuer_grantor_validation_validity_period protoreflect.FieldDescriptor
fd_MsgUpdateCredentialSchema_verifier_grantor_validation_validity_period protoreflect.FieldDescriptor
fd_MsgUpdateCredentialSchema_issuer_validation_validity_period protoreflect.FieldDescriptor
fd_MsgUpdateCredentialSchema_verifier_validation_validity_period protoreflect.FieldDescriptor
fd_MsgUpdateCredentialSchema_holder_validation_validity_period protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgUpdateCredentialSchema = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgUpdateCredentialSchema")
fd_MsgUpdateCredentialSchema_creator = md_MsgUpdateCredentialSchema.Fields().ByName("creator")
fd_MsgUpdateCredentialSchema_id = md_MsgUpdateCredentialSchema.Fields().ByName("id")
fd_MsgUpdateCredentialSchema_issuer_grantor_validation_validity_period = md_MsgUpdateCredentialSchema.Fields().ByName("issuer_grantor_validation_validity_period")
fd_MsgUpdateCredentialSchema_verifier_grantor_validation_validity_period = md_MsgUpdateCredentialSchema.Fields().ByName("verifier_grantor_validation_validity_period")
fd_MsgUpdateCredentialSchema_issuer_validation_validity_period = md_MsgUpdateCredentialSchema.Fields().ByName("issuer_validation_validity_period")
fd_MsgUpdateCredentialSchema_verifier_validation_validity_period = md_MsgUpdateCredentialSchema.Fields().ByName("verifier_validation_validity_period")
fd_MsgUpdateCredentialSchema_holder_validation_validity_period = md_MsgUpdateCredentialSchema.Fields().ByName("holder_validation_validity_period")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateCredentialSchema)(nil)
type fastReflection_MsgUpdateCredentialSchema MsgUpdateCredentialSchema
func (x *MsgUpdateCredentialSchema) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateCredentialSchema)(x)
}
func (x *MsgUpdateCredentialSchema) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateCredentialSchema_messageType fastReflection_MsgUpdateCredentialSchema_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateCredentialSchema_messageType{}
type fastReflection_MsgUpdateCredentialSchema_messageType struct{}
func (x fastReflection_MsgUpdateCredentialSchema_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateCredentialSchema)(nil)
}
func (x fastReflection_MsgUpdateCredentialSchema_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateCredentialSchema)
}
func (x fastReflection_MsgUpdateCredentialSchema_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateCredentialSchema
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateCredentialSchema) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateCredentialSchema
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateCredentialSchema) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateCredentialSchema_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateCredentialSchema) New() protoreflect.Message {
return new(fastReflection_MsgUpdateCredentialSchema)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateCredentialSchema) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateCredentialSchema)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateCredentialSchema) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgUpdateCredentialSchema_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgUpdateCredentialSchema_id, value) {
return
}
}
if x.IssuerGrantorValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerGrantorValidationValidityPeriod)
if !f(fd_MsgUpdateCredentialSchema_issuer_grantor_validation_validity_period, value) {
return
}
}
if x.VerifierGrantorValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierGrantorValidationValidityPeriod)
if !f(fd_MsgUpdateCredentialSchema_verifier_grantor_validation_validity_period, value) {
return
}
}
if x.IssuerValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerValidationValidityPeriod)
if !f(fd_MsgUpdateCredentialSchema_issuer_validation_validity_period, value) {
return
}
}
if x.VerifierValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierValidationValidityPeriod)
if !f(fd_MsgUpdateCredentialSchema_verifier_validation_validity_period, value) {
return
}
}
if x.HolderValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.HolderValidationValidityPeriod)
if !f(fd_MsgUpdateCredentialSchema_holder_validation_validity_period, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateCredentialSchema) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.creator":
return x.Creator != ""
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.id":
return x.Id != uint64(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_grantor_validation_validity_period":
return x.IssuerGrantorValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_grantor_validation_validity_period":
return x.VerifierGrantorValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_validation_validity_period":
return x.IssuerValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_validation_validity_period":
return x.VerifierValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.holder_validation_validity_period":
return x.HolderValidationValidityPeriod != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchema) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.creator":
x.Creator = ""
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.id":
x.Id = uint64(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_grantor_validation_validity_period":
x.IssuerGrantorValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_grantor_validation_validity_period":
x.VerifierGrantorValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_validation_validity_period":
x.IssuerValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_validation_validity_period":
x.VerifierValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.holder_validation_validity_period":
x.HolderValidationValidityPeriod = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateCredentialSchema) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_grantor_validation_validity_period":
value := x.IssuerGrantorValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_grantor_validation_validity_period":
value := x.VerifierGrantorValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_validation_validity_period":
value := x.IssuerValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_validation_validity_period":
value := x.VerifierValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.holder_validation_validity_period":
value := x.HolderValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchema does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchema) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.id":
x.Id = value.Uint()
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_grantor_validation_validity_period":
x.IssuerGrantorValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_grantor_validation_validity_period":
x.VerifierGrantorValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_validation_validity_period":
x.IssuerValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_validation_validity_period":
x.VerifierValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.holder_validation_validity_period":
x.HolderValidationValidityPeriod = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchema) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.creator":
panic(fmt.Errorf("field creator of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.id":
panic(fmt.Errorf("field id of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_grantor_validation_validity_period":
panic(fmt.Errorf("field issuer_grantor_validation_validity_period of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_grantor_validation_validity_period":
panic(fmt.Errorf("field verifier_grantor_validation_validity_period of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_validation_validity_period":
panic(fmt.Errorf("field issuer_validation_validity_period of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_validation_validity_period":
panic(fmt.Errorf("field verifier_validation_validity_period of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.holder_validation_validity_period":
panic(fmt.Errorf("field holder_validation_validity_period of message veranablockchain.credentialschema.MsgUpdateCredentialSchema is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateCredentialSchema) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_grantor_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_grantor_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.issuer_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.verifier_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.MsgUpdateCredentialSchema.holder_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchema does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateCredentialSchema) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgUpdateCredentialSchema", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateCredentialSchema) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchema) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateCredentialSchema) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateCredentialSchema) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateCredentialSchema)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.IssuerGrantorValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerGrantorValidationValidityPeriod))
}
if x.VerifierGrantorValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierGrantorValidationValidityPeriod))
}
if x.IssuerValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerValidationValidityPeriod))
}
if x.VerifierValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierValidationValidityPeriod))
}
if x.HolderValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.HolderValidationValidityPeriod))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateCredentialSchema)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.HolderValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.HolderValidationValidityPeriod))
i--
dAtA[i] = 0x38
}
if x.VerifierValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierValidationValidityPeriod))
i--
dAtA[i] = 0x30
}
if x.IssuerValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerValidationValidityPeriod))
i--
dAtA[i] = 0x28
}
if x.VerifierGrantorValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x20
}
if x.IssuerGrantorValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x18
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateCredentialSchema)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateCredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateCredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerGrantorValidationValidityPeriod", wireType)
}
x.IssuerGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierGrantorValidationValidityPeriod", wireType)
}
x.VerifierGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerValidationValidityPeriod", wireType)
}
x.IssuerValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierValidationValidityPeriod", wireType)
}
x.VerifierValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HolderValidationValidityPeriod", wireType)
}
x.HolderValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.HolderValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateCredentialSchemaResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgUpdateCredentialSchemaResponse = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgUpdateCredentialSchemaResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateCredentialSchemaResponse)(nil)
type fastReflection_MsgUpdateCredentialSchemaResponse MsgUpdateCredentialSchemaResponse
func (x *MsgUpdateCredentialSchemaResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateCredentialSchemaResponse)(x)
}
func (x *MsgUpdateCredentialSchemaResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateCredentialSchemaResponse_messageType fastReflection_MsgUpdateCredentialSchemaResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateCredentialSchemaResponse_messageType{}
type fastReflection_MsgUpdateCredentialSchemaResponse_messageType struct{}
func (x fastReflection_MsgUpdateCredentialSchemaResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateCredentialSchemaResponse)(nil)
}
func (x fastReflection_MsgUpdateCredentialSchemaResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateCredentialSchemaResponse)
}
func (x fastReflection_MsgUpdateCredentialSchemaResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateCredentialSchemaResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateCredentialSchemaResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateCredentialSchemaResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateCredentialSchemaResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateCredentialSchemaResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateCredentialSchemaResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateCredentialSchemaResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateCredentialSchemaResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateCredentialSchemaResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgArchiveCredentialSchema protoreflect.MessageDescriptor
fd_MsgArchiveCredentialSchema_creator protoreflect.FieldDescriptor
fd_MsgArchiveCredentialSchema_id protoreflect.FieldDescriptor
fd_MsgArchiveCredentialSchema_archive protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgArchiveCredentialSchema = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgArchiveCredentialSchema")
fd_MsgArchiveCredentialSchema_creator = md_MsgArchiveCredentialSchema.Fields().ByName("creator")
fd_MsgArchiveCredentialSchema_id = md_MsgArchiveCredentialSchema.Fields().ByName("id")
fd_MsgArchiveCredentialSchema_archive = md_MsgArchiveCredentialSchema.Fields().ByName("archive")
}
var _ protoreflect.Message = (*fastReflection_MsgArchiveCredentialSchema)(nil)
type fastReflection_MsgArchiveCredentialSchema MsgArchiveCredentialSchema
func (x *MsgArchiveCredentialSchema) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgArchiveCredentialSchema)(x)
}
func (x *MsgArchiveCredentialSchema) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgArchiveCredentialSchema_messageType fastReflection_MsgArchiveCredentialSchema_messageType
var _ protoreflect.MessageType = fastReflection_MsgArchiveCredentialSchema_messageType{}
type fastReflection_MsgArchiveCredentialSchema_messageType struct{}
func (x fastReflection_MsgArchiveCredentialSchema_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgArchiveCredentialSchema)(nil)
}
func (x fastReflection_MsgArchiveCredentialSchema_messageType) New() protoreflect.Message {
return new(fastReflection_MsgArchiveCredentialSchema)
}
func (x fastReflection_MsgArchiveCredentialSchema_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveCredentialSchema
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgArchiveCredentialSchema) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveCredentialSchema
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgArchiveCredentialSchema) Type() protoreflect.MessageType {
return _fastReflection_MsgArchiveCredentialSchema_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgArchiveCredentialSchema) New() protoreflect.Message {
return new(fastReflection_MsgArchiveCredentialSchema)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgArchiveCredentialSchema) Interface() protoreflect.ProtoMessage {
return (*MsgArchiveCredentialSchema)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgArchiveCredentialSchema) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgArchiveCredentialSchema_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgArchiveCredentialSchema_id, value) {
return
}
}
if x.Archive != false {
value := protoreflect.ValueOfBool(x.Archive)
if !f(fd_MsgArchiveCredentialSchema_archive, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgArchiveCredentialSchema) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.creator":
return x.Creator != ""
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.id":
return x.Id != uint64(0)
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.archive":
return x.Archive != false
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchema) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.creator":
x.Creator = ""
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.id":
x.Id = uint64(0)
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.archive":
x.Archive = false
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgArchiveCredentialSchema) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.archive":
value := x.Archive
return protoreflect.ValueOfBool(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchema does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchema) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.id":
x.Id = value.Uint()
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.archive":
x.Archive = value.Bool()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchema does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchema) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.creator":
panic(fmt.Errorf("field creator of message veranablockchain.credentialschema.MsgArchiveCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.id":
panic(fmt.Errorf("field id of message veranablockchain.credentialschema.MsgArchiveCredentialSchema is not mutable"))
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.archive":
panic(fmt.Errorf("field archive of message veranablockchain.credentialschema.MsgArchiveCredentialSchema is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchema does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgArchiveCredentialSchema) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.MsgArchiveCredentialSchema.archive":
return protoreflect.ValueOfBool(false)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchema does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgArchiveCredentialSchema) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgArchiveCredentialSchema", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgArchiveCredentialSchema) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchema) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgArchiveCredentialSchema) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgArchiveCredentialSchema) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgArchiveCredentialSchema)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.Archive {
n += 2
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveCredentialSchema)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Archive {
i--
if x.Archive {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveCredentialSchema)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveCredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveCredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Archive", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.Archive = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgArchiveCredentialSchemaResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_credentialschema_tx_proto_init()
md_MsgArchiveCredentialSchemaResponse = File_veranablockchain_credentialschema_tx_proto.Messages().ByName("MsgArchiveCredentialSchemaResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgArchiveCredentialSchemaResponse)(nil)
type fastReflection_MsgArchiveCredentialSchemaResponse MsgArchiveCredentialSchemaResponse
func (x *MsgArchiveCredentialSchemaResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgArchiveCredentialSchemaResponse)(x)
}
func (x *MsgArchiveCredentialSchemaResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgArchiveCredentialSchemaResponse_messageType fastReflection_MsgArchiveCredentialSchemaResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgArchiveCredentialSchemaResponse_messageType{}
type fastReflection_MsgArchiveCredentialSchemaResponse_messageType struct{}
func (x fastReflection_MsgArchiveCredentialSchemaResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgArchiveCredentialSchemaResponse)(nil)
}
func (x fastReflection_MsgArchiveCredentialSchemaResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgArchiveCredentialSchemaResponse)
}
func (x fastReflection_MsgArchiveCredentialSchemaResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveCredentialSchemaResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveCredentialSchemaResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgArchiveCredentialSchemaResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) New() protoreflect.Message {
return new(fastReflection_MsgArchiveCredentialSchemaResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Interface() protoreflect.ProtoMessage {
return (*MsgArchiveCredentialSchemaResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgArchiveCredentialSchemaResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgArchiveCredentialSchemaResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveCredentialSchemaResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveCredentialSchemaResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/credentialschema/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{1}
}
type MsgCreateCredentialSchema struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
JsonSchema string `protobuf:"bytes,3,opt,name=json_schema,json=jsonSchema,proto3" json:"json_schema,omitempty"`
IssuerGrantorValidationValidityPeriod uint32 `protobuf:"varint,4,opt,name=issuer_grantor_validation_validity_period,json=issuerGrantorValidationValidityPeriod,proto3" json:"issuer_grantor_validation_validity_period,omitempty"`
VerifierGrantorValidationValidityPeriod uint32 `protobuf:"varint,5,opt,name=verifier_grantor_validation_validity_period,json=verifierGrantorValidationValidityPeriod,proto3" json:"verifier_grantor_validation_validity_period,omitempty"`
IssuerValidationValidityPeriod uint32 `protobuf:"varint,6,opt,name=issuer_validation_validity_period,json=issuerValidationValidityPeriod,proto3" json:"issuer_validation_validity_period,omitempty"`
VerifierValidationValidityPeriod uint32 `protobuf:"varint,7,opt,name=verifier_validation_validity_period,json=verifierValidationValidityPeriod,proto3" json:"verifier_validation_validity_period,omitempty"`
HolderValidationValidityPeriod uint32 `protobuf:"varint,8,opt,name=holder_validation_validity_period,json=holderValidationValidityPeriod,proto3" json:"holder_validation_validity_period,omitempty"`
IssuerPermManagementMode uint32 `protobuf:"varint,9,opt,name=issuer_perm_management_mode,json=issuerPermManagementMode,proto3" json:"issuer_perm_management_mode,omitempty"`
VerifierPermManagementMode uint32 `protobuf:"varint,10,opt,name=verifier_perm_management_mode,json=verifierPermManagementMode,proto3" json:"verifier_perm_management_mode,omitempty"`
}
func (x *MsgCreateCredentialSchema) Reset() {
*x = MsgCreateCredentialSchema{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateCredentialSchema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateCredentialSchema) ProtoMessage() {}
// Deprecated: Use MsgCreateCredentialSchema.ProtoReflect.Descriptor instead.
func (*MsgCreateCredentialSchema) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{2}
}
func (x *MsgCreateCredentialSchema) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCreateCredentialSchema) GetTrId() uint64 {
if x != nil {
return x.TrId
}
return 0
}
func (x *MsgCreateCredentialSchema) GetJsonSchema() string {
if x != nil {
return x.JsonSchema
}
return ""
}
func (x *MsgCreateCredentialSchema) GetIssuerGrantorValidationValidityPeriod() uint32 {
if x != nil {
return x.IssuerGrantorValidationValidityPeriod
}
return 0
}
func (x *MsgCreateCredentialSchema) GetVerifierGrantorValidationValidityPeriod() uint32 {
if x != nil {
return x.VerifierGrantorValidationValidityPeriod
}
return 0
}
func (x *MsgCreateCredentialSchema) GetIssuerValidationValidityPeriod() uint32 {
if x != nil {
return x.IssuerValidationValidityPeriod
}
return 0
}
func (x *MsgCreateCredentialSchema) GetVerifierValidationValidityPeriod() uint32 {
if x != nil {
return x.VerifierValidationValidityPeriod
}
return 0
}
func (x *MsgCreateCredentialSchema) GetHolderValidationValidityPeriod() uint32 {
if x != nil {
return x.HolderValidationValidityPeriod
}
return 0
}
func (x *MsgCreateCredentialSchema) GetIssuerPermManagementMode() uint32 {
if x != nil {
return x.IssuerPermManagementMode
}
return 0
}
func (x *MsgCreateCredentialSchema) GetVerifierPermManagementMode() uint32 {
if x != nil {
return x.VerifierPermManagementMode
}
return 0
}
type MsgCreateCredentialSchemaResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the created credential schema for confirmation
}
func (x *MsgCreateCredentialSchemaResponse) Reset() {
*x = MsgCreateCredentialSchemaResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateCredentialSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateCredentialSchemaResponse) ProtoMessage() {}
// Deprecated: Use MsgCreateCredentialSchemaResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{3}
}
func (x *MsgCreateCredentialSchemaResponse) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgUpdateCredentialSchema struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
IssuerGrantorValidationValidityPeriod uint32 `protobuf:"varint,3,opt,name=issuer_grantor_validation_validity_period,json=issuerGrantorValidationValidityPeriod,proto3" json:"issuer_grantor_validation_validity_period,omitempty"`
VerifierGrantorValidationValidityPeriod uint32 `protobuf:"varint,4,opt,name=verifier_grantor_validation_validity_period,json=verifierGrantorValidationValidityPeriod,proto3" json:"verifier_grantor_validation_validity_period,omitempty"`
IssuerValidationValidityPeriod uint32 `protobuf:"varint,5,opt,name=issuer_validation_validity_period,json=issuerValidationValidityPeriod,proto3" json:"issuer_validation_validity_period,omitempty"`
VerifierValidationValidityPeriod uint32 `protobuf:"varint,6,opt,name=verifier_validation_validity_period,json=verifierValidationValidityPeriod,proto3" json:"verifier_validation_validity_period,omitempty"`
HolderValidationValidityPeriod uint32 `protobuf:"varint,7,opt,name=holder_validation_validity_period,json=holderValidationValidityPeriod,proto3" json:"holder_validation_validity_period,omitempty"`
}
func (x *MsgUpdateCredentialSchema) Reset() {
*x = MsgUpdateCredentialSchema{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateCredentialSchema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateCredentialSchema) ProtoMessage() {}
// Deprecated: Use MsgUpdateCredentialSchema.ProtoReflect.Descriptor instead.
func (*MsgUpdateCredentialSchema) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{4}
}
func (x *MsgUpdateCredentialSchema) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgUpdateCredentialSchema) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgUpdateCredentialSchema) GetIssuerGrantorValidationValidityPeriod() uint32 {
if x != nil {
return x.IssuerGrantorValidationValidityPeriod
}
return 0
}
func (x *MsgUpdateCredentialSchema) GetVerifierGrantorValidationValidityPeriod() uint32 {
if x != nil {
return x.VerifierGrantorValidationValidityPeriod
}
return 0
}
func (x *MsgUpdateCredentialSchema) GetIssuerValidationValidityPeriod() uint32 {
if x != nil {
return x.IssuerValidationValidityPeriod
}
return 0
}
func (x *MsgUpdateCredentialSchema) GetVerifierValidationValidityPeriod() uint32 {
if x != nil {
return x.VerifierValidationValidityPeriod
}
return 0
}
func (x *MsgUpdateCredentialSchema) GetHolderValidationValidityPeriod() uint32 {
if x != nil {
return x.HolderValidationValidityPeriod
}
return 0
}
type MsgUpdateCredentialSchemaResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateCredentialSchemaResponse) Reset() {
*x = MsgUpdateCredentialSchemaResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateCredentialSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateCredentialSchemaResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateCredentialSchemaResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{5}
}
type MsgArchiveCredentialSchema struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Archive bool `protobuf:"varint,3,opt,name=archive,proto3" json:"archive,omitempty"`
}
func (x *MsgArchiveCredentialSchema) Reset() {
*x = MsgArchiveCredentialSchema{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgArchiveCredentialSchema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgArchiveCredentialSchema) ProtoMessage() {}
// Deprecated: Use MsgArchiveCredentialSchema.ProtoReflect.Descriptor instead.
func (*MsgArchiveCredentialSchema) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{6}
}
func (x *MsgArchiveCredentialSchema) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgArchiveCredentialSchema) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgArchiveCredentialSchema) GetArchive() bool {
if x != nil {
return x.Archive
}
return false
}
type MsgArchiveCredentialSchemaResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgArchiveCredentialSchemaResponse) Reset() {
*x = MsgArchiveCredentialSchemaResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_tx_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgArchiveCredentialSchemaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgArchiveCredentialSchemaResponse) ProtoMessage() {}
// Deprecated: Use MsgArchiveCredentialSchemaResponse.ProtoReflect.Descriptor instead.
func (*MsgArchiveCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_tx_proto_rawDescGZIP(), []int{7}
}
var File_veranablockchain_credentialschema_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_credentialschema_tx_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a,
0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76,
0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x0f,
0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75,
0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x46, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x33, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x63, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x4d, 0x73,
0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a,
0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb2, 0x05, 0x0a, 0x19, 0x4d, 0x73, 0x67,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x72,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x72, 0x49, 0x64, 0x12,
0x1f, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x12, 0x58, 0x0a, 0x29, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74,
0x6f, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x25, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74,
0x6f, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69,
0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x5c, 0x0a, 0x2b, 0x76, 0x65,
0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x5f, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69,
0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x27, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69,
0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x49, 0x0a, 0x21, 0x69, 0x73, 0x73, 0x75,
0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x1e, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72,
0x69, 0x6f, 0x64, 0x12, 0x4d, 0x0a, 0x23, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64,
0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x20, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69,
0x6f, 0x64, 0x12, 0x49, 0x0a, 0x21, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79,
0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1e, 0x68,
0x6f, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x3d, 0x0a,
0x1b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6d, 0x61, 0x6e,
0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x18, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x41, 0x0a, 0x1d,
0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x1a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x65, 0x72,
0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x3a,
0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x33, 0x0a,
0x21, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
0x69, 0x64, 0x22, 0x8a, 0x04, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
0x52, 0x02, 0x69, 0x64, 0x12, 0x58, 0x0a, 0x29, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x67,
0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f,
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x25, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x47,
0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x5c,
0x0a, 0x2b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74,
0x6f, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x27, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x47, 0x72, 0x61,
0x6e, 0x74, 0x6f, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x49, 0x0a, 0x21,
0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f,
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1e, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74,
0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x4d, 0x0a, 0x23, 0x76, 0x65, 0x72, 0x69, 0x66,
0x69, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x06,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x20, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79,
0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x49, 0x0a, 0x21, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72,
0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x1e, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f,
0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22,
0x23, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x41, 0x72, 0x63, 0x68,
0x69, 0x76, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x72, 0x63, 0x68, 0x69,
0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76,
0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22,
0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x43, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xec, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x7e, 0x0a,
0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x32, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x1a, 0x3a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, 0x01,
0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x44, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, 0x01, 0x0a,
0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x44, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x17,
0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67, 0x41,
0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x45, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x72,
0x63, 0x68, 0x69, 0x76, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80,
0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xa5, 0x02, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x07,
0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62,
0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa,
0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0xca, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_credentialschema_tx_proto_rawDescOnce sync.Once
file_veranablockchain_credentialschema_tx_proto_rawDescData = file_veranablockchain_credentialschema_tx_proto_rawDesc
)
func file_veranablockchain_credentialschema_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_credentialschema_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_credentialschema_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_credentialschema_tx_proto_rawDescData)
})
return file_veranablockchain_credentialschema_tx_proto_rawDescData
}
var file_veranablockchain_credentialschema_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_veranablockchain_credentialschema_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.credentialschema.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.credentialschema.MsgUpdateParamsResponse
(*MsgCreateCredentialSchema)(nil), // 2: veranablockchain.credentialschema.MsgCreateCredentialSchema
(*MsgCreateCredentialSchemaResponse)(nil), // 3: veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse
(*MsgUpdateCredentialSchema)(nil), // 4: veranablockchain.credentialschema.MsgUpdateCredentialSchema
(*MsgUpdateCredentialSchemaResponse)(nil), // 5: veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse
(*MsgArchiveCredentialSchema)(nil), // 6: veranablockchain.credentialschema.MsgArchiveCredentialSchema
(*MsgArchiveCredentialSchemaResponse)(nil), // 7: veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse
(*Params)(nil), // 8: veranablockchain.credentialschema.Params
}
var file_veranablockchain_credentialschema_tx_proto_depIdxs = []int32{
8, // 0: veranablockchain.credentialschema.MsgUpdateParams.params:type_name -> veranablockchain.credentialschema.Params
0, // 1: veranablockchain.credentialschema.Msg.UpdateParams:input_type -> veranablockchain.credentialschema.MsgUpdateParams
2, // 2: veranablockchain.credentialschema.Msg.CreateCredentialSchema:input_type -> veranablockchain.credentialschema.MsgCreateCredentialSchema
4, // 3: veranablockchain.credentialschema.Msg.UpdateCredentialSchema:input_type -> veranablockchain.credentialschema.MsgUpdateCredentialSchema
6, // 4: veranablockchain.credentialschema.Msg.ArchiveCredentialSchema:input_type -> veranablockchain.credentialschema.MsgArchiveCredentialSchema
1, // 5: veranablockchain.credentialschema.Msg.UpdateParams:output_type -> veranablockchain.credentialschema.MsgUpdateParamsResponse
3, // 6: veranablockchain.credentialschema.Msg.CreateCredentialSchema:output_type -> veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse
5, // 7: veranablockchain.credentialschema.Msg.UpdateCredentialSchema:output_type -> veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse
7, // 8: veranablockchain.credentialschema.Msg.ArchiveCredentialSchema:output_type -> veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse
5, // [5:9] is the sub-list for method output_type
1, // [1:5] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_credentialschema_tx_proto_init() }
func file_veranablockchain_credentialschema_tx_proto_init() {
if File_veranablockchain_credentialschema_tx_proto != nil {
return
}
file_veranablockchain_credentialschema_params_proto_init()
file_veranablockchain_credentialschema_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_credentialschema_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateCredentialSchema); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateCredentialSchemaResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateCredentialSchema); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateCredentialSchemaResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgArchiveCredentialSchema); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_credentialschema_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgArchiveCredentialSchemaResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_credentialschema_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_credentialschema_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_credentialschema_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_credentialschema_tx_proto_msgTypes,
}.Build()
File_veranablockchain_credentialschema_tx_proto = out.File
file_veranablockchain_credentialschema_tx_proto_rawDesc = nil
file_veranablockchain_credentialschema_tx_proto_goTypes = nil
file_veranablockchain_credentialschema_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/credentialschema/tx.proto
package credentialschema
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.credentialschema.Msg/UpdateParams"
Msg_CreateCredentialSchema_FullMethodName = "/veranablockchain.credentialschema.Msg/CreateCredentialSchema"
Msg_UpdateCredentialSchema_FullMethodName = "/veranablockchain.credentialschema.Msg/UpdateCredentialSchema"
Msg_ArchiveCredentialSchema_FullMethodName = "/veranablockchain.credentialschema.Msg/ArchiveCredentialSchema"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// CreateCredentialSchema defines a method for creating a new credential schema.
CreateCredentialSchema(ctx context.Context, in *MsgCreateCredentialSchema, opts ...grpc.CallOption) (*MsgCreateCredentialSchemaResponse, error)
// UpdateCredentialSchema defines a method for updating a credential schema.
UpdateCredentialSchema(ctx context.Context, in *MsgUpdateCredentialSchema, opts ...grpc.CallOption) (*MsgUpdateCredentialSchemaResponse, error)
// ArchiveCredentialSchema defines a method for archiving a credential schema.
ArchiveCredentialSchema(ctx context.Context, in *MsgArchiveCredentialSchema, opts ...grpc.CallOption) (*MsgArchiveCredentialSchemaResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateCredentialSchema(ctx context.Context, in *MsgCreateCredentialSchema, opts ...grpc.CallOption) (*MsgCreateCredentialSchemaResponse, error) {
out := new(MsgCreateCredentialSchemaResponse)
err := c.cc.Invoke(ctx, Msg_CreateCredentialSchema_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) UpdateCredentialSchema(ctx context.Context, in *MsgUpdateCredentialSchema, opts ...grpc.CallOption) (*MsgUpdateCredentialSchemaResponse, error) {
out := new(MsgUpdateCredentialSchemaResponse)
err := c.cc.Invoke(ctx, Msg_UpdateCredentialSchema_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ArchiveCredentialSchema(ctx context.Context, in *MsgArchiveCredentialSchema, opts ...grpc.CallOption) (*MsgArchiveCredentialSchemaResponse, error) {
out := new(MsgArchiveCredentialSchemaResponse)
err := c.cc.Invoke(ctx, Msg_ArchiveCredentialSchema_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// CreateCredentialSchema defines a method for creating a new credential schema.
CreateCredentialSchema(context.Context, *MsgCreateCredentialSchema) (*MsgCreateCredentialSchemaResponse, error)
// UpdateCredentialSchema defines a method for updating a credential schema.
UpdateCredentialSchema(context.Context, *MsgUpdateCredentialSchema) (*MsgUpdateCredentialSchemaResponse, error)
// ArchiveCredentialSchema defines a method for archiving a credential schema.
ArchiveCredentialSchema(context.Context, *MsgArchiveCredentialSchema) (*MsgArchiveCredentialSchemaResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) CreateCredentialSchema(context.Context, *MsgCreateCredentialSchema) (*MsgCreateCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCredentialSchema not implemented")
}
func (UnimplementedMsgServer) UpdateCredentialSchema(context.Context, *MsgUpdateCredentialSchema) (*MsgUpdateCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCredentialSchema not implemented")
}
func (UnimplementedMsgServer) ArchiveCredentialSchema(context.Context, *MsgArchiveCredentialSchema) (*MsgArchiveCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArchiveCredentialSchema not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateCredentialSchema)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CreateCredentialSchema_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateCredentialSchema(ctx, req.(*MsgCreateCredentialSchema))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_UpdateCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateCredentialSchema)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateCredentialSchema_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateCredentialSchema(ctx, req.(*MsgUpdateCredentialSchema))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ArchiveCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgArchiveCredentialSchema)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ArchiveCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_ArchiveCredentialSchema_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ArchiveCredentialSchema(ctx, req.(*MsgArchiveCredentialSchema))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.credentialschema.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "CreateCredentialSchema",
Handler: _Msg_CreateCredentialSchema_Handler,
},
{
MethodName: "UpdateCredentialSchema",
Handler: _Msg_UpdateCredentialSchema_Handler,
},
{
MethodName: "ArchiveCredentialSchema",
Handler: _Msg_ArchiveCredentialSchema_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/credentialschema/tx.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package credentialschema
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_CredentialSchema protoreflect.MessageDescriptor
fd_CredentialSchema_id protoreflect.FieldDescriptor
fd_CredentialSchema_tr_id protoreflect.FieldDescriptor
fd_CredentialSchema_created protoreflect.FieldDescriptor
fd_CredentialSchema_modified protoreflect.FieldDescriptor
fd_CredentialSchema_archived protoreflect.FieldDescriptor
fd_CredentialSchema_deposit protoreflect.FieldDescriptor
fd_CredentialSchema_json_schema protoreflect.FieldDescriptor
fd_CredentialSchema_issuer_grantor_validation_validity_period protoreflect.FieldDescriptor
fd_CredentialSchema_verifier_grantor_validation_validity_period protoreflect.FieldDescriptor
fd_CredentialSchema_issuer_validation_validity_period protoreflect.FieldDescriptor
fd_CredentialSchema_verifier_validation_validity_period protoreflect.FieldDescriptor
fd_CredentialSchema_holder_validation_validity_period protoreflect.FieldDescriptor
fd_CredentialSchema_issuer_perm_management_mode protoreflect.FieldDescriptor
fd_CredentialSchema_verifier_perm_management_mode protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_credentialschema_types_proto_init()
md_CredentialSchema = File_veranablockchain_credentialschema_types_proto.Messages().ByName("CredentialSchema")
fd_CredentialSchema_id = md_CredentialSchema.Fields().ByName("id")
fd_CredentialSchema_tr_id = md_CredentialSchema.Fields().ByName("tr_id")
fd_CredentialSchema_created = md_CredentialSchema.Fields().ByName("created")
fd_CredentialSchema_modified = md_CredentialSchema.Fields().ByName("modified")
fd_CredentialSchema_archived = md_CredentialSchema.Fields().ByName("archived")
fd_CredentialSchema_deposit = md_CredentialSchema.Fields().ByName("deposit")
fd_CredentialSchema_json_schema = md_CredentialSchema.Fields().ByName("json_schema")
fd_CredentialSchema_issuer_grantor_validation_validity_period = md_CredentialSchema.Fields().ByName("issuer_grantor_validation_validity_period")
fd_CredentialSchema_verifier_grantor_validation_validity_period = md_CredentialSchema.Fields().ByName("verifier_grantor_validation_validity_period")
fd_CredentialSchema_issuer_validation_validity_period = md_CredentialSchema.Fields().ByName("issuer_validation_validity_period")
fd_CredentialSchema_verifier_validation_validity_period = md_CredentialSchema.Fields().ByName("verifier_validation_validity_period")
fd_CredentialSchema_holder_validation_validity_period = md_CredentialSchema.Fields().ByName("holder_validation_validity_period")
fd_CredentialSchema_issuer_perm_management_mode = md_CredentialSchema.Fields().ByName("issuer_perm_management_mode")
fd_CredentialSchema_verifier_perm_management_mode = md_CredentialSchema.Fields().ByName("verifier_perm_management_mode")
}
var _ protoreflect.Message = (*fastReflection_CredentialSchema)(nil)
type fastReflection_CredentialSchema CredentialSchema
func (x *CredentialSchema) ProtoReflect() protoreflect.Message {
return (*fastReflection_CredentialSchema)(x)
}
func (x *CredentialSchema) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_credentialschema_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_CredentialSchema_messageType fastReflection_CredentialSchema_messageType
var _ protoreflect.MessageType = fastReflection_CredentialSchema_messageType{}
type fastReflection_CredentialSchema_messageType struct{}
func (x fastReflection_CredentialSchema_messageType) Zero() protoreflect.Message {
return (*fastReflection_CredentialSchema)(nil)
}
func (x fastReflection_CredentialSchema_messageType) New() protoreflect.Message {
return new(fastReflection_CredentialSchema)
}
func (x fastReflection_CredentialSchema_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_CredentialSchema
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_CredentialSchema) Descriptor() protoreflect.MessageDescriptor {
return md_CredentialSchema
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_CredentialSchema) Type() protoreflect.MessageType {
return _fastReflection_CredentialSchema_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_CredentialSchema) New() protoreflect.Message {
return new(fastReflection_CredentialSchema)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_CredentialSchema) Interface() protoreflect.ProtoMessage {
return (*CredentialSchema)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_CredentialSchema) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_CredentialSchema_id, value) {
return
}
}
if x.TrId != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrId)
if !f(fd_CredentialSchema_tr_id, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_CredentialSchema_created, value) {
return
}
}
if x.Modified != nil {
value := protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
if !f(fd_CredentialSchema_modified, value) {
return
}
}
if x.Archived != nil {
value := protoreflect.ValueOfMessage(x.Archived.ProtoReflect())
if !f(fd_CredentialSchema_archived, value) {
return
}
}
if x.Deposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.Deposit)
if !f(fd_CredentialSchema_deposit, value) {
return
}
}
if x.JsonSchema != "" {
value := protoreflect.ValueOfString(x.JsonSchema)
if !f(fd_CredentialSchema_json_schema, value) {
return
}
}
if x.IssuerGrantorValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerGrantorValidationValidityPeriod)
if !f(fd_CredentialSchema_issuer_grantor_validation_validity_period, value) {
return
}
}
if x.VerifierGrantorValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierGrantorValidationValidityPeriod)
if !f(fd_CredentialSchema_verifier_grantor_validation_validity_period, value) {
return
}
}
if x.IssuerValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.IssuerValidationValidityPeriod)
if !f(fd_CredentialSchema_issuer_validation_validity_period, value) {
return
}
}
if x.VerifierValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.VerifierValidationValidityPeriod)
if !f(fd_CredentialSchema_verifier_validation_validity_period, value) {
return
}
}
if x.HolderValidationValidityPeriod != uint32(0) {
value := protoreflect.ValueOfUint32(x.HolderValidationValidityPeriod)
if !f(fd_CredentialSchema_holder_validation_validity_period, value) {
return
}
}
if x.IssuerPermManagementMode != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.IssuerPermManagementMode))
if !f(fd_CredentialSchema_issuer_perm_management_mode, value) {
return
}
}
if x.VerifierPermManagementMode != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.VerifierPermManagementMode))
if !f(fd_CredentialSchema_verifier_perm_management_mode, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_CredentialSchema) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.credentialschema.CredentialSchema.id":
return x.Id != uint64(0)
case "veranablockchain.credentialschema.CredentialSchema.tr_id":
return x.TrId != uint64(0)
case "veranablockchain.credentialschema.CredentialSchema.created":
return x.Created != nil
case "veranablockchain.credentialschema.CredentialSchema.modified":
return x.Modified != nil
case "veranablockchain.credentialschema.CredentialSchema.archived":
return x.Archived != nil
case "veranablockchain.credentialschema.CredentialSchema.deposit":
return x.Deposit != uint64(0)
case "veranablockchain.credentialschema.CredentialSchema.json_schema":
return x.JsonSchema != ""
case "veranablockchain.credentialschema.CredentialSchema.issuer_grantor_validation_validity_period":
return x.IssuerGrantorValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.verifier_grantor_validation_validity_period":
return x.VerifierGrantorValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.issuer_validation_validity_period":
return x.IssuerValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.verifier_validation_validity_period":
return x.VerifierValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.holder_validation_validity_period":
return x.HolderValidationValidityPeriod != uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode":
return x.IssuerPermManagementMode != 0
case "veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode":
return x.VerifierPermManagementMode != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.CredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.CredentialSchema does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchema) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.credentialschema.CredentialSchema.id":
x.Id = uint64(0)
case "veranablockchain.credentialschema.CredentialSchema.tr_id":
x.TrId = uint64(0)
case "veranablockchain.credentialschema.CredentialSchema.created":
x.Created = nil
case "veranablockchain.credentialschema.CredentialSchema.modified":
x.Modified = nil
case "veranablockchain.credentialschema.CredentialSchema.archived":
x.Archived = nil
case "veranablockchain.credentialschema.CredentialSchema.deposit":
x.Deposit = uint64(0)
case "veranablockchain.credentialschema.CredentialSchema.json_schema":
x.JsonSchema = ""
case "veranablockchain.credentialschema.CredentialSchema.issuer_grantor_validation_validity_period":
x.IssuerGrantorValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.verifier_grantor_validation_validity_period":
x.VerifierGrantorValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.issuer_validation_validity_period":
x.IssuerValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.verifier_validation_validity_period":
x.VerifierValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.holder_validation_validity_period":
x.HolderValidationValidityPeriod = uint32(0)
case "veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode":
x.IssuerPermManagementMode = 0
case "veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode":
x.VerifierPermManagementMode = 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.CredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.CredentialSchema does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_CredentialSchema) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.credentialschema.CredentialSchema.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.CredentialSchema.tr_id":
value := x.TrId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.CredentialSchema.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.modified":
value := x.Modified
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.archived":
value := x.Archived
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.deposit":
value := x.Deposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.credentialschema.CredentialSchema.json_schema":
value := x.JsonSchema
return protoreflect.ValueOfString(value)
case "veranablockchain.credentialschema.CredentialSchema.issuer_grantor_validation_validity_period":
value := x.IssuerGrantorValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.CredentialSchema.verifier_grantor_validation_validity_period":
value := x.VerifierGrantorValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.CredentialSchema.issuer_validation_validity_period":
value := x.IssuerValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.CredentialSchema.verifier_validation_validity_period":
value := x.VerifierValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.CredentialSchema.holder_validation_validity_period":
value := x.HolderValidationValidityPeriod
return protoreflect.ValueOfUint32(value)
case "veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode":
value := x.IssuerPermManagementMode
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
case "veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode":
value := x.VerifierPermManagementMode
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.CredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.CredentialSchema does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchema) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.credentialschema.CredentialSchema.id":
x.Id = value.Uint()
case "veranablockchain.credentialschema.CredentialSchema.tr_id":
x.TrId = value.Uint()
case "veranablockchain.credentialschema.CredentialSchema.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.credentialschema.CredentialSchema.modified":
x.Modified = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.credentialschema.CredentialSchema.archived":
x.Archived = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.credentialschema.CredentialSchema.deposit":
x.Deposit = value.Uint()
case "veranablockchain.credentialschema.CredentialSchema.json_schema":
x.JsonSchema = value.Interface().(string)
case "veranablockchain.credentialschema.CredentialSchema.issuer_grantor_validation_validity_period":
x.IssuerGrantorValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.CredentialSchema.verifier_grantor_validation_validity_period":
x.VerifierGrantorValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.CredentialSchema.issuer_validation_validity_period":
x.IssuerValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.CredentialSchema.verifier_validation_validity_period":
x.VerifierValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.CredentialSchema.holder_validation_validity_period":
x.HolderValidationValidityPeriod = uint32(value.Uint())
case "veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode":
x.IssuerPermManagementMode = (CredentialSchemaPermManagementMode)(value.Enum())
case "veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode":
x.VerifierPermManagementMode = (CredentialSchemaPermManagementMode)(value.Enum())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.CredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.CredentialSchema does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchema) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.CredentialSchema.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.modified":
if x.Modified == nil {
x.Modified = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.archived":
if x.Archived == nil {
x.Archived = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Archived.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.id":
panic(fmt.Errorf("field id of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.tr_id":
panic(fmt.Errorf("field tr_id of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.deposit":
panic(fmt.Errorf("field deposit of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.json_schema":
panic(fmt.Errorf("field json_schema of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.issuer_grantor_validation_validity_period":
panic(fmt.Errorf("field issuer_grantor_validation_validity_period of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.verifier_grantor_validation_validity_period":
panic(fmt.Errorf("field verifier_grantor_validation_validity_period of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.issuer_validation_validity_period":
panic(fmt.Errorf("field issuer_validation_validity_period of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.verifier_validation_validity_period":
panic(fmt.Errorf("field verifier_validation_validity_period of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.holder_validation_validity_period":
panic(fmt.Errorf("field holder_validation_validity_period of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode":
panic(fmt.Errorf("field issuer_perm_management_mode of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
case "veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode":
panic(fmt.Errorf("field verifier_perm_management_mode of message veranablockchain.credentialschema.CredentialSchema is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.CredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.CredentialSchema does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_CredentialSchema) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.credentialschema.CredentialSchema.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.CredentialSchema.tr_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.CredentialSchema.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.modified":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.archived":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.credentialschema.CredentialSchema.deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.credentialschema.CredentialSchema.json_schema":
return protoreflect.ValueOfString("")
case "veranablockchain.credentialschema.CredentialSchema.issuer_grantor_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.CredentialSchema.verifier_grantor_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.CredentialSchema.issuer_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.CredentialSchema.verifier_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.CredentialSchema.holder_validation_validity_period":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode":
return protoreflect.ValueOfEnum(0)
case "veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode":
return protoreflect.ValueOfEnum(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.credentialschema.CredentialSchema"))
}
panic(fmt.Errorf("message veranablockchain.credentialschema.CredentialSchema does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_CredentialSchema) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.credentialschema.CredentialSchema", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_CredentialSchema) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchema) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_CredentialSchema) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_CredentialSchema) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*CredentialSchema)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.TrId != 0 {
n += 1 + runtime.Sov(uint64(x.TrId))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Modified != nil {
l = options.Size(x.Modified)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Archived != nil {
l = options.Size(x.Archived)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Deposit != 0 {
n += 1 + runtime.Sov(uint64(x.Deposit))
}
l = len(x.JsonSchema)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.IssuerGrantorValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerGrantorValidationValidityPeriod))
}
if x.VerifierGrantorValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierGrantorValidationValidityPeriod))
}
if x.IssuerValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerValidationValidityPeriod))
}
if x.VerifierValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierValidationValidityPeriod))
}
if x.HolderValidationValidityPeriod != 0 {
n += 1 + runtime.Sov(uint64(x.HolderValidationValidityPeriod))
}
if x.IssuerPermManagementMode != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerPermManagementMode))
}
if x.VerifierPermManagementMode != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierPermManagementMode))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*CredentialSchema)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.VerifierPermManagementMode != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierPermManagementMode))
i--
dAtA[i] = 0x70
}
if x.IssuerPermManagementMode != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerPermManagementMode))
i--
dAtA[i] = 0x68
}
if x.HolderValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.HolderValidationValidityPeriod))
i--
dAtA[i] = 0x60
}
if x.VerifierValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierValidationValidityPeriod))
i--
dAtA[i] = 0x58
}
if x.IssuerValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerValidationValidityPeriod))
i--
dAtA[i] = 0x50
}
if x.VerifierGrantorValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x48
}
if x.IssuerGrantorValidationValidityPeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x40
}
if len(x.JsonSchema) > 0 {
i -= len(x.JsonSchema)
copy(dAtA[i:], x.JsonSchema)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.JsonSchema)))
i--
dAtA[i] = 0x3a
}
if x.Deposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Deposit))
i--
dAtA[i] = 0x30
}
if x.Archived != nil {
encoded, err := options.Marshal(x.Archived)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if x.Modified != nil {
encoded, err := options.Marshal(x.Modified)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.TrId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrId))
i--
dAtA[i] = 0x10
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*CredentialSchema)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
x.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Modified == nil {
x.Modified = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Modified); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Archived == nil {
x.Archived = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Archived); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
x.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Deposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field JsonSchema", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.JsonSchema = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerGrantorValidationValidityPeriod", wireType)
}
x.IssuerGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierGrantorValidationValidityPeriod", wireType)
}
x.VerifierGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerValidationValidityPeriod", wireType)
}
x.IssuerValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 11:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierValidationValidityPeriod", wireType)
}
x.VerifierValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 12:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HolderValidationValidityPeriod", wireType)
}
x.HolderValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.HolderValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 13:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerPermManagementMode", wireType)
}
x.IssuerPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerPermManagementMode |= CredentialSchemaPermManagementMode(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 14:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierPermManagementMode", wireType)
}
x.VerifierPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierPermManagementMode |= CredentialSchemaPermManagementMode(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/credentialschema/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// CredentialSchemaPermManagementMode defines how permissions are managed
type CredentialSchemaPermManagementMode int32
const (
// Default to prevent accidental omission
CredentialSchemaPermManagementMode_MODE_UNSPECIFIED CredentialSchemaPermManagementMode = 0
// Anyone can create their own permission
CredentialSchemaPermManagementMode_OPEN CredentialSchemaPermManagementMode = 1
// Requires validation from a grantor
CredentialSchemaPermManagementMode_GRANTOR_VALIDATION CredentialSchemaPermManagementMode = 2
// Requires validation from trust registry
CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION CredentialSchemaPermManagementMode = 3
)
// Enum value maps for CredentialSchemaPermManagementMode.
var (
CredentialSchemaPermManagementMode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
1: "OPEN",
2: "GRANTOR_VALIDATION",
3: "TRUST_REGISTRY_VALIDATION",
}
CredentialSchemaPermManagementMode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"OPEN": 1,
"GRANTOR_VALIDATION": 2,
"TRUST_REGISTRY_VALIDATION": 3,
}
)
func (x CredentialSchemaPermManagementMode) Enum() *CredentialSchemaPermManagementMode {
p := new(CredentialSchemaPermManagementMode)
*p = x
return p
}
func (x CredentialSchemaPermManagementMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CredentialSchemaPermManagementMode) Descriptor() protoreflect.EnumDescriptor {
return file_veranablockchain_credentialschema_types_proto_enumTypes[0].Descriptor()
}
func (CredentialSchemaPermManagementMode) Type() protoreflect.EnumType {
return &file_veranablockchain_credentialschema_types_proto_enumTypes[0]
}
func (x CredentialSchemaPermManagementMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CredentialSchemaPermManagementMode.Descriptor instead.
func (CredentialSchemaPermManagementMode) EnumDescriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_types_proto_rawDescGZIP(), []int{0}
}
// CredentialSchema defines the structure for a credential schema
type CredentialSchema struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
Modified *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=modified,proto3" json:"modified,omitempty"`
Archived *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=archived,proto3" json:"archived,omitempty"`
Deposit uint64 `protobuf:"varint,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
JsonSchema string `protobuf:"bytes,7,opt,name=json_schema,json=jsonSchema,proto3" json:"json_schema,omitempty"`
IssuerGrantorValidationValidityPeriod uint32 `protobuf:"varint,8,opt,name=issuer_grantor_validation_validity_period,json=issuerGrantorValidationValidityPeriod,proto3" json:"issuer_grantor_validation_validity_period,omitempty"`
VerifierGrantorValidationValidityPeriod uint32 `protobuf:"varint,9,opt,name=verifier_grantor_validation_validity_period,json=verifierGrantorValidationValidityPeriod,proto3" json:"verifier_grantor_validation_validity_period,omitempty"`
IssuerValidationValidityPeriod uint32 `protobuf:"varint,10,opt,name=issuer_validation_validity_period,json=issuerValidationValidityPeriod,proto3" json:"issuer_validation_validity_period,omitempty"`
VerifierValidationValidityPeriod uint32 `protobuf:"varint,11,opt,name=verifier_validation_validity_period,json=verifierValidationValidityPeriod,proto3" json:"verifier_validation_validity_period,omitempty"`
HolderValidationValidityPeriod uint32 `protobuf:"varint,12,opt,name=holder_validation_validity_period,json=holderValidationValidityPeriod,proto3" json:"holder_validation_validity_period,omitempty"`
IssuerPermManagementMode CredentialSchemaPermManagementMode `protobuf:"varint,13,opt,name=issuer_perm_management_mode,json=issuerPermManagementMode,proto3,enum=veranablockchain.credentialschema.CredentialSchemaPermManagementMode" json:"issuer_perm_management_mode,omitempty"`
VerifierPermManagementMode CredentialSchemaPermManagementMode `protobuf:"varint,14,opt,name=verifier_perm_management_mode,json=verifierPermManagementMode,proto3,enum=veranablockchain.credentialschema.CredentialSchemaPermManagementMode" json:"verifier_perm_management_mode,omitempty"`
}
func (x *CredentialSchema) Reset() {
*x = CredentialSchema{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_credentialschema_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CredentialSchema) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CredentialSchema) ProtoMessage() {}
// Deprecated: Use CredentialSchema.ProtoReflect.Descriptor instead.
func (*CredentialSchema) Descriptor() ([]byte, []int) {
return file_veranablockchain_credentialschema_types_proto_rawDescGZIP(), []int{0}
}
func (x *CredentialSchema) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *CredentialSchema) GetTrId() uint64 {
if x != nil {
return x.TrId
}
return 0
}
func (x *CredentialSchema) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *CredentialSchema) GetModified() *timestamppb.Timestamp {
if x != nil {
return x.Modified
}
return nil
}
func (x *CredentialSchema) GetArchived() *timestamppb.Timestamp {
if x != nil {
return x.Archived
}
return nil
}
func (x *CredentialSchema) GetDeposit() uint64 {
if x != nil {
return x.Deposit
}
return 0
}
func (x *CredentialSchema) GetJsonSchema() string {
if x != nil {
return x.JsonSchema
}
return ""
}
func (x *CredentialSchema) GetIssuerGrantorValidationValidityPeriod() uint32 {
if x != nil {
return x.IssuerGrantorValidationValidityPeriod
}
return 0
}
func (x *CredentialSchema) GetVerifierGrantorValidationValidityPeriod() uint32 {
if x != nil {
return x.VerifierGrantorValidationValidityPeriod
}
return 0
}
func (x *CredentialSchema) GetIssuerValidationValidityPeriod() uint32 {
if x != nil {
return x.IssuerValidationValidityPeriod
}
return 0
}
func (x *CredentialSchema) GetVerifierValidationValidityPeriod() uint32 {
if x != nil {
return x.VerifierValidationValidityPeriod
}
return 0
}
func (x *CredentialSchema) GetHolderValidationValidityPeriod() uint32 {
if x != nil {
return x.HolderValidationValidityPeriod
}
return 0
}
func (x *CredentialSchema) GetIssuerPermManagementMode() CredentialSchemaPermManagementMode {
if x != nil {
return x.IssuerPermManagementMode
}
return CredentialSchemaPermManagementMode_MODE_UNSPECIFIED
}
func (x *CredentialSchema) GetVerifierPermManagementMode() CredentialSchemaPermManagementMode {
if x != nil {
return x.VerifierPermManagementMode
}
return CredentialSchemaPermManagementMode_MODE_UNSPECIFIED
}
var File_veranablockchain_credentialschema_types_proto protoreflect.FileDescriptor
var file_veranablockchain_credentialschema_types_proto_rawDesc = []byte{
0x0a, 0x2d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x07, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x13, 0x0a, 0x05,
0x74, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x72, 0x49,
0x64, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08,
0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,
0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66,
0x69, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18,
0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x61, 0x72, 0x63,
0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12,
0x1f, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6a, 0x73, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x12, 0x58, 0x0a, 0x29, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74,
0x6f, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x08, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x25, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74,
0x6f, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69,
0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x5c, 0x0a, 0x2b, 0x76, 0x65,
0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72, 0x5f, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69,
0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x27, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x6f, 0x72,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69,
0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x49, 0x0a, 0x21, 0x69, 0x73, 0x73, 0x75,
0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61,
0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x1e, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72,
0x69, 0x6f, 0x64, 0x12, 0x4d, 0x0a, 0x23, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64,
0x69, 0x74, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x20, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69,
0x6f, 0x64, 0x12, 0x49, 0x0a, 0x21, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79,
0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1e, 0x68,
0x6f, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56,
0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x84, 0x01,
0x0a, 0x1b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61,
0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x18, 0x69, 0x73, 0x73, 0x75,
0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x4d, 0x6f, 0x64, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x1d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65,
0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e,
0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d,
0x6f, 0x64, 0x65, 0x52, 0x1a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x65, 0x72,
0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x2a,
0x7b, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e,
0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e,
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f,
0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x4f, 0x52,
0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x1d, 0x0a,
0x19, 0x54, 0x52, 0x55, 0x53, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x5f,
0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0xa8, 0x02, 0x0a,
0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x21, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0xca, 0x02,
0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_credentialschema_types_proto_rawDescOnce sync.Once
file_veranablockchain_credentialschema_types_proto_rawDescData = file_veranablockchain_credentialschema_types_proto_rawDesc
)
func file_veranablockchain_credentialschema_types_proto_rawDescGZIP() []byte {
file_veranablockchain_credentialschema_types_proto_rawDescOnce.Do(func() {
file_veranablockchain_credentialschema_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_credentialschema_types_proto_rawDescData)
})
return file_veranablockchain_credentialschema_types_proto_rawDescData
}
var file_veranablockchain_credentialschema_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_veranablockchain_credentialschema_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_credentialschema_types_proto_goTypes = []interface{}{
(CredentialSchemaPermManagementMode)(0), // 0: veranablockchain.credentialschema.CredentialSchemaPermManagementMode
(*CredentialSchema)(nil), // 1: veranablockchain.credentialschema.CredentialSchema
(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_veranablockchain_credentialschema_types_proto_depIdxs = []int32{
2, // 0: veranablockchain.credentialschema.CredentialSchema.created:type_name -> google.protobuf.Timestamp
2, // 1: veranablockchain.credentialschema.CredentialSchema.modified:type_name -> google.protobuf.Timestamp
2, // 2: veranablockchain.credentialschema.CredentialSchema.archived:type_name -> google.protobuf.Timestamp
0, // 3: veranablockchain.credentialschema.CredentialSchema.issuer_perm_management_mode:type_name -> veranablockchain.credentialschema.CredentialSchemaPermManagementMode
0, // 4: veranablockchain.credentialschema.CredentialSchema.verifier_perm_management_mode:type_name -> veranablockchain.credentialschema.CredentialSchemaPermManagementMode
5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_veranablockchain_credentialschema_types_proto_init() }
func file_veranablockchain_credentialschema_types_proto_init() {
if File_veranablockchain_credentialschema_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_credentialschema_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CredentialSchema); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_credentialschema_types_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_credentialschema_types_proto_goTypes,
DependencyIndexes: file_veranablockchain_credentialschema_types_proto_depIdxs,
EnumInfos: file_veranablockchain_credentialschema_types_proto_enumTypes,
MessageInfos: file_veranablockchain_credentialschema_types_proto_msgTypes,
}.Build()
File_veranablockchain_credentialschema_types_proto = out.File
file_veranablockchain_credentialschema_types_proto_rawDesc = nil
file_veranablockchain_credentialschema_types_proto_goTypes = nil
file_veranablockchain_credentialschema_types_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package cspermission
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
type _GenesisState_2_list struct {
list *[]*CredentialSchemaPerm
}
func (x *_GenesisState_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchemaPerm)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchemaPerm)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
v := new(CredentialSchemaPerm)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
v := new(CredentialSchemaPerm)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_GenesisState_3_list)(nil)
type _GenesisState_3_list struct {
list *[]*CredentialSchemaPermSession
}
func (x *_GenesisState_3_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_3_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchemaPermSession)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_3_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchemaPermSession)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value {
v := new(CredentialSchemaPermSession)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_3_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_3_list) NewElement() protoreflect.Value {
v := new(CredentialSchemaPermSession)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_3_list) IsValid() bool {
return x.list != nil
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_credential_schema_perms protoreflect.FieldDescriptor
fd_GenesisState_credential_schema_perm_sessions protoreflect.FieldDescriptor
fd_GenesisState_next_csp_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_genesis_proto_init()
md_GenesisState = File_veranablockchain_cspermission_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
fd_GenesisState_credential_schema_perms = md_GenesisState.Fields().ByName("credential_schema_perms")
fd_GenesisState_credential_schema_perm_sessions = md_GenesisState.Fields().ByName("credential_schema_perm_sessions")
fd_GenesisState_next_csp_id = md_GenesisState.Fields().ByName("next_csp_id")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
if len(x.CredentialSchemaPerms) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.CredentialSchemaPerms})
if !f(fd_GenesisState_credential_schema_perms, value) {
return
}
}
if len(x.CredentialSchemaPermSessions) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.CredentialSchemaPermSessions})
if !f(fd_GenesisState_credential_schema_perm_sessions, value) {
return
}
}
if x.NextCspId != uint64(0) {
value := protoreflect.ValueOfUint64(x.NextCspId)
if !f(fd_GenesisState_next_csp_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.GenesisState.params":
return x.Params != nil
case "veranablockchain.cspermission.GenesisState.credential_schema_perms":
return len(x.CredentialSchemaPerms) != 0
case "veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions":
return len(x.CredentialSchemaPermSessions) != 0
case "veranablockchain.cspermission.GenesisState.next_csp_id":
return x.NextCspId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.GenesisState.params":
x.Params = nil
case "veranablockchain.cspermission.GenesisState.credential_schema_perms":
x.CredentialSchemaPerms = nil
case "veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions":
x.CredentialSchemaPermSessions = nil
case "veranablockchain.cspermission.GenesisState.next_csp_id":
x.NextCspId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.GenesisState.credential_schema_perms":
if len(x.CredentialSchemaPerms) == 0 {
return protoreflect.ValueOfList(&_GenesisState_2_list{})
}
listValue := &_GenesisState_2_list{list: &x.CredentialSchemaPerms}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions":
if len(x.CredentialSchemaPermSessions) == 0 {
return protoreflect.ValueOfList(&_GenesisState_3_list{})
}
listValue := &_GenesisState_3_list{list: &x.CredentialSchemaPermSessions}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.cspermission.GenesisState.next_csp_id":
value := x.NextCspId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
case "veranablockchain.cspermission.GenesisState.credential_schema_perms":
lv := value.List()
clv := lv.(*_GenesisState_2_list)
x.CredentialSchemaPerms = *clv.list
case "veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions":
lv := value.List()
clv := lv.(*_GenesisState_3_list)
x.CredentialSchemaPermSessions = *clv.list
case "veranablockchain.cspermission.GenesisState.next_csp_id":
x.NextCspId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.cspermission.GenesisState.credential_schema_perms":
if x.CredentialSchemaPerms == nil {
x.CredentialSchemaPerms = []*CredentialSchemaPerm{}
}
value := &_GenesisState_2_list{list: &x.CredentialSchemaPerms}
return protoreflect.ValueOfList(value)
case "veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions":
if x.CredentialSchemaPermSessions == nil {
x.CredentialSchemaPermSessions = []*CredentialSchemaPermSession{}
}
value := &_GenesisState_3_list{list: &x.CredentialSchemaPermSessions}
return protoreflect.ValueOfList(value)
case "veranablockchain.cspermission.GenesisState.next_csp_id":
panic(fmt.Errorf("field next_csp_id of message veranablockchain.cspermission.GenesisState is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.GenesisState.credential_schema_perms":
list := []*CredentialSchemaPerm{}
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
case "veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions":
list := []*CredentialSchemaPermSession{}
return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
case "veranablockchain.cspermission.GenesisState.next_csp_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.CredentialSchemaPerms) > 0 {
for _, e := range x.CredentialSchemaPerms {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.CredentialSchemaPermSessions) > 0 {
for _, e := range x.CredentialSchemaPermSessions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.NextCspId != 0 {
n += 1 + runtime.Sov(uint64(x.NextCspId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.NextCspId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.NextCspId))
i--
dAtA[i] = 0x20
}
if len(x.CredentialSchemaPermSessions) > 0 {
for iNdEx := len(x.CredentialSchemaPermSessions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.CredentialSchemaPermSessions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
}
if len(x.CredentialSchemaPerms) > 0 {
for iNdEx := len(x.CredentialSchemaPerms) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.CredentialSchemaPerms[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaPerms", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.CredentialSchemaPerms = append(x.CredentialSchemaPerms, &CredentialSchemaPerm{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CredentialSchemaPerms[len(x.CredentialSchemaPerms)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaPermSessions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.CredentialSchemaPermSessions = append(x.CredentialSchemaPermSessions, &CredentialSchemaPermSession{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CredentialSchemaPermSessions[len(x.CredentialSchemaPermSessions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextCspId", wireType)
}
x.NextCspId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.NextCspId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/cspermission/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the cspermission module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// All active credential schema permissions
CredentialSchemaPerms []*CredentialSchemaPerm `protobuf:"bytes,2,rep,name=credential_schema_perms,json=credentialSchemaPerms,proto3" json:"credential_schema_perms,omitempty"`
// All active credential schema permission sessions
CredentialSchemaPermSessions []*CredentialSchemaPermSession `protobuf:"bytes,3,rep,name=credential_schema_perm_sessions,json=credentialSchemaPermSessions,proto3" json:"credential_schema_perm_sessions,omitempty"`
// Counter for next credential schema permission ID
NextCspId uint64 `protobuf:"varint,4,opt,name=next_csp_id,json=nextCspId,proto3" json:"next_csp_id,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
func (x *GenesisState) GetCredentialSchemaPerms() []*CredentialSchemaPerm {
if x != nil {
return x.CredentialSchemaPerms
}
return nil
}
func (x *GenesisState) GetCredentialSchemaPermSessions() []*CredentialSchemaPermSession {
if x != nil {
return x.CredentialSchemaPermSessions
}
return nil
}
func (x *GenesisState) GetNextCspId() uint64 {
if x != nil {
return x.NextCspId
}
return 0
}
var File_veranablockchain_cspermission_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_cspermission_genesis_proto_rawDesc = []byte{
0x0a, 0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x02, 0x0a,
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x48, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x71, 0x0a, 0x17, 0x63, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x70, 0x65, 0x72,
0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x42, 0x04, 0xc8,
0xde, 0x1f, 0x00, 0x52, 0x15, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x1f, 0x63,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x1c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x53, 0x65, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x63, 0x73, 0x70,
0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x43,
0x73, 0x70, 0x49, 0x64, 0x42, 0x92, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65,
0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61,
0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x1d, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x43, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1d, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c,
0x43, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x29, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c,
0x43, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_veranablockchain_cspermission_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_cspermission_genesis_proto_rawDescData = file_veranablockchain_cspermission_genesis_proto_rawDesc
)
func file_veranablockchain_cspermission_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_cspermission_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_cspermission_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_cspermission_genesis_proto_rawDescData)
})
return file_veranablockchain_cspermission_genesis_proto_rawDescData
}
var file_veranablockchain_cspermission_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_cspermission_genesis_proto_goTypes = []interface{}{
(*GenesisState)(nil), // 0: veranablockchain.cspermission.GenesisState
(*Params)(nil), // 1: veranablockchain.cspermission.Params
(*CredentialSchemaPerm)(nil), // 2: veranablockchain.cspermission.CredentialSchemaPerm
(*CredentialSchemaPermSession)(nil), // 3: veranablockchain.cspermission.CredentialSchemaPermSession
}
var file_veranablockchain_cspermission_genesis_proto_depIdxs = []int32{
1, // 0: veranablockchain.cspermission.GenesisState.params:type_name -> veranablockchain.cspermission.Params
2, // 1: veranablockchain.cspermission.GenesisState.credential_schema_perms:type_name -> veranablockchain.cspermission.CredentialSchemaPerm
3, // 2: veranablockchain.cspermission.GenesisState.credential_schema_perm_sessions:type_name -> veranablockchain.cspermission.CredentialSchemaPermSession
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_veranablockchain_cspermission_genesis_proto_init() }
func file_veranablockchain_cspermission_genesis_proto_init() {
if File_veranablockchain_cspermission_genesis_proto != nil {
return
}
file_veranablockchain_cspermission_params_proto_init()
file_veranablockchain_cspermission_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_cspermission_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_cspermission_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_cspermission_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_cspermission_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_cspermission_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_cspermission_genesis_proto = out.File
file_veranablockchain_cspermission_genesis_proto_rawDesc = nil
file_veranablockchain_cspermission_genesis_proto_goTypes = nil
file_veranablockchain_cspermission_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_module_module_proto_init()
md_Module = File_veranablockchain_cspermission_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.cspermission.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/cspermission/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_cspermission_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_cspermission_module_module_proto_rawDesc = []byte{
0x0a, 0x31, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x24, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x06, 0x4d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x74, 0x79, 0x3a, 0x3f, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x39, 0x0a, 0x37, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c,
0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x42, 0xbc, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x4d, 0xaa, 0x02, 0x24, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
0xca, 0x02, 0x24, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x30, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43,
0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x4d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_cspermission_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_cspermission_module_module_proto_rawDescData = file_veranablockchain_cspermission_module_module_proto_rawDesc
)
func file_veranablockchain_cspermission_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_cspermission_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_cspermission_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_cspermission_module_module_proto_rawDescData)
})
return file_veranablockchain_cspermission_module_module_proto_rawDescData
}
var file_veranablockchain_cspermission_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_cspermission_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.cspermission.module.Module
}
var file_veranablockchain_cspermission_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_cspermission_module_module_proto_init() }
func file_veranablockchain_cspermission_module_module_proto_init() {
if File_veranablockchain_cspermission_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_cspermission_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_cspermission_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_cspermission_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_cspermission_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_cspermission_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_cspermission_module_module_proto = out.File
file_veranablockchain_cspermission_module_module_proto_rawDesc = nil
file_veranablockchain_cspermission_module_module_proto_goTypes = nil
file_veranablockchain_cspermission_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package cspermission
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_Params protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_params_proto_init()
md_Params = File_veranablockchain_cspermission_params_proto.Messages().ByName("Params")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.Params"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.Params"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.Params"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.Params"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.Params"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.Params"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/cspermission/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_params_proto_rawDescGZIP(), []int{0}
}
var File_veranablockchain_cspermission_params_proto protoreflect.FileDescriptor
var file_veranablockchain_cspermission_params_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63,
0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69,
0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14,
0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x2f,
0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x63, 0x73, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42,
0x91, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_cspermission_params_proto_rawDescOnce sync.Once
file_veranablockchain_cspermission_params_proto_rawDescData = file_veranablockchain_cspermission_params_proto_rawDesc
)
func file_veranablockchain_cspermission_params_proto_rawDescGZIP() []byte {
file_veranablockchain_cspermission_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_cspermission_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_cspermission_params_proto_rawDescData)
})
return file_veranablockchain_cspermission_params_proto_rawDescData
}
var file_veranablockchain_cspermission_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_cspermission_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.cspermission.Params
}
var file_veranablockchain_cspermission_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_cspermission_params_proto_init() }
func file_veranablockchain_cspermission_params_proto_init() {
if File_veranablockchain_cspermission_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_cspermission_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_cspermission_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_cspermission_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_cspermission_params_proto_depIdxs,
MessageInfos: file_veranablockchain_cspermission_params_proto_msgTypes,
}.Build()
File_veranablockchain_cspermission_params_proto = out.File
file_veranablockchain_cspermission_params_proto_rawDesc = nil
file_veranablockchain_cspermission_params_proto_goTypes = nil
file_veranablockchain_cspermission_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package cspermission
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryListCSPRequest protoreflect.MessageDescriptor
fd_QueryListCSPRequest_schema_id protoreflect.FieldDescriptor
fd_QueryListCSPRequest_creator protoreflect.FieldDescriptor
fd_QueryListCSPRequest_grantee protoreflect.FieldDescriptor
fd_QueryListCSPRequest_did protoreflect.FieldDescriptor
fd_QueryListCSPRequest_type protoreflect.FieldDescriptor
fd_QueryListCSPRequest_response_max_size protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryListCSPRequest = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryListCSPRequest")
fd_QueryListCSPRequest_schema_id = md_QueryListCSPRequest.Fields().ByName("schema_id")
fd_QueryListCSPRequest_creator = md_QueryListCSPRequest.Fields().ByName("creator")
fd_QueryListCSPRequest_grantee = md_QueryListCSPRequest.Fields().ByName("grantee")
fd_QueryListCSPRequest_did = md_QueryListCSPRequest.Fields().ByName("did")
fd_QueryListCSPRequest_type = md_QueryListCSPRequest.Fields().ByName("type")
fd_QueryListCSPRequest_response_max_size = md_QueryListCSPRequest.Fields().ByName("response_max_size")
}
var _ protoreflect.Message = (*fastReflection_QueryListCSPRequest)(nil)
type fastReflection_QueryListCSPRequest QueryListCSPRequest
func (x *QueryListCSPRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListCSPRequest)(x)
}
func (x *QueryListCSPRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListCSPRequest_messageType fastReflection_QueryListCSPRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryListCSPRequest_messageType{}
type fastReflection_QueryListCSPRequest_messageType struct{}
func (x fastReflection_QueryListCSPRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListCSPRequest)(nil)
}
func (x fastReflection_QueryListCSPRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListCSPRequest)
}
func (x fastReflection_QueryListCSPRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCSPRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListCSPRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCSPRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListCSPRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryListCSPRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListCSPRequest) New() protoreflect.Message {
return new(fastReflection_QueryListCSPRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListCSPRequest) Interface() protoreflect.ProtoMessage {
return (*QueryListCSPRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListCSPRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_QueryListCSPRequest_schema_id, value) {
return
}
}
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_QueryListCSPRequest_creator, value) {
return
}
}
if x.Grantee != "" {
value := protoreflect.ValueOfString(x.Grantee)
if !f(fd_QueryListCSPRequest_grantee, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_QueryListCSPRequest_did, value) {
return
}
}
if x.Type_ != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_))
if !f(fd_QueryListCSPRequest_type, value) {
return
}
}
if x.ResponseMaxSize != uint32(0) {
value := protoreflect.ValueOfUint32(x.ResponseMaxSize)
if !f(fd_QueryListCSPRequest_response_max_size, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListCSPRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPRequest.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.cspermission.QueryListCSPRequest.creator":
return x.Creator != ""
case "veranablockchain.cspermission.QueryListCSPRequest.grantee":
return x.Grantee != ""
case "veranablockchain.cspermission.QueryListCSPRequest.did":
return x.Did != ""
case "veranablockchain.cspermission.QueryListCSPRequest.type":
return x.Type_ != 0
case "veranablockchain.cspermission.QueryListCSPRequest.response_max_size":
return x.ResponseMaxSize != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPRequest.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.cspermission.QueryListCSPRequest.creator":
x.Creator = ""
case "veranablockchain.cspermission.QueryListCSPRequest.grantee":
x.Grantee = ""
case "veranablockchain.cspermission.QueryListCSPRequest.did":
x.Did = ""
case "veranablockchain.cspermission.QueryListCSPRequest.type":
x.Type_ = 0
case "veranablockchain.cspermission.QueryListCSPRequest.response_max_size":
x.ResponseMaxSize = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListCSPRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryListCSPRequest.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.QueryListCSPRequest.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryListCSPRequest.grantee":
value := x.Grantee
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryListCSPRequest.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryListCSPRequest.type":
value := x.Type_
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
case "veranablockchain.cspermission.QueryListCSPRequest.response_max_size":
value := x.ResponseMaxSize
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPRequest.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.cspermission.QueryListCSPRequest.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.cspermission.QueryListCSPRequest.grantee":
x.Grantee = value.Interface().(string)
case "veranablockchain.cspermission.QueryListCSPRequest.did":
x.Did = value.Interface().(string)
case "veranablockchain.cspermission.QueryListCSPRequest.type":
x.Type_ = (CredentialSchemaPermType)(value.Enum())
case "veranablockchain.cspermission.QueryListCSPRequest.response_max_size":
x.ResponseMaxSize = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPRequest.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.cspermission.QueryListCSPRequest is not mutable"))
case "veranablockchain.cspermission.QueryListCSPRequest.creator":
panic(fmt.Errorf("field creator of message veranablockchain.cspermission.QueryListCSPRequest is not mutable"))
case "veranablockchain.cspermission.QueryListCSPRequest.grantee":
panic(fmt.Errorf("field grantee of message veranablockchain.cspermission.QueryListCSPRequest is not mutable"))
case "veranablockchain.cspermission.QueryListCSPRequest.did":
panic(fmt.Errorf("field did of message veranablockchain.cspermission.QueryListCSPRequest is not mutable"))
case "veranablockchain.cspermission.QueryListCSPRequest.type":
panic(fmt.Errorf("field type of message veranablockchain.cspermission.QueryListCSPRequest is not mutable"))
case "veranablockchain.cspermission.QueryListCSPRequest.response_max_size":
panic(fmt.Errorf("field response_max_size of message veranablockchain.cspermission.QueryListCSPRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListCSPRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPRequest.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.QueryListCSPRequest.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryListCSPRequest.grantee":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryListCSPRequest.did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryListCSPRequest.type":
return protoreflect.ValueOfEnum(0)
case "veranablockchain.cspermission.QueryListCSPRequest.response_max_size":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListCSPRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryListCSPRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListCSPRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListCSPRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListCSPRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListCSPRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Grantee)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Type_ != 0 {
n += 1 + runtime.Sov(uint64(x.Type_))
}
if x.ResponseMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.ResponseMaxSize))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListCSPRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ResponseMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ResponseMaxSize))
i--
dAtA[i] = 0x30
}
if x.Type_ != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_))
i--
dAtA[i] = 0x28
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x22
}
if len(x.Grantee) > 0 {
i -= len(x.Grantee)
copy(dAtA[i:], x.Grantee)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee)))
i--
dAtA[i] = 0x1a
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0x12
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListCSPRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCSPRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCSPRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Grantee = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
}
x.Type_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Type_ |= CredentialSchemaPermType(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
x.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryListCSPResponse_1_list)(nil)
type _QueryListCSPResponse_1_list struct {
list *[]*CredentialSchemaPerm
}
func (x *_QueryListCSPResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryListCSPResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryListCSPResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchemaPerm)
(*x.list)[i] = concreteValue
}
func (x *_QueryListCSPResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*CredentialSchemaPerm)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryListCSPResponse_1_list) AppendMutable() protoreflect.Value {
v := new(CredentialSchemaPerm)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListCSPResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryListCSPResponse_1_list) NewElement() protoreflect.Value {
v := new(CredentialSchemaPerm)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListCSPResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryListCSPResponse protoreflect.MessageDescriptor
fd_QueryListCSPResponse_permissions protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryListCSPResponse = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryListCSPResponse")
fd_QueryListCSPResponse_permissions = md_QueryListCSPResponse.Fields().ByName("permissions")
}
var _ protoreflect.Message = (*fastReflection_QueryListCSPResponse)(nil)
type fastReflection_QueryListCSPResponse QueryListCSPResponse
func (x *QueryListCSPResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListCSPResponse)(x)
}
func (x *QueryListCSPResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListCSPResponse_messageType fastReflection_QueryListCSPResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryListCSPResponse_messageType{}
type fastReflection_QueryListCSPResponse_messageType struct{}
func (x fastReflection_QueryListCSPResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListCSPResponse)(nil)
}
func (x fastReflection_QueryListCSPResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListCSPResponse)
}
func (x fastReflection_QueryListCSPResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCSPResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListCSPResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListCSPResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListCSPResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryListCSPResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListCSPResponse) New() protoreflect.Message {
return new(fastReflection_QueryListCSPResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListCSPResponse) Interface() protoreflect.ProtoMessage {
return (*QueryListCSPResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListCSPResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Permissions) != 0 {
value := protoreflect.ValueOfList(&_QueryListCSPResponse_1_list{list: &x.Permissions})
if !f(fd_QueryListCSPResponse_permissions, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListCSPResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPResponse.permissions":
return len(x.Permissions) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPResponse.permissions":
x.Permissions = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListCSPResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryListCSPResponse.permissions":
if len(x.Permissions) == 0 {
return protoreflect.ValueOfList(&_QueryListCSPResponse_1_list{})
}
listValue := &_QueryListCSPResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPResponse.permissions":
lv := value.List()
clv := lv.(*_QueryListCSPResponse_1_list)
x.Permissions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPResponse.permissions":
if x.Permissions == nil {
x.Permissions = []*CredentialSchemaPerm{}
}
value := &_QueryListCSPResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListCSPResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryListCSPResponse.permissions":
list := []*CredentialSchemaPerm{}
return protoreflect.ValueOfList(&_QueryListCSPResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryListCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryListCSPResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListCSPResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryListCSPResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListCSPResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListCSPResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListCSPResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListCSPResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListCSPResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Permissions) > 0 {
for _, e := range x.Permissions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListCSPResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Permissions) > 0 {
for iNdEx := len(x.Permissions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Permissions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListCSPResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCSPResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListCSPResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Permissions = append(x.Permissions, &CredentialSchemaPerm{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions[len(x.Permissions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetCSPRequest protoreflect.MessageDescriptor
fd_QueryGetCSPRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryGetCSPRequest = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryGetCSPRequest")
fd_QueryGetCSPRequest_id = md_QueryGetCSPRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_QueryGetCSPRequest)(nil)
type fastReflection_QueryGetCSPRequest QueryGetCSPRequest
func (x *QueryGetCSPRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetCSPRequest)(x)
}
func (x *QueryGetCSPRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetCSPRequest_messageType fastReflection_QueryGetCSPRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetCSPRequest_messageType{}
type fastReflection_QueryGetCSPRequest_messageType struct{}
func (x fastReflection_QueryGetCSPRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetCSPRequest)(nil)
}
func (x fastReflection_QueryGetCSPRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPRequest)
}
func (x fastReflection_QueryGetCSPRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetCSPRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetCSPRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetCSPRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetCSPRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetCSPRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetCSPRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetCSPRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_QueryGetCSPRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetCSPRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPRequest.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPRequest.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetCSPRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryGetCSPRequest.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPRequest.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.QueryGetCSPRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetCSPRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPRequest.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetCSPRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryGetCSPRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetCSPRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetCSPRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetCSPRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetCSPRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetCSPResponse protoreflect.MessageDescriptor
fd_QueryGetCSPResponse_permission protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryGetCSPResponse = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryGetCSPResponse")
fd_QueryGetCSPResponse_permission = md_QueryGetCSPResponse.Fields().ByName("permission")
}
var _ protoreflect.Message = (*fastReflection_QueryGetCSPResponse)(nil)
type fastReflection_QueryGetCSPResponse QueryGetCSPResponse
func (x *QueryGetCSPResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetCSPResponse)(x)
}
func (x *QueryGetCSPResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetCSPResponse_messageType fastReflection_QueryGetCSPResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetCSPResponse_messageType{}
type fastReflection_QueryGetCSPResponse_messageType struct{}
func (x fastReflection_QueryGetCSPResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetCSPResponse)(nil)
}
func (x fastReflection_QueryGetCSPResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPResponse)
}
func (x fastReflection_QueryGetCSPResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetCSPResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetCSPResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetCSPResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetCSPResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetCSPResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetCSPResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetCSPResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Permission != nil {
value := protoreflect.ValueOfMessage(x.Permission.ProtoReflect())
if !f(fd_QueryGetCSPResponse_permission, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetCSPResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPResponse.permission":
return x.Permission != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPResponse.permission":
x.Permission = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetCSPResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryGetCSPResponse.permission":
value := x.Permission
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPResponse.permission":
x.Permission = value.Message().Interface().(*CredentialSchemaPerm)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPResponse.permission":
if x.Permission == nil {
x.Permission = new(CredentialSchemaPerm)
}
return protoreflect.ValueOfMessage(x.Permission.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetCSPResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPResponse.permission":
m := new(CredentialSchemaPerm)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetCSPResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryGetCSPResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetCSPResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetCSPResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetCSPResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetCSPResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Permission != nil {
l = options.Size(x.Permission)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Permission != nil {
encoded, err := options.Marshal(x.Permission)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Permission == nil {
x.Permission = &CredentialSchemaPerm{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permission); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryIsAuthorizedIssuerRequest protoreflect.MessageDescriptor
fd_QueryIsAuthorizedIssuerRequest_issuer_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedIssuerRequest_user_agent_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedIssuerRequest_wallet_user_agent_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedIssuerRequest_schema_id protoreflect.FieldDescriptor
fd_QueryIsAuthorizedIssuerRequest_country protoreflect.FieldDescriptor
fd_QueryIsAuthorizedIssuerRequest_when protoreflect.FieldDescriptor
fd_QueryIsAuthorizedIssuerRequest_session_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryIsAuthorizedIssuerRequest = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryIsAuthorizedIssuerRequest")
fd_QueryIsAuthorizedIssuerRequest_issuer_did = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("issuer_did")
fd_QueryIsAuthorizedIssuerRequest_user_agent_did = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("user_agent_did")
fd_QueryIsAuthorizedIssuerRequest_wallet_user_agent_did = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("wallet_user_agent_did")
fd_QueryIsAuthorizedIssuerRequest_schema_id = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("schema_id")
fd_QueryIsAuthorizedIssuerRequest_country = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("country")
fd_QueryIsAuthorizedIssuerRequest_when = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("when")
fd_QueryIsAuthorizedIssuerRequest_session_id = md_QueryIsAuthorizedIssuerRequest.Fields().ByName("session_id")
}
var _ protoreflect.Message = (*fastReflection_QueryIsAuthorizedIssuerRequest)(nil)
type fastReflection_QueryIsAuthorizedIssuerRequest QueryIsAuthorizedIssuerRequest
func (x *QueryIsAuthorizedIssuerRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedIssuerRequest)(x)
}
func (x *QueryIsAuthorizedIssuerRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryIsAuthorizedIssuerRequest_messageType fastReflection_QueryIsAuthorizedIssuerRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryIsAuthorizedIssuerRequest_messageType{}
type fastReflection_QueryIsAuthorizedIssuerRequest_messageType struct{}
func (x fastReflection_QueryIsAuthorizedIssuerRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedIssuerRequest)(nil)
}
func (x fastReflection_QueryIsAuthorizedIssuerRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedIssuerRequest)
}
func (x fastReflection_QueryIsAuthorizedIssuerRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedIssuerRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedIssuerRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryIsAuthorizedIssuerRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedIssuerRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Interface() protoreflect.ProtoMessage {
return (*QueryIsAuthorizedIssuerRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.IssuerDid != "" {
value := protoreflect.ValueOfString(x.IssuerDid)
if !f(fd_QueryIsAuthorizedIssuerRequest_issuer_did, value) {
return
}
}
if x.UserAgentDid != "" {
value := protoreflect.ValueOfString(x.UserAgentDid)
if !f(fd_QueryIsAuthorizedIssuerRequest_user_agent_did, value) {
return
}
}
if x.WalletUserAgentDid != "" {
value := protoreflect.ValueOfString(x.WalletUserAgentDid)
if !f(fd_QueryIsAuthorizedIssuerRequest_wallet_user_agent_did, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_QueryIsAuthorizedIssuerRequest_schema_id, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_QueryIsAuthorizedIssuerRequest_country, value) {
return
}
}
if x.When != nil {
value := protoreflect.ValueOfMessage(x.When.ProtoReflect())
if !f(fd_QueryIsAuthorizedIssuerRequest_when, value) {
return
}
}
if x.SessionId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SessionId)
if !f(fd_QueryIsAuthorizedIssuerRequest_session_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.issuer_did":
return x.IssuerDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.user_agent_did":
return x.UserAgentDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.wallet_user_agent_did":
return x.WalletUserAgentDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.country":
return x.Country != ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when":
return x.When != nil
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.session_id":
return x.SessionId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.issuer_did":
x.IssuerDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.user_agent_did":
x.UserAgentDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.wallet_user_agent_did":
x.WalletUserAgentDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.country":
x.Country = ""
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when":
x.When = nil
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.session_id":
x.SessionId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.issuer_did":
value := x.IssuerDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.user_agent_did":
value := x.UserAgentDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.wallet_user_agent_did":
value := x.WalletUserAgentDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when":
value := x.When
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.session_id":
value := x.SessionId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.issuer_did":
x.IssuerDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.user_agent_did":
x.UserAgentDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.wallet_user_agent_did":
x.WalletUserAgentDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.country":
x.Country = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when":
x.When = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.session_id":
x.SessionId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when":
if x.When == nil {
x.When = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.When.ProtoReflect())
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.issuer_did":
panic(fmt.Errorf("field issuer_did of message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.user_agent_did":
panic(fmt.Errorf("field user_agent_did of message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.wallet_user_agent_did":
panic(fmt.Errorf("field wallet_user_agent_did of message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.country":
panic(fmt.Errorf("field country of message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.session_id":
panic(fmt.Errorf("field session_id of message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.issuer_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.user_agent_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.wallet_user_agent_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.country":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.session_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryIsAuthorizedIssuerRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryIsAuthorizedIssuerRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.IssuerDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.UserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.WalletUserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.When != nil {
l = options.Size(x.When)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.SessionId != 0 {
n += 1 + runtime.Sov(uint64(x.SessionId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedIssuerRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.SessionId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionId))
i--
dAtA[i] = 0x38
}
if x.When != nil {
encoded, err := options.Marshal(x.When)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x2a
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x20
}
if len(x.WalletUserAgentDid) > 0 {
i -= len(x.WalletUserAgentDid)
copy(dAtA[i:], x.WalletUserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletUserAgentDid)))
i--
dAtA[i] = 0x1a
}
if len(x.UserAgentDid) > 0 {
i -= len(x.UserAgentDid)
copy(dAtA[i:], x.UserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UserAgentDid)))
i--
dAtA[i] = 0x12
}
if len(x.IssuerDid) > 0 {
i -= len(x.IssuerDid)
copy(dAtA[i:], x.IssuerDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuerDid)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedIssuerRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedIssuerRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedIssuerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.IssuerDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.UserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletUserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.WalletUserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field When", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.When == nil {
x.When = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.When); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SessionId", wireType)
}
x.SessionId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SessionId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryIsAuthorizedIssuerResponse protoreflect.MessageDescriptor
fd_QueryIsAuthorizedIssuerResponse_status protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryIsAuthorizedIssuerResponse = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryIsAuthorizedIssuerResponse")
fd_QueryIsAuthorizedIssuerResponse_status = md_QueryIsAuthorizedIssuerResponse.Fields().ByName("status")
}
var _ protoreflect.Message = (*fastReflection_QueryIsAuthorizedIssuerResponse)(nil)
type fastReflection_QueryIsAuthorizedIssuerResponse QueryIsAuthorizedIssuerResponse
func (x *QueryIsAuthorizedIssuerResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedIssuerResponse)(x)
}
func (x *QueryIsAuthorizedIssuerResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryIsAuthorizedIssuerResponse_messageType fastReflection_QueryIsAuthorizedIssuerResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryIsAuthorizedIssuerResponse_messageType{}
type fastReflection_QueryIsAuthorizedIssuerResponse_messageType struct{}
func (x fastReflection_QueryIsAuthorizedIssuerResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedIssuerResponse)(nil)
}
func (x fastReflection_QueryIsAuthorizedIssuerResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedIssuerResponse)
}
func (x fastReflection_QueryIsAuthorizedIssuerResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedIssuerResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedIssuerResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryIsAuthorizedIssuerResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedIssuerResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Interface() protoreflect.ProtoMessage {
return (*QueryIsAuthorizedIssuerResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Status != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status))
if !f(fd_QueryIsAuthorizedIssuerResponse_status, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status":
return x.Status != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status":
x.Status = 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status":
value := x.Status
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status":
x.Status = (AuthorizationStatus)(value.Enum())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status":
panic(fmt.Errorf("field status of message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status":
return protoreflect.ValueOfEnum(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryIsAuthorizedIssuerResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryIsAuthorizedIssuerResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Status != 0 {
n += 1 + runtime.Sov(uint64(x.Status))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedIssuerResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Status != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Status))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedIssuerResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedIssuerResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedIssuerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
}
x.Status = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Status |= AuthorizationStatus(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryIsAuthorizedVerifierRequest protoreflect.MessageDescriptor
fd_QueryIsAuthorizedVerifierRequest_verifier_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_issuer_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_user_agent_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_wallet_user_agent_did protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_schema_id protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_country protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_when protoreflect.FieldDescriptor
fd_QueryIsAuthorizedVerifierRequest_session_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryIsAuthorizedVerifierRequest = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryIsAuthorizedVerifierRequest")
fd_QueryIsAuthorizedVerifierRequest_verifier_did = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("verifier_did")
fd_QueryIsAuthorizedVerifierRequest_issuer_did = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("issuer_did")
fd_QueryIsAuthorizedVerifierRequest_user_agent_did = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("user_agent_did")
fd_QueryIsAuthorizedVerifierRequest_wallet_user_agent_did = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("wallet_user_agent_did")
fd_QueryIsAuthorizedVerifierRequest_schema_id = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("schema_id")
fd_QueryIsAuthorizedVerifierRequest_country = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("country")
fd_QueryIsAuthorizedVerifierRequest_when = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("when")
fd_QueryIsAuthorizedVerifierRequest_session_id = md_QueryIsAuthorizedVerifierRequest.Fields().ByName("session_id")
}
var _ protoreflect.Message = (*fastReflection_QueryIsAuthorizedVerifierRequest)(nil)
type fastReflection_QueryIsAuthorizedVerifierRequest QueryIsAuthorizedVerifierRequest
func (x *QueryIsAuthorizedVerifierRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedVerifierRequest)(x)
}
func (x *QueryIsAuthorizedVerifierRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryIsAuthorizedVerifierRequest_messageType fastReflection_QueryIsAuthorizedVerifierRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryIsAuthorizedVerifierRequest_messageType{}
type fastReflection_QueryIsAuthorizedVerifierRequest_messageType struct{}
func (x fastReflection_QueryIsAuthorizedVerifierRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedVerifierRequest)(nil)
}
func (x fastReflection_QueryIsAuthorizedVerifierRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedVerifierRequest)
}
func (x fastReflection_QueryIsAuthorizedVerifierRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedVerifierRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedVerifierRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryIsAuthorizedVerifierRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedVerifierRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Interface() protoreflect.ProtoMessage {
return (*QueryIsAuthorizedVerifierRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.VerifierDid != "" {
value := protoreflect.ValueOfString(x.VerifierDid)
if !f(fd_QueryIsAuthorizedVerifierRequest_verifier_did, value) {
return
}
}
if x.IssuerDid != "" {
value := protoreflect.ValueOfString(x.IssuerDid)
if !f(fd_QueryIsAuthorizedVerifierRequest_issuer_did, value) {
return
}
}
if x.UserAgentDid != "" {
value := protoreflect.ValueOfString(x.UserAgentDid)
if !f(fd_QueryIsAuthorizedVerifierRequest_user_agent_did, value) {
return
}
}
if x.WalletUserAgentDid != "" {
value := protoreflect.ValueOfString(x.WalletUserAgentDid)
if !f(fd_QueryIsAuthorizedVerifierRequest_wallet_user_agent_did, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_QueryIsAuthorizedVerifierRequest_schema_id, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_QueryIsAuthorizedVerifierRequest_country, value) {
return
}
}
if x.When != nil {
value := protoreflect.ValueOfMessage(x.When.ProtoReflect())
if !f(fd_QueryIsAuthorizedVerifierRequest_when, value) {
return
}
}
if x.SessionId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SessionId)
if !f(fd_QueryIsAuthorizedVerifierRequest_session_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.verifier_did":
return x.VerifierDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.issuer_did":
return x.IssuerDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.user_agent_did":
return x.UserAgentDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.wallet_user_agent_did":
return x.WalletUserAgentDid != ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.country":
return x.Country != ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when":
return x.When != nil
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.session_id":
return x.SessionId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.verifier_did":
x.VerifierDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.issuer_did":
x.IssuerDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.user_agent_did":
x.UserAgentDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.wallet_user_agent_did":
x.WalletUserAgentDid = ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.country":
x.Country = ""
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when":
x.When = nil
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.session_id":
x.SessionId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.verifier_did":
value := x.VerifierDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.issuer_did":
value := x.IssuerDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.user_agent_did":
value := x.UserAgentDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.wallet_user_agent_did":
value := x.WalletUserAgentDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when":
value := x.When
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.session_id":
value := x.SessionId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.verifier_did":
x.VerifierDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.issuer_did":
x.IssuerDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.user_agent_did":
x.UserAgentDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.wallet_user_agent_did":
x.WalletUserAgentDid = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.country":
x.Country = value.Interface().(string)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when":
x.When = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.session_id":
x.SessionId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when":
if x.When == nil {
x.When = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.When.ProtoReflect())
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.verifier_did":
panic(fmt.Errorf("field verifier_did of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.issuer_did":
panic(fmt.Errorf("field issuer_did of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.user_agent_did":
panic(fmt.Errorf("field user_agent_did of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.wallet_user_agent_did":
panic(fmt.Errorf("field wallet_user_agent_did of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.country":
panic(fmt.Errorf("field country of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.session_id":
panic(fmt.Errorf("field session_id of message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.verifier_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.issuer_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.user_agent_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.wallet_user_agent_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.country":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.session_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryIsAuthorizedVerifierRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryIsAuthorizedVerifierRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.VerifierDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.IssuerDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.UserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.WalletUserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.When != nil {
l = options.Size(x.When)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.SessionId != 0 {
n += 1 + runtime.Sov(uint64(x.SessionId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedVerifierRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.SessionId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SessionId))
i--
dAtA[i] = 0x40
}
if x.When != nil {
encoded, err := options.Marshal(x.When)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x3a
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x32
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x28
}
if len(x.WalletUserAgentDid) > 0 {
i -= len(x.WalletUserAgentDid)
copy(dAtA[i:], x.WalletUserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletUserAgentDid)))
i--
dAtA[i] = 0x22
}
if len(x.UserAgentDid) > 0 {
i -= len(x.UserAgentDid)
copy(dAtA[i:], x.UserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UserAgentDid)))
i--
dAtA[i] = 0x1a
}
if len(x.IssuerDid) > 0 {
i -= len(x.IssuerDid)
copy(dAtA[i:], x.IssuerDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IssuerDid)))
i--
dAtA[i] = 0x12
}
if len(x.VerifierDid) > 0 {
i -= len(x.VerifierDid)
copy(dAtA[i:], x.VerifierDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VerifierDid)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedVerifierRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedVerifierRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedVerifierRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.VerifierDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.IssuerDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.UserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletUserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.WalletUserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 7:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field When", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.When == nil {
x.When = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.When); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 8:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SessionId", wireType)
}
x.SessionId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SessionId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryIsAuthorizedVerifierResponse protoreflect.MessageDescriptor
fd_QueryIsAuthorizedVerifierResponse_status protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryIsAuthorizedVerifierResponse = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryIsAuthorizedVerifierResponse")
fd_QueryIsAuthorizedVerifierResponse_status = md_QueryIsAuthorizedVerifierResponse.Fields().ByName("status")
}
var _ protoreflect.Message = (*fastReflection_QueryIsAuthorizedVerifierResponse)(nil)
type fastReflection_QueryIsAuthorizedVerifierResponse QueryIsAuthorizedVerifierResponse
func (x *QueryIsAuthorizedVerifierResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedVerifierResponse)(x)
}
func (x *QueryIsAuthorizedVerifierResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryIsAuthorizedVerifierResponse_messageType fastReflection_QueryIsAuthorizedVerifierResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryIsAuthorizedVerifierResponse_messageType{}
type fastReflection_QueryIsAuthorizedVerifierResponse_messageType struct{}
func (x fastReflection_QueryIsAuthorizedVerifierResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryIsAuthorizedVerifierResponse)(nil)
}
func (x fastReflection_QueryIsAuthorizedVerifierResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedVerifierResponse)
}
func (x fastReflection_QueryIsAuthorizedVerifierResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedVerifierResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryIsAuthorizedVerifierResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryIsAuthorizedVerifierResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) New() protoreflect.Message {
return new(fastReflection_QueryIsAuthorizedVerifierResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Interface() protoreflect.ProtoMessage {
return (*QueryIsAuthorizedVerifierResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Status != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Status))
if !f(fd_QueryIsAuthorizedVerifierResponse_status, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status":
return x.Status != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status":
x.Status = 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status":
value := x.Status
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status":
x.Status = (AuthorizationStatus)(value.Enum())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status":
panic(fmt.Errorf("field status of message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status":
return protoreflect.ValueOfEnum(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryIsAuthorizedVerifierResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryIsAuthorizedVerifierResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Status != 0 {
n += 1 + runtime.Sov(uint64(x.Status))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedVerifierResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Status != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Status))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryIsAuthorizedVerifierResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedVerifierResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsAuthorizedVerifierResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
}
x.Status = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Status |= AuthorizationStatus(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetCSPSRequest protoreflect.MessageDescriptor
fd_QueryGetCSPSRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryGetCSPSRequest = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryGetCSPSRequest")
fd_QueryGetCSPSRequest_id = md_QueryGetCSPSRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_QueryGetCSPSRequest)(nil)
type fastReflection_QueryGetCSPSRequest QueryGetCSPSRequest
func (x *QueryGetCSPSRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetCSPSRequest)(x)
}
func (x *QueryGetCSPSRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetCSPSRequest_messageType fastReflection_QueryGetCSPSRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetCSPSRequest_messageType{}
type fastReflection_QueryGetCSPSRequest_messageType struct{}
func (x fastReflection_QueryGetCSPSRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetCSPSRequest)(nil)
}
func (x fastReflection_QueryGetCSPSRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPSRequest)
}
func (x fastReflection_QueryGetCSPSRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPSRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetCSPSRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPSRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetCSPSRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetCSPSRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetCSPSRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPSRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetCSPSRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetCSPSRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetCSPSRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_QueryGetCSPSRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetCSPSRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSRequest.id":
return x.Id != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSRequest.id":
x.Id = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetCSPSRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSRequest.id":
value := x.Id
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSRequest.id":
x.Id = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.QueryGetCSPSRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetCSPSRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSRequest.id":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSRequest"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetCSPSRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryGetCSPSRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetCSPSRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetCSPSRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetCSPSRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetCSPSRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPSRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPSRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPSRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPSRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetCSPSResponse protoreflect.MessageDescriptor
fd_QueryGetCSPSResponse_csps protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_query_proto_init()
md_QueryGetCSPSResponse = File_veranablockchain_cspermission_query_proto.Messages().ByName("QueryGetCSPSResponse")
fd_QueryGetCSPSResponse_csps = md_QueryGetCSPSResponse.Fields().ByName("csps")
}
var _ protoreflect.Message = (*fastReflection_QueryGetCSPSResponse)(nil)
type fastReflection_QueryGetCSPSResponse QueryGetCSPSResponse
func (x *QueryGetCSPSResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetCSPSResponse)(x)
}
func (x *QueryGetCSPSResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetCSPSResponse_messageType fastReflection_QueryGetCSPSResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetCSPSResponse_messageType{}
type fastReflection_QueryGetCSPSResponse_messageType struct{}
func (x fastReflection_QueryGetCSPSResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetCSPSResponse)(nil)
}
func (x fastReflection_QueryGetCSPSResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPSResponse)
}
func (x fastReflection_QueryGetCSPSResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPSResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetCSPSResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetCSPSResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetCSPSResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetCSPSResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetCSPSResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetCSPSResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetCSPSResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetCSPSResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetCSPSResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Csps != nil {
value := protoreflect.ValueOfMessage(x.Csps.ProtoReflect())
if !f(fd_QueryGetCSPSResponse_csps, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetCSPSResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSResponse.csps":
return x.Csps != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSResponse.csps":
x.Csps = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetCSPSResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSResponse.csps":
value := x.Csps
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSResponse.csps":
x.Csps = value.Message().Interface().(*CredentialSchemaPermSession)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSResponse.csps":
if x.Csps == nil {
x.Csps = new(CredentialSchemaPermSession)
}
return protoreflect.ValueOfMessage(x.Csps.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetCSPSResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.QueryGetCSPSResponse.csps":
m := new(CredentialSchemaPermSession)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.QueryGetCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.QueryGetCSPSResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetCSPSResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.QueryGetCSPSResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetCSPSResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetCSPSResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetCSPSResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetCSPSResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetCSPSResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Csps != nil {
l = options.Size(x.Csps)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPSResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Csps != nil {
encoded, err := options.Marshal(x.Csps)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetCSPSResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPSResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetCSPSResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Csps", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Csps == nil {
x.Csps = &CredentialSchemaPermSession{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Csps); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/cspermission/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Authorization status enum
type AuthorizationStatus int32
const (
AuthorizationStatus_AUTHORIZED AuthorizationStatus = 0
AuthorizationStatus_FORBIDDEN AuthorizationStatus = 1
AuthorizationStatus_SESSION_REQUIRED AuthorizationStatus = 2
)
// Enum value maps for AuthorizationStatus.
var (
AuthorizationStatus_name = map[int32]string{
0: "AUTHORIZED",
1: "FORBIDDEN",
2: "SESSION_REQUIRED",
}
AuthorizationStatus_value = map[string]int32{
"AUTHORIZED": 0,
"FORBIDDEN": 1,
"SESSION_REQUIRED": 2,
}
)
func (x AuthorizationStatus) Enum() *AuthorizationStatus {
p := new(AuthorizationStatus)
*p = x
return p
}
func (x AuthorizationStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AuthorizationStatus) Descriptor() protoreflect.EnumDescriptor {
return file_veranablockchain_cspermission_query_proto_enumTypes[0].Descriptor()
}
func (AuthorizationStatus) Type() protoreflect.EnumType {
return &file_veranablockchain_cspermission_query_proto_enumTypes[0]
}
func (x AuthorizationStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AuthorizationStatus.Descriptor instead.
func (AuthorizationStatus) EnumDescriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// QueryListCSPRequest is the request type for Query/ListCSP method.
type QueryListCSPRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SchemaId uint64 `protobuf:"varint,1,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
Did string `protobuf:"bytes,4,opt,name=did,proto3" json:"did,omitempty"`
Type_ CredentialSchemaPermType `protobuf:"varint,5,opt,name=type,proto3,enum=veranablockchain.cspermission.CredentialSchemaPermType" json:"type,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,6,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (x *QueryListCSPRequest) Reset() {
*x = QueryListCSPRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListCSPRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListCSPRequest) ProtoMessage() {}
// Deprecated: Use QueryListCSPRequest.ProtoReflect.Descriptor instead.
func (*QueryListCSPRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{2}
}
func (x *QueryListCSPRequest) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *QueryListCSPRequest) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *QueryListCSPRequest) GetGrantee() string {
if x != nil {
return x.Grantee
}
return ""
}
func (x *QueryListCSPRequest) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *QueryListCSPRequest) GetType_() CredentialSchemaPermType {
if x != nil {
return x.Type_
}
return CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_UNSPECIFIED
}
func (x *QueryListCSPRequest) GetResponseMaxSize() uint32 {
if x != nil {
return x.ResponseMaxSize
}
return 0
}
// QueryListCSPResponse is the response type for Query/ListCSP method.
type QueryListCSPResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Permissions []*CredentialSchemaPerm `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
}
func (x *QueryListCSPResponse) Reset() {
*x = QueryListCSPResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListCSPResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListCSPResponse) ProtoMessage() {}
// Deprecated: Use QueryListCSPResponse.ProtoReflect.Descriptor instead.
func (*QueryListCSPResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryListCSPResponse) GetPermissions() []*CredentialSchemaPerm {
if x != nil {
return x.Permissions
}
return nil
}
// QueryGetCSPRequest is request type for Query/GetCSP
type QueryGetCSPRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *QueryGetCSPRequest) Reset() {
*x = QueryGetCSPRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetCSPRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetCSPRequest) ProtoMessage() {}
// Deprecated: Use QueryGetCSPRequest.ProtoReflect.Descriptor instead.
func (*QueryGetCSPRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{4}
}
func (x *QueryGetCSPRequest) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
// QueryGetCSPResponse is response type for Query/GetCSP
type QueryGetCSPResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Permission *CredentialSchemaPerm `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
}
func (x *QueryGetCSPResponse) Reset() {
*x = QueryGetCSPResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetCSPResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetCSPResponse) ProtoMessage() {}
// Deprecated: Use QueryGetCSPResponse.ProtoReflect.Descriptor instead.
func (*QueryGetCSPResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{5}
}
func (x *QueryGetCSPResponse) GetPermission() *CredentialSchemaPerm {
if x != nil {
return x.Permission
}
return nil
}
// QueryIsAuthorizedIssuerRequest is request type for Query/IsAuthorizedIssuer method
type QueryIsAuthorizedIssuerRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IssuerDid string `protobuf:"bytes,1,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"`
UserAgentDid string `protobuf:"bytes,2,opt,name=user_agent_did,json=userAgentDid,proto3" json:"user_agent_did,omitempty"`
WalletUserAgentDid string `protobuf:"bytes,3,opt,name=wallet_user_agent_did,json=walletUserAgentDid,proto3" json:"wallet_user_agent_did,omitempty"`
SchemaId uint64 `protobuf:"varint,4,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"`
When *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=when,proto3" json:"when,omitempty"`
SessionId uint64 `protobuf:"varint,7,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
}
func (x *QueryIsAuthorizedIssuerRequest) Reset() {
*x = QueryIsAuthorizedIssuerRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryIsAuthorizedIssuerRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryIsAuthorizedIssuerRequest) ProtoMessage() {}
// Deprecated: Use QueryIsAuthorizedIssuerRequest.ProtoReflect.Descriptor instead.
func (*QueryIsAuthorizedIssuerRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{6}
}
func (x *QueryIsAuthorizedIssuerRequest) GetIssuerDid() string {
if x != nil {
return x.IssuerDid
}
return ""
}
func (x *QueryIsAuthorizedIssuerRequest) GetUserAgentDid() string {
if x != nil {
return x.UserAgentDid
}
return ""
}
func (x *QueryIsAuthorizedIssuerRequest) GetWalletUserAgentDid() string {
if x != nil {
return x.WalletUserAgentDid
}
return ""
}
func (x *QueryIsAuthorizedIssuerRequest) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *QueryIsAuthorizedIssuerRequest) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *QueryIsAuthorizedIssuerRequest) GetWhen() *timestamppb.Timestamp {
if x != nil {
return x.When
}
return nil
}
func (x *QueryIsAuthorizedIssuerRequest) GetSessionId() uint64 {
if x != nil {
return x.SessionId
}
return 0
}
// QueryIsAuthorizedIssuerResponse is response type for Query/IsAuthorizedIssuer method
type QueryIsAuthorizedIssuerResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status AuthorizationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=veranablockchain.cspermission.AuthorizationStatus" json:"status,omitempty"`
}
func (x *QueryIsAuthorizedIssuerResponse) Reset() {
*x = QueryIsAuthorizedIssuerResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryIsAuthorizedIssuerResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryIsAuthorizedIssuerResponse) ProtoMessage() {}
// Deprecated: Use QueryIsAuthorizedIssuerResponse.ProtoReflect.Descriptor instead.
func (*QueryIsAuthorizedIssuerResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{7}
}
func (x *QueryIsAuthorizedIssuerResponse) GetStatus() AuthorizationStatus {
if x != nil {
return x.Status
}
return AuthorizationStatus_AUTHORIZED
}
type QueryIsAuthorizedVerifierRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
VerifierDid string `protobuf:"bytes,1,opt,name=verifier_did,json=verifierDid,proto3" json:"verifier_did,omitempty"`
IssuerDid string `protobuf:"bytes,2,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"`
UserAgentDid string `protobuf:"bytes,3,opt,name=user_agent_did,json=userAgentDid,proto3" json:"user_agent_did,omitempty"`
WalletUserAgentDid string `protobuf:"bytes,4,opt,name=wallet_user_agent_did,json=walletUserAgentDid,proto3" json:"wallet_user_agent_did,omitempty"`
SchemaId uint64 `protobuf:"varint,5,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
When *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=when,proto3" json:"when,omitempty"`
SessionId uint64 `protobuf:"varint,8,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
}
func (x *QueryIsAuthorizedVerifierRequest) Reset() {
*x = QueryIsAuthorizedVerifierRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryIsAuthorizedVerifierRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryIsAuthorizedVerifierRequest) ProtoMessage() {}
// Deprecated: Use QueryIsAuthorizedVerifierRequest.ProtoReflect.Descriptor instead.
func (*QueryIsAuthorizedVerifierRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{8}
}
func (x *QueryIsAuthorizedVerifierRequest) GetVerifierDid() string {
if x != nil {
return x.VerifierDid
}
return ""
}
func (x *QueryIsAuthorizedVerifierRequest) GetIssuerDid() string {
if x != nil {
return x.IssuerDid
}
return ""
}
func (x *QueryIsAuthorizedVerifierRequest) GetUserAgentDid() string {
if x != nil {
return x.UserAgentDid
}
return ""
}
func (x *QueryIsAuthorizedVerifierRequest) GetWalletUserAgentDid() string {
if x != nil {
return x.WalletUserAgentDid
}
return ""
}
func (x *QueryIsAuthorizedVerifierRequest) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *QueryIsAuthorizedVerifierRequest) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *QueryIsAuthorizedVerifierRequest) GetWhen() *timestamppb.Timestamp {
if x != nil {
return x.When
}
return nil
}
func (x *QueryIsAuthorizedVerifierRequest) GetSessionId() uint64 {
if x != nil {
return x.SessionId
}
return 0
}
type QueryIsAuthorizedVerifierResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status AuthorizationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=veranablockchain.cspermission.AuthorizationStatus" json:"status,omitempty"`
}
func (x *QueryIsAuthorizedVerifierResponse) Reset() {
*x = QueryIsAuthorizedVerifierResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryIsAuthorizedVerifierResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryIsAuthorizedVerifierResponse) ProtoMessage() {}
// Deprecated: Use QueryIsAuthorizedVerifierResponse.ProtoReflect.Descriptor instead.
func (*QueryIsAuthorizedVerifierResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{9}
}
func (x *QueryIsAuthorizedVerifierResponse) GetStatus() AuthorizationStatus {
if x != nil {
return x.Status
}
return AuthorizationStatus_AUTHORIZED
}
type QueryGetCSPSRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID
}
func (x *QueryGetCSPSRequest) Reset() {
*x = QueryGetCSPSRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetCSPSRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetCSPSRequest) ProtoMessage() {}
// Deprecated: Use QueryGetCSPSRequest.ProtoReflect.Descriptor instead.
func (*QueryGetCSPSRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{10}
}
func (x *QueryGetCSPSRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type QueryGetCSPSResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Csps *CredentialSchemaPermSession `protobuf:"bytes,1,opt,name=csps,proto3" json:"csps,omitempty"`
}
func (x *QueryGetCSPSResponse) Reset() {
*x = QueryGetCSPSResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_query_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetCSPSResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetCSPSResponse) ProtoMessage() {}
// Deprecated: Use QueryGetCSPSResponse.ProtoReflect.Descriptor instead.
func (*QueryGetCSPSResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_query_proto_rawDescGZIP(), []int{11}
}
func (x *QueryGetCSPSResponse) GetCsps() *CredentialSchemaPermSession {
if x != nil {
return x.Csps
}
return nil
}
var File_veranablockchain_cspermission_query_proto protoreflect.FileDescriptor
var file_veranablockchain_cspermission_query_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67,
0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f,
0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61,
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19,
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xb9, 0x02, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72,
0x79, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x04, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1c, 0xc8,
0xde, 0x1f, 0x01, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1c, 0xc8, 0xde, 0x1f, 0x01, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x16, 0x0a, 0x03,
0x64, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52,
0x03, 0x64, 0x69, 0x64, 0x12, 0x51, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x37, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x01, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x61, 0x78, 0x53,
0x69, 0x7a, 0x65, 0x22, 0x73, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74,
0x43, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0b, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x50, 0x65, 0x72, 0x6d, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x24, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72,
0x79, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x70,
0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x42, 0x04,
0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x22, 0xb4, 0x02, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x41, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x64, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x44,
0x69, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74,
0x5f, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72,
0x41, 0x67, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x12, 0x31, 0x0a, 0x15, 0x77, 0x61, 0x6c, 0x6c,
0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69,
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55,
0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52,
0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e,
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x77, 0x68,
0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,
0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x09, 0x73, 0x65,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x6d, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79,
0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x49, 0x73, 0x73, 0x75,
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f,
0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xd3, 0x02, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79,
0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69,
0x66, 0x69, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x76,
0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x44, 0x69, 0x64, 0x12, 0x1d,
0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x44, 0x69, 0x64, 0x12, 0x24, 0x0a,
0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74,
0x44, 0x69, 0x64, 0x12, 0x31, 0x0a, 0x15, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x75, 0x73,
0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x67,
0x65, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x06,
0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8,
0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x12, 0x1d, 0x0a,
0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
0x04, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x21,
0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65,
0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x25, 0x0a,
0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x53, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x02, 0x69, 0x64, 0x22, 0x66, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
0x43, 0x53, 0x50, 0x53, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x04,
0x63, 0x73, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x53,
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x63, 0x73, 0x70, 0x73, 0x2a, 0x4a, 0x0a, 0x13,
0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x45,
0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x42, 0x49, 0x44, 0x44, 0x45, 0x4e,
0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45,
0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x32, 0xb9, 0x07, 0x0a, 0x05, 0x51, 0x75, 0x65,
0x72, 0x79, 0x12, 0x87, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x31, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x63,
0x73, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x88, 0x01, 0x0a,
0x07, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x53, 0x50, 0x12, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69,
0x73, 0x74, 0x43, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65,
0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x63, 0x73, 0x70, 0x2f,
0x76, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x89, 0x01, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x43,
0x53, 0x50, 0x12, 0x31, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x53,
0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x12, 0x12, 0x10, 0x2f, 0x63, 0x73, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x74, 0x2f, 0x7b,
0x69, 0x64, 0x7d, 0x12, 0xb6, 0x01, 0x0a, 0x12, 0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x7a, 0x65, 0x64, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x3d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x49, 0x73, 0x73, 0x75,
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49,
0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x49, 0x73, 0x73, 0x75, 0x65,
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x1b, 0x12, 0x19, 0x2f, 0x63, 0x73, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f,
0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0xbe, 0x01, 0x0a,
0x14, 0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72,
0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x41, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x41, 0x75,
0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d,
0x12, 0x1b, 0x2f, 0x63, 0x73, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x94, 0x01,
0x0a, 0x07, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x53, 0x12, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47,
0x65, 0x74, 0x43, 0x53, 0x50, 0x53, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x43, 0x53, 0x50, 0x53, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x63, 0x73, 0x70,
0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x7b, 0x69, 0x64, 0x7d, 0x42, 0x90, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72,
0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x73, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_cspermission_query_proto_rawDescOnce sync.Once
file_veranablockchain_cspermission_query_proto_rawDescData = file_veranablockchain_cspermission_query_proto_rawDesc
)
func file_veranablockchain_cspermission_query_proto_rawDescGZIP() []byte {
file_veranablockchain_cspermission_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_cspermission_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_cspermission_query_proto_rawDescData)
})
return file_veranablockchain_cspermission_query_proto_rawDescData
}
var file_veranablockchain_cspermission_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_veranablockchain_cspermission_query_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_veranablockchain_cspermission_query_proto_goTypes = []interface{}{
(AuthorizationStatus)(0), // 0: veranablockchain.cspermission.AuthorizationStatus
(*QueryParamsRequest)(nil), // 1: veranablockchain.cspermission.QueryParamsRequest
(*QueryParamsResponse)(nil), // 2: veranablockchain.cspermission.QueryParamsResponse
(*QueryListCSPRequest)(nil), // 3: veranablockchain.cspermission.QueryListCSPRequest
(*QueryListCSPResponse)(nil), // 4: veranablockchain.cspermission.QueryListCSPResponse
(*QueryGetCSPRequest)(nil), // 5: veranablockchain.cspermission.QueryGetCSPRequest
(*QueryGetCSPResponse)(nil), // 6: veranablockchain.cspermission.QueryGetCSPResponse
(*QueryIsAuthorizedIssuerRequest)(nil), // 7: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest
(*QueryIsAuthorizedIssuerResponse)(nil), // 8: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse
(*QueryIsAuthorizedVerifierRequest)(nil), // 9: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest
(*QueryIsAuthorizedVerifierResponse)(nil), // 10: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse
(*QueryGetCSPSRequest)(nil), // 11: veranablockchain.cspermission.QueryGetCSPSRequest
(*QueryGetCSPSResponse)(nil), // 12: veranablockchain.cspermission.QueryGetCSPSResponse
(*Params)(nil), // 13: veranablockchain.cspermission.Params
(CredentialSchemaPermType)(0), // 14: veranablockchain.cspermission.CredentialSchemaPermType
(*CredentialSchemaPerm)(nil), // 15: veranablockchain.cspermission.CredentialSchemaPerm
(*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp
(*CredentialSchemaPermSession)(nil), // 17: veranablockchain.cspermission.CredentialSchemaPermSession
}
var file_veranablockchain_cspermission_query_proto_depIdxs = []int32{
13, // 0: veranablockchain.cspermission.QueryParamsResponse.params:type_name -> veranablockchain.cspermission.Params
14, // 1: veranablockchain.cspermission.QueryListCSPRequest.type:type_name -> veranablockchain.cspermission.CredentialSchemaPermType
15, // 2: veranablockchain.cspermission.QueryListCSPResponse.permissions:type_name -> veranablockchain.cspermission.CredentialSchemaPerm
15, // 3: veranablockchain.cspermission.QueryGetCSPResponse.permission:type_name -> veranablockchain.cspermission.CredentialSchemaPerm
16, // 4: veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest.when:type_name -> google.protobuf.Timestamp
0, // 5: veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse.status:type_name -> veranablockchain.cspermission.AuthorizationStatus
16, // 6: veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest.when:type_name -> google.protobuf.Timestamp
0, // 7: veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse.status:type_name -> veranablockchain.cspermission.AuthorizationStatus
17, // 8: veranablockchain.cspermission.QueryGetCSPSResponse.csps:type_name -> veranablockchain.cspermission.CredentialSchemaPermSession
1, // 9: veranablockchain.cspermission.Query.Params:input_type -> veranablockchain.cspermission.QueryParamsRequest
3, // 10: veranablockchain.cspermission.Query.ListCSP:input_type -> veranablockchain.cspermission.QueryListCSPRequest
5, // 11: veranablockchain.cspermission.Query.GetCSP:input_type -> veranablockchain.cspermission.QueryGetCSPRequest
7, // 12: veranablockchain.cspermission.Query.IsAuthorizedIssuer:input_type -> veranablockchain.cspermission.QueryIsAuthorizedIssuerRequest
9, // 13: veranablockchain.cspermission.Query.IsAuthorizedVerifier:input_type -> veranablockchain.cspermission.QueryIsAuthorizedVerifierRequest
11, // 14: veranablockchain.cspermission.Query.GetCSPS:input_type -> veranablockchain.cspermission.QueryGetCSPSRequest
2, // 15: veranablockchain.cspermission.Query.Params:output_type -> veranablockchain.cspermission.QueryParamsResponse
4, // 16: veranablockchain.cspermission.Query.ListCSP:output_type -> veranablockchain.cspermission.QueryListCSPResponse
6, // 17: veranablockchain.cspermission.Query.GetCSP:output_type -> veranablockchain.cspermission.QueryGetCSPResponse
8, // 18: veranablockchain.cspermission.Query.IsAuthorizedIssuer:output_type -> veranablockchain.cspermission.QueryIsAuthorizedIssuerResponse
10, // 19: veranablockchain.cspermission.Query.IsAuthorizedVerifier:output_type -> veranablockchain.cspermission.QueryIsAuthorizedVerifierResponse
12, // 20: veranablockchain.cspermission.Query.GetCSPS:output_type -> veranablockchain.cspermission.QueryGetCSPSResponse
15, // [15:21] is the sub-list for method output_type
9, // [9:15] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_veranablockchain_cspermission_query_proto_init() }
func file_veranablockchain_cspermission_query_proto_init() {
if File_veranablockchain_cspermission_query_proto != nil {
return
}
file_veranablockchain_cspermission_params_proto_init()
file_veranablockchain_cspermission_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_cspermission_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListCSPRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListCSPResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetCSPRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetCSPResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryIsAuthorizedIssuerRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryIsAuthorizedIssuerResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryIsAuthorizedVerifierRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryIsAuthorizedVerifierResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetCSPSRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetCSPSResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_cspermission_query_proto_rawDesc,
NumEnums: 1,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_cspermission_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_cspermission_query_proto_depIdxs,
EnumInfos: file_veranablockchain_cspermission_query_proto_enumTypes,
MessageInfos: file_veranablockchain_cspermission_query_proto_msgTypes,
}.Build()
File_veranablockchain_cspermission_query_proto = out.File
file_veranablockchain_cspermission_query_proto_rawDesc = nil
file_veranablockchain_cspermission_query_proto_goTypes = nil
file_veranablockchain_cspermission_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/cspermission/query.proto
package cspermission
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.cspermission.Query/Params"
Query_ListCSP_FullMethodName = "/veranablockchain.cspermission.Query/ListCSP"
Query_GetCSP_FullMethodName = "/veranablockchain.cspermission.Query/GetCSP"
Query_IsAuthorizedIssuer_FullMethodName = "/veranablockchain.cspermission.Query/IsAuthorizedIssuer"
Query_IsAuthorizedVerifier_FullMethodName = "/veranablockchain.cspermission.Query/IsAuthorizedVerifier"
Query_GetCSPS_FullMethodName = "/veranablockchain.cspermission.Query/GetCSPS"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ListCSP returns the list of credential schema permissions.
ListCSP(ctx context.Context, in *QueryListCSPRequest, opts ...grpc.CallOption) (*QueryListCSPResponse, error)
// GetCSP returns credential schema permission by ID
GetCSP(ctx context.Context, in *QueryGetCSPRequest, opts ...grpc.CallOption) (*QueryGetCSPResponse, error)
// IsAuthorizedIssuer checks if a DID is authorized to issue credentials
IsAuthorizedIssuer(ctx context.Context, in *QueryIsAuthorizedIssuerRequest, opts ...grpc.CallOption) (*QueryIsAuthorizedIssuerResponse, error)
IsAuthorizedVerifier(ctx context.Context, in *QueryIsAuthorizedVerifierRequest, opts ...grpc.CallOption) (*QueryIsAuthorizedVerifierResponse, error)
GetCSPS(ctx context.Context, in *QueryGetCSPSRequest, opts ...grpc.CallOption) (*QueryGetCSPSResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListCSP(ctx context.Context, in *QueryListCSPRequest, opts ...grpc.CallOption) (*QueryListCSPResponse, error) {
out := new(QueryListCSPResponse)
err := c.cc.Invoke(ctx, Query_ListCSP_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetCSP(ctx context.Context, in *QueryGetCSPRequest, opts ...grpc.CallOption) (*QueryGetCSPResponse, error) {
out := new(QueryGetCSPResponse)
err := c.cc.Invoke(ctx, Query_GetCSP_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) IsAuthorizedIssuer(ctx context.Context, in *QueryIsAuthorizedIssuerRequest, opts ...grpc.CallOption) (*QueryIsAuthorizedIssuerResponse, error) {
out := new(QueryIsAuthorizedIssuerResponse)
err := c.cc.Invoke(ctx, Query_IsAuthorizedIssuer_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) IsAuthorizedVerifier(ctx context.Context, in *QueryIsAuthorizedVerifierRequest, opts ...grpc.CallOption) (*QueryIsAuthorizedVerifierResponse, error) {
out := new(QueryIsAuthorizedVerifierResponse)
err := c.cc.Invoke(ctx, Query_IsAuthorizedVerifier_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetCSPS(ctx context.Context, in *QueryGetCSPSRequest, opts ...grpc.CallOption) (*QueryGetCSPSResponse, error) {
out := new(QueryGetCSPSResponse)
err := c.cc.Invoke(ctx, Query_GetCSPS_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ListCSP returns the list of credential schema permissions.
ListCSP(context.Context, *QueryListCSPRequest) (*QueryListCSPResponse, error)
// GetCSP returns credential schema permission by ID
GetCSP(context.Context, *QueryGetCSPRequest) (*QueryGetCSPResponse, error)
// IsAuthorizedIssuer checks if a DID is authorized to issue credentials
IsAuthorizedIssuer(context.Context, *QueryIsAuthorizedIssuerRequest) (*QueryIsAuthorizedIssuerResponse, error)
IsAuthorizedVerifier(context.Context, *QueryIsAuthorizedVerifierRequest) (*QueryIsAuthorizedVerifierResponse, error)
GetCSPS(context.Context, *QueryGetCSPSRequest) (*QueryGetCSPSResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) ListCSP(context.Context, *QueryListCSPRequest) (*QueryListCSPResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCSP not implemented")
}
func (UnimplementedQueryServer) GetCSP(context.Context, *QueryGetCSPRequest) (*QueryGetCSPResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCSP not implemented")
}
func (UnimplementedQueryServer) IsAuthorizedIssuer(context.Context, *QueryIsAuthorizedIssuerRequest) (*QueryIsAuthorizedIssuerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IsAuthorizedIssuer not implemented")
}
func (UnimplementedQueryServer) IsAuthorizedVerifier(context.Context, *QueryIsAuthorizedVerifierRequest) (*QueryIsAuthorizedVerifierResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IsAuthorizedVerifier not implemented")
}
func (UnimplementedQueryServer) GetCSPS(context.Context, *QueryGetCSPSRequest) (*QueryGetCSPSResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCSPS not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListCSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListCSPRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListCSP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_ListCSP_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListCSP(ctx, req.(*QueryListCSPRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetCSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetCSPRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetCSP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetCSP_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetCSP(ctx, req.(*QueryGetCSPRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_IsAuthorizedIssuer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryIsAuthorizedIssuerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).IsAuthorizedIssuer(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_IsAuthorizedIssuer_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).IsAuthorizedIssuer(ctx, req.(*QueryIsAuthorizedIssuerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_IsAuthorizedVerifier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryIsAuthorizedVerifierRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).IsAuthorizedVerifier(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_IsAuthorizedVerifier_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).IsAuthorizedVerifier(ctx, req.(*QueryIsAuthorizedVerifierRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetCSPS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetCSPSRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetCSPS(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetCSPS_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetCSPS(ctx, req.(*QueryGetCSPSRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.cspermission.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListCSP",
Handler: _Query_ListCSP_Handler,
},
{
MethodName: "GetCSP",
Handler: _Query_GetCSP_Handler,
},
{
MethodName: "IsAuthorizedIssuer",
Handler: _Query_IsAuthorizedIssuer_Handler,
},
{
MethodName: "IsAuthorizedVerifier",
Handler: _Query_IsAuthorizedVerifier_Handler,
},
{
MethodName: "GetCSPS",
Handler: _Query_GetCSPS_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/cspermission/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package cspermission
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.cspermission.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.cspermission.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.cspermission.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.cspermission.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.cspermission.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateCredentialSchemaPerm protoreflect.MessageDescriptor
fd_MsgCreateCredentialSchemaPerm_creator protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_schema_id protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_csp_type protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_did protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_grantee protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_effective_from protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_effective_until protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_country protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_validation_id protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_validation_fees protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_issuance_fees protoreflect.FieldDescriptor
fd_MsgCreateCredentialSchemaPerm_verification_fees protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgCreateCredentialSchemaPerm = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgCreateCredentialSchemaPerm")
fd_MsgCreateCredentialSchemaPerm_creator = md_MsgCreateCredentialSchemaPerm.Fields().ByName("creator")
fd_MsgCreateCredentialSchemaPerm_schema_id = md_MsgCreateCredentialSchemaPerm.Fields().ByName("schema_id")
fd_MsgCreateCredentialSchemaPerm_csp_type = md_MsgCreateCredentialSchemaPerm.Fields().ByName("csp_type")
fd_MsgCreateCredentialSchemaPerm_did = md_MsgCreateCredentialSchemaPerm.Fields().ByName("did")
fd_MsgCreateCredentialSchemaPerm_grantee = md_MsgCreateCredentialSchemaPerm.Fields().ByName("grantee")
fd_MsgCreateCredentialSchemaPerm_effective_from = md_MsgCreateCredentialSchemaPerm.Fields().ByName("effective_from")
fd_MsgCreateCredentialSchemaPerm_effective_until = md_MsgCreateCredentialSchemaPerm.Fields().ByName("effective_until")
fd_MsgCreateCredentialSchemaPerm_country = md_MsgCreateCredentialSchemaPerm.Fields().ByName("country")
fd_MsgCreateCredentialSchemaPerm_validation_id = md_MsgCreateCredentialSchemaPerm.Fields().ByName("validation_id")
fd_MsgCreateCredentialSchemaPerm_validation_fees = md_MsgCreateCredentialSchemaPerm.Fields().ByName("validation_fees")
fd_MsgCreateCredentialSchemaPerm_issuance_fees = md_MsgCreateCredentialSchemaPerm.Fields().ByName("issuance_fees")
fd_MsgCreateCredentialSchemaPerm_verification_fees = md_MsgCreateCredentialSchemaPerm.Fields().ByName("verification_fees")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateCredentialSchemaPerm)(nil)
type fastReflection_MsgCreateCredentialSchemaPerm MsgCreateCredentialSchemaPerm
func (x *MsgCreateCredentialSchemaPerm) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchemaPerm)(x)
}
func (x *MsgCreateCredentialSchemaPerm) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateCredentialSchemaPerm_messageType fastReflection_MsgCreateCredentialSchemaPerm_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateCredentialSchemaPerm_messageType{}
type fastReflection_MsgCreateCredentialSchemaPerm_messageType struct{}
func (x fastReflection_MsgCreateCredentialSchemaPerm_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchemaPerm)(nil)
}
func (x fastReflection_MsgCreateCredentialSchemaPerm_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchemaPerm)
}
func (x fastReflection_MsgCreateCredentialSchemaPerm_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchemaPerm
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchemaPerm
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateCredentialSchemaPerm_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchemaPerm)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Interface() protoreflect.ProtoMessage {
return (*MsgCreateCredentialSchemaPerm)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCreateCredentialSchemaPerm_creator, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_MsgCreateCredentialSchemaPerm_schema_id, value) {
return
}
}
if x.CspType != uint32(0) {
value := protoreflect.ValueOfUint32(x.CspType)
if !f(fd_MsgCreateCredentialSchemaPerm_csp_type, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgCreateCredentialSchemaPerm_did, value) {
return
}
}
if x.Grantee != "" {
value := protoreflect.ValueOfString(x.Grantee)
if !f(fd_MsgCreateCredentialSchemaPerm_grantee, value) {
return
}
}
if x.EffectiveFrom != nil {
value := protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
if !f(fd_MsgCreateCredentialSchemaPerm_effective_from, value) {
return
}
}
if x.EffectiveUntil != nil {
value := protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
if !f(fd_MsgCreateCredentialSchemaPerm_effective_until, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_MsgCreateCredentialSchemaPerm_country, value) {
return
}
}
if x.ValidationId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationId)
if !f(fd_MsgCreateCredentialSchemaPerm_validation_id, value) {
return
}
}
if x.ValidationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationFees)
if !f(fd_MsgCreateCredentialSchemaPerm_validation_fees, value) {
return
}
}
if x.IssuanceFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuanceFees)
if !f(fd_MsgCreateCredentialSchemaPerm_issuance_fees, value) {
return
}
}
if x.VerificationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerificationFees)
if !f(fd_MsgCreateCredentialSchemaPerm_verification_fees, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.creator":
return x.Creator != ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.csp_type":
return x.CspType != uint32(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.did":
return x.Did != ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.grantee":
return x.Grantee != ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from":
return x.EffectiveFrom != nil
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until":
return x.EffectiveUntil != nil
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.country":
return x.Country != ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_id":
return x.ValidationId != uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_fees":
return x.ValidationFees != uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.issuance_fees":
return x.IssuanceFees != uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.verification_fees":
return x.VerificationFees != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.creator":
x.Creator = ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.csp_type":
x.CspType = uint32(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.did":
x.Did = ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.grantee":
x.Grantee = ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from":
x.EffectiveFrom = nil
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until":
x.EffectiveUntil = nil
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.country":
x.Country = ""
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_id":
x.ValidationId = uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_fees":
x.ValidationFees = uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.issuance_fees":
x.IssuanceFees = uint64(0)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.verification_fees":
x.VerificationFees = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.csp_type":
value := x.CspType
return protoreflect.ValueOfUint32(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.grantee":
value := x.Grantee
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from":
value := x.EffectiveFrom
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until":
value := x.EffectiveUntil
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_id":
value := x.ValidationId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_fees":
value := x.ValidationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.issuance_fees":
value := x.IssuanceFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.verification_fees":
value := x.VerificationFees
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.csp_type":
x.CspType = uint32(value.Uint())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.did":
x.Did = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.grantee":
x.Grantee = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from":
x.EffectiveFrom = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until":
x.EffectiveUntil = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.country":
x.Country = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_id":
x.ValidationId = value.Uint()
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_fees":
x.ValidationFees = value.Uint()
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.issuance_fees":
x.IssuanceFees = value.Uint()
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.verification_fees":
x.VerificationFees = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from":
if x.EffectiveFrom == nil {
x.EffectiveFrom = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until":
if x.EffectiveUntil == nil {
x.EffectiveUntil = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.creator":
panic(fmt.Errorf("field creator of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.csp_type":
panic(fmt.Errorf("field csp_type of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.did":
panic(fmt.Errorf("field did of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.grantee":
panic(fmt.Errorf("field grantee of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.country":
panic(fmt.Errorf("field country of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_id":
panic(fmt.Errorf("field validation_id of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_fees":
panic(fmt.Errorf("field validation_fees of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.issuance_fees":
panic(fmt.Errorf("field issuance_fees of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.verification_fees":
panic(fmt.Errorf("field verification_fees of message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.csp_type":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.grantee":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.country":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.validation_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.issuance_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.verification_fees":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgCreateCredentialSchemaPerm", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateCredentialSchemaPerm) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateCredentialSchemaPerm)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
if x.CspType != 0 {
n += 1 + runtime.Sov(uint64(x.CspType))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Grantee)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveFrom != nil {
l = options.Size(x.EffectiveFrom)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveUntil != nil {
l = options.Size(x.EffectiveUntil)
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ValidationId != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationId))
}
if x.ValidationFees != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationFees))
}
if x.IssuanceFees != 0 {
n += 1 + runtime.Sov(uint64(x.IssuanceFees))
}
if x.VerificationFees != 0 {
n += 1 + runtime.Sov(uint64(x.VerificationFees))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchemaPerm)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.VerificationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerificationFees))
i--
dAtA[i] = 0x60
}
if x.IssuanceFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuanceFees))
i--
dAtA[i] = 0x58
}
if x.ValidationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationFees))
i--
dAtA[i] = 0x50
}
if x.ValidationId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationId))
i--
dAtA[i] = 0x48
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x42
}
if x.EffectiveUntil != nil {
encoded, err := options.Marshal(x.EffectiveUntil)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x3a
}
if x.EffectiveFrom != nil {
encoded, err := options.Marshal(x.EffectiveFrom)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if len(x.Grantee) > 0 {
i -= len(x.Grantee)
copy(dAtA[i:], x.Grantee)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee)))
i--
dAtA[i] = 0x2a
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x22
}
if x.CspType != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CspType))
i--
dAtA[i] = 0x18
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchemaPerm)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchemaPerm: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchemaPerm: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CspType", wireType)
}
x.CspType = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CspType |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Grantee = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveFrom", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveFrom == nil {
x.EffectiveFrom = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveFrom); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveUntil == nil {
x.EffectiveUntil = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveUntil); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 8:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 9:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationId", wireType)
}
x.ValidationId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
x.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 11:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
x.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 12:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
x.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateCredentialSchemaPermResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgCreateCredentialSchemaPermResponse = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgCreateCredentialSchemaPermResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateCredentialSchemaPermResponse)(nil)
type fastReflection_MsgCreateCredentialSchemaPermResponse MsgCreateCredentialSchemaPermResponse
func (x *MsgCreateCredentialSchemaPermResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchemaPermResponse)(x)
}
func (x *MsgCreateCredentialSchemaPermResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateCredentialSchemaPermResponse_messageType fastReflection_MsgCreateCredentialSchemaPermResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateCredentialSchemaPermResponse_messageType{}
type fastReflection_MsgCreateCredentialSchemaPermResponse_messageType struct{}
func (x fastReflection_MsgCreateCredentialSchemaPermResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateCredentialSchemaPermResponse)(nil)
}
func (x fastReflection_MsgCreateCredentialSchemaPermResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchemaPermResponse)
}
func (x fastReflection_MsgCreateCredentialSchemaPermResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchemaPermResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateCredentialSchemaPermResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateCredentialSchemaPermResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) New() protoreflect.Message {
return new(fastReflection_MsgCreateCredentialSchemaPermResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCreateCredentialSchemaPermResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateCredentialSchemaPermResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateCredentialSchemaPermResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchemaPermResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateCredentialSchemaPermResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchemaPermResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateCredentialSchemaPermResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRevokeCredentialSchemaPerm protoreflect.MessageDescriptor
fd_MsgRevokeCredentialSchemaPerm_creator protoreflect.FieldDescriptor
fd_MsgRevokeCredentialSchemaPerm_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgRevokeCredentialSchemaPerm = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgRevokeCredentialSchemaPerm")
fd_MsgRevokeCredentialSchemaPerm_creator = md_MsgRevokeCredentialSchemaPerm.Fields().ByName("creator")
fd_MsgRevokeCredentialSchemaPerm_id = md_MsgRevokeCredentialSchemaPerm.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgRevokeCredentialSchemaPerm)(nil)
type fastReflection_MsgRevokeCredentialSchemaPerm MsgRevokeCredentialSchemaPerm
func (x *MsgRevokeCredentialSchemaPerm) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRevokeCredentialSchemaPerm)(x)
}
func (x *MsgRevokeCredentialSchemaPerm) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRevokeCredentialSchemaPerm_messageType fastReflection_MsgRevokeCredentialSchemaPerm_messageType
var _ protoreflect.MessageType = fastReflection_MsgRevokeCredentialSchemaPerm_messageType{}
type fastReflection_MsgRevokeCredentialSchemaPerm_messageType struct{}
func (x fastReflection_MsgRevokeCredentialSchemaPerm_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRevokeCredentialSchemaPerm)(nil)
}
func (x fastReflection_MsgRevokeCredentialSchemaPerm_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRevokeCredentialSchemaPerm)
}
func (x fastReflection_MsgRevokeCredentialSchemaPerm_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokeCredentialSchemaPerm
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokeCredentialSchemaPerm
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Type() protoreflect.MessageType {
return _fastReflection_MsgRevokeCredentialSchemaPerm_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) New() protoreflect.Message {
return new(fastReflection_MsgRevokeCredentialSchemaPerm)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Interface() protoreflect.ProtoMessage {
return (*MsgRevokeCredentialSchemaPerm)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgRevokeCredentialSchemaPerm_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgRevokeCredentialSchemaPerm_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.creator":
return x.Creator != ""
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.creator":
x.Creator = ""
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.creator":
panic(fmt.Errorf("field creator of message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRevokeCredentialSchemaPerm) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRevokeCredentialSchemaPerm)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokeCredentialSchemaPerm)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokeCredentialSchemaPerm)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeCredentialSchemaPerm: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeCredentialSchemaPerm: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRevokeCredentialSchemaPermResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgRevokeCredentialSchemaPermResponse = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgRevokeCredentialSchemaPermResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgRevokeCredentialSchemaPermResponse)(nil)
type fastReflection_MsgRevokeCredentialSchemaPermResponse MsgRevokeCredentialSchemaPermResponse
func (x *MsgRevokeCredentialSchemaPermResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRevokeCredentialSchemaPermResponse)(x)
}
func (x *MsgRevokeCredentialSchemaPermResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType{}
type fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType struct{}
func (x fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRevokeCredentialSchemaPermResponse)(nil)
}
func (x fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRevokeCredentialSchemaPermResponse)
}
func (x fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokeCredentialSchemaPermResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokeCredentialSchemaPermResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgRevokeCredentialSchemaPermResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) New() protoreflect.Message {
return new(fastReflection_MsgRevokeCredentialSchemaPermResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Interface() protoreflect.ProtoMessage {
return (*MsgRevokeCredentialSchemaPermResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRevokeCredentialSchemaPermResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRevokeCredentialSchemaPermResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokeCredentialSchemaPermResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokeCredentialSchemaPermResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeCredentialSchemaPermResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokeCredentialSchemaPermResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgTerminateCredentialSchemaPerm protoreflect.MessageDescriptor
fd_MsgTerminateCredentialSchemaPerm_creator protoreflect.FieldDescriptor
fd_MsgTerminateCredentialSchemaPerm_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgTerminateCredentialSchemaPerm = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgTerminateCredentialSchemaPerm")
fd_MsgTerminateCredentialSchemaPerm_creator = md_MsgTerminateCredentialSchemaPerm.Fields().ByName("creator")
fd_MsgTerminateCredentialSchemaPerm_id = md_MsgTerminateCredentialSchemaPerm.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgTerminateCredentialSchemaPerm)(nil)
type fastReflection_MsgTerminateCredentialSchemaPerm MsgTerminateCredentialSchemaPerm
func (x *MsgTerminateCredentialSchemaPerm) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgTerminateCredentialSchemaPerm)(x)
}
func (x *MsgTerminateCredentialSchemaPerm) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgTerminateCredentialSchemaPerm_messageType fastReflection_MsgTerminateCredentialSchemaPerm_messageType
var _ protoreflect.MessageType = fastReflection_MsgTerminateCredentialSchemaPerm_messageType{}
type fastReflection_MsgTerminateCredentialSchemaPerm_messageType struct{}
func (x fastReflection_MsgTerminateCredentialSchemaPerm_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgTerminateCredentialSchemaPerm)(nil)
}
func (x fastReflection_MsgTerminateCredentialSchemaPerm_messageType) New() protoreflect.Message {
return new(fastReflection_MsgTerminateCredentialSchemaPerm)
}
func (x fastReflection_MsgTerminateCredentialSchemaPerm_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTerminateCredentialSchemaPerm
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTerminateCredentialSchemaPerm
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Type() protoreflect.MessageType {
return _fastReflection_MsgTerminateCredentialSchemaPerm_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) New() protoreflect.Message {
return new(fastReflection_MsgTerminateCredentialSchemaPerm)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Interface() protoreflect.ProtoMessage {
return (*MsgTerminateCredentialSchemaPerm)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgTerminateCredentialSchemaPerm_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgTerminateCredentialSchemaPerm_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.creator":
return x.Creator != ""
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.creator":
x.Creator = ""
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.creator":
panic(fmt.Errorf("field creator of message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgTerminateCredentialSchemaPerm) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgTerminateCredentialSchemaPerm)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgTerminateCredentialSchemaPerm)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgTerminateCredentialSchemaPerm)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTerminateCredentialSchemaPerm: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTerminateCredentialSchemaPerm: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgTerminateCredentialSchemaPermResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgTerminateCredentialSchemaPermResponse = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgTerminateCredentialSchemaPermResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgTerminateCredentialSchemaPermResponse)(nil)
type fastReflection_MsgTerminateCredentialSchemaPermResponse MsgTerminateCredentialSchemaPermResponse
func (x *MsgTerminateCredentialSchemaPermResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgTerminateCredentialSchemaPermResponse)(x)
}
func (x *MsgTerminateCredentialSchemaPermResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType{}
type fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType struct{}
func (x fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgTerminateCredentialSchemaPermResponse)(nil)
}
func (x fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgTerminateCredentialSchemaPermResponse)
}
func (x fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTerminateCredentialSchemaPermResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTerminateCredentialSchemaPermResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgTerminateCredentialSchemaPermResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) New() protoreflect.Message {
return new(fastReflection_MsgTerminateCredentialSchemaPermResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Interface() protoreflect.ProtoMessage {
return (*MsgTerminateCredentialSchemaPermResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgTerminateCredentialSchemaPermResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgTerminateCredentialSchemaPermResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgTerminateCredentialSchemaPermResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgTerminateCredentialSchemaPermResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTerminateCredentialSchemaPermResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTerminateCredentialSchemaPermResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateOrUpdateCSPS protoreflect.MessageDescriptor
fd_MsgCreateOrUpdateCSPS_creator protoreflect.FieldDescriptor
fd_MsgCreateOrUpdateCSPS_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdateCSPS_executor_perm_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdateCSPS_beneficiary_perm_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdateCSPS_user_agent_did protoreflect.FieldDescriptor
fd_MsgCreateOrUpdateCSPS_wallet_user_agent_did protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgCreateOrUpdateCSPS = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgCreateOrUpdateCSPS")
fd_MsgCreateOrUpdateCSPS_creator = md_MsgCreateOrUpdateCSPS.Fields().ByName("creator")
fd_MsgCreateOrUpdateCSPS_id = md_MsgCreateOrUpdateCSPS.Fields().ByName("id")
fd_MsgCreateOrUpdateCSPS_executor_perm_id = md_MsgCreateOrUpdateCSPS.Fields().ByName("executor_perm_id")
fd_MsgCreateOrUpdateCSPS_beneficiary_perm_id = md_MsgCreateOrUpdateCSPS.Fields().ByName("beneficiary_perm_id")
fd_MsgCreateOrUpdateCSPS_user_agent_did = md_MsgCreateOrUpdateCSPS.Fields().ByName("user_agent_did")
fd_MsgCreateOrUpdateCSPS_wallet_user_agent_did = md_MsgCreateOrUpdateCSPS.Fields().ByName("wallet_user_agent_did")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateOrUpdateCSPS)(nil)
type fastReflection_MsgCreateOrUpdateCSPS MsgCreateOrUpdateCSPS
func (x *MsgCreateOrUpdateCSPS) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdateCSPS)(x)
}
func (x *MsgCreateOrUpdateCSPS) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateOrUpdateCSPS_messageType fastReflection_MsgCreateOrUpdateCSPS_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateOrUpdateCSPS_messageType{}
type fastReflection_MsgCreateOrUpdateCSPS_messageType struct{}
func (x fastReflection_MsgCreateOrUpdateCSPS_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdateCSPS)(nil)
}
func (x fastReflection_MsgCreateOrUpdateCSPS_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdateCSPS)
}
func (x fastReflection_MsgCreateOrUpdateCSPS_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdateCSPS
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdateCSPS
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateOrUpdateCSPS_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateOrUpdateCSPS) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdateCSPS)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Interface() protoreflect.ProtoMessage {
return (*MsgCreateOrUpdateCSPS)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCreateOrUpdateCSPS_creator, value) {
return
}
}
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_MsgCreateOrUpdateCSPS_id, value) {
return
}
}
if x.ExecutorPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ExecutorPermId)
if !f(fd_MsgCreateOrUpdateCSPS_executor_perm_id, value) {
return
}
}
if x.BeneficiaryPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.BeneficiaryPermId)
if !f(fd_MsgCreateOrUpdateCSPS_beneficiary_perm_id, value) {
return
}
}
if x.UserAgentDid != "" {
value := protoreflect.ValueOfString(x.UserAgentDid)
if !f(fd_MsgCreateOrUpdateCSPS_user_agent_did, value) {
return
}
}
if x.WalletUserAgentDid != "" {
value := protoreflect.ValueOfString(x.WalletUserAgentDid)
if !f(fd_MsgCreateOrUpdateCSPS_wallet_user_agent_did, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.creator":
return x.Creator != ""
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.id":
return x.Id != ""
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.executor_perm_id":
return x.ExecutorPermId != uint64(0)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.beneficiary_perm_id":
return x.BeneficiaryPermId != uint64(0)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.user_agent_did":
return x.UserAgentDid != ""
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.wallet_user_agent_did":
return x.WalletUserAgentDid != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPS"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPS does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.creator":
x.Creator = ""
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.id":
x.Id = ""
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.executor_perm_id":
x.ExecutorPermId = uint64(0)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.beneficiary_perm_id":
x.BeneficiaryPermId = uint64(0)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.user_agent_did":
x.UserAgentDid = ""
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.wallet_user_agent_did":
x.WalletUserAgentDid = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPS"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPS does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.id":
value := x.Id
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.executor_perm_id":
value := x.ExecutorPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.beneficiary_perm_id":
value := x.BeneficiaryPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.user_agent_did":
value := x.UserAgentDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.wallet_user_agent_did":
value := x.WalletUserAgentDid
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPS"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPS does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.id":
x.Id = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.executor_perm_id":
x.ExecutorPermId = value.Uint()
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.beneficiary_perm_id":
x.BeneficiaryPermId = value.Uint()
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.user_agent_did":
x.UserAgentDid = value.Interface().(string)
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.wallet_user_agent_did":
x.WalletUserAgentDid = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPS"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPS does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPS) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.creator":
panic(fmt.Errorf("field creator of message veranablockchain.cspermission.MsgCreateOrUpdateCSPS is not mutable"))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.MsgCreateOrUpdateCSPS is not mutable"))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.executor_perm_id":
panic(fmt.Errorf("field executor_perm_id of message veranablockchain.cspermission.MsgCreateOrUpdateCSPS is not mutable"))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.beneficiary_perm_id":
panic(fmt.Errorf("field beneficiary_perm_id of message veranablockchain.cspermission.MsgCreateOrUpdateCSPS is not mutable"))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.user_agent_did":
panic(fmt.Errorf("field user_agent_did of message veranablockchain.cspermission.MsgCreateOrUpdateCSPS is not mutable"))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.wallet_user_agent_did":
panic(fmt.Errorf("field wallet_user_agent_did of message veranablockchain.cspermission.MsgCreateOrUpdateCSPS is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPS"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPS does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateOrUpdateCSPS) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.id":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.executor_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.beneficiary_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.user_agent_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.MsgCreateOrUpdateCSPS.wallet_user_agent_did":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPS"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPS does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateOrUpdateCSPS) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgCreateOrUpdateCSPS", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateOrUpdateCSPS) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPS) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateOrUpdateCSPS) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateOrUpdateCSPS) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateOrUpdateCSPS)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ExecutorPermId != 0 {
n += 1 + runtime.Sov(uint64(x.ExecutorPermId))
}
if x.BeneficiaryPermId != 0 {
n += 1 + runtime.Sov(uint64(x.BeneficiaryPermId))
}
l = len(x.UserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.WalletUserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdateCSPS)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.WalletUserAgentDid) > 0 {
i -= len(x.WalletUserAgentDid)
copy(dAtA[i:], x.WalletUserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletUserAgentDid)))
i--
dAtA[i] = 0x32
}
if len(x.UserAgentDid) > 0 {
i -= len(x.UserAgentDid)
copy(dAtA[i:], x.UserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UserAgentDid)))
i--
dAtA[i] = 0x2a
}
if x.BeneficiaryPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.BeneficiaryPermId))
i--
dAtA[i] = 0x20
}
if x.ExecutorPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ExecutorPermId))
i--
dAtA[i] = 0x18
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdateCSPS)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateCSPS: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateCSPS: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExecutorPermId", wireType)
}
x.ExecutorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ExecutorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryPermId", wireType)
}
x.BeneficiaryPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.BeneficiaryPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.UserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletUserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.WalletUserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateOrUpdateCSPSResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_cspermission_tx_proto_init()
md_MsgCreateOrUpdateCSPSResponse = File_veranablockchain_cspermission_tx_proto.Messages().ByName("MsgCreateOrUpdateCSPSResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateOrUpdateCSPSResponse)(nil)
type fastReflection_MsgCreateOrUpdateCSPSResponse MsgCreateOrUpdateCSPSResponse
func (x *MsgCreateOrUpdateCSPSResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdateCSPSResponse)(x)
}
func (x *MsgCreateOrUpdateCSPSResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateOrUpdateCSPSResponse_messageType fastReflection_MsgCreateOrUpdateCSPSResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateOrUpdateCSPSResponse_messageType{}
type fastReflection_MsgCreateOrUpdateCSPSResponse_messageType struct{}
func (x fastReflection_MsgCreateOrUpdateCSPSResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdateCSPSResponse)(nil)
}
func (x fastReflection_MsgCreateOrUpdateCSPSResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdateCSPSResponse)
}
func (x fastReflection_MsgCreateOrUpdateCSPSResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdateCSPSResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdateCSPSResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateOrUpdateCSPSResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdateCSPSResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCreateOrUpdateCSPSResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateOrUpdateCSPSResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateOrUpdateCSPSResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdateCSPSResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdateCSPSResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateCSPSResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdateCSPSResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/cspermission/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{1}
}
type MsgCreateCredentialSchemaPerm struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
SchemaId uint64 `protobuf:"varint,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
CspType uint32 `protobuf:"varint,3,opt,name=csp_type,json=cspType,proto3" json:"csp_type,omitempty"`
Did string `protobuf:"bytes,4,opt,name=did,proto3" json:"did,omitempty"`
Grantee string `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"`
// Required fields should be marked as non-nullable
EffectiveFrom *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=effective_from,json=effectiveFrom,proto3" json:"effective_from,omitempty"`
// Optional fields should be nullable
EffectiveUntil *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=effective_until,json=effectiveUntil,proto3" json:"effective_until,omitempty"`
Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"`
ValidationId uint64 `protobuf:"varint,9,opt,name=validation_id,json=validationId,proto3" json:"validation_id,omitempty"`
ValidationFees uint64 `protobuf:"varint,10,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,11,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,12,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
}
func (x *MsgCreateCredentialSchemaPerm) Reset() {
*x = MsgCreateCredentialSchemaPerm{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateCredentialSchemaPerm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateCredentialSchemaPerm) ProtoMessage() {}
// Deprecated: Use MsgCreateCredentialSchemaPerm.ProtoReflect.Descriptor instead.
func (*MsgCreateCredentialSchemaPerm) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{2}
}
func (x *MsgCreateCredentialSchemaPerm) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCreateCredentialSchemaPerm) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *MsgCreateCredentialSchemaPerm) GetCspType() uint32 {
if x != nil {
return x.CspType
}
return 0
}
func (x *MsgCreateCredentialSchemaPerm) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *MsgCreateCredentialSchemaPerm) GetGrantee() string {
if x != nil {
return x.Grantee
}
return ""
}
func (x *MsgCreateCredentialSchemaPerm) GetEffectiveFrom() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveFrom
}
return nil
}
func (x *MsgCreateCredentialSchemaPerm) GetEffectiveUntil() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveUntil
}
return nil
}
func (x *MsgCreateCredentialSchemaPerm) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *MsgCreateCredentialSchemaPerm) GetValidationId() uint64 {
if x != nil {
return x.ValidationId
}
return 0
}
func (x *MsgCreateCredentialSchemaPerm) GetValidationFees() uint64 {
if x != nil {
return x.ValidationFees
}
return 0
}
func (x *MsgCreateCredentialSchemaPerm) GetIssuanceFees() uint64 {
if x != nil {
return x.IssuanceFees
}
return 0
}
func (x *MsgCreateCredentialSchemaPerm) GetVerificationFees() uint64 {
if x != nil {
return x.VerificationFees
}
return 0
}
type MsgCreateCredentialSchemaPermResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgCreateCredentialSchemaPermResponse) Reset() {
*x = MsgCreateCredentialSchemaPermResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateCredentialSchemaPermResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateCredentialSchemaPermResponse) ProtoMessage() {}
// Deprecated: Use MsgCreateCredentialSchemaPermResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateCredentialSchemaPermResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{3}
}
type MsgRevokeCredentialSchemaPerm struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *MsgRevokeCredentialSchemaPerm) Reset() {
*x = MsgRevokeCredentialSchemaPerm{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRevokeCredentialSchemaPerm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRevokeCredentialSchemaPerm) ProtoMessage() {}
// Deprecated: Use MsgRevokeCredentialSchemaPerm.ProtoReflect.Descriptor instead.
func (*MsgRevokeCredentialSchemaPerm) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{4}
}
func (x *MsgRevokeCredentialSchemaPerm) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgRevokeCredentialSchemaPerm) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgRevokeCredentialSchemaPermResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgRevokeCredentialSchemaPermResponse) Reset() {
*x = MsgRevokeCredentialSchemaPermResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRevokeCredentialSchemaPermResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRevokeCredentialSchemaPermResponse) ProtoMessage() {}
// Deprecated: Use MsgRevokeCredentialSchemaPermResponse.ProtoReflect.Descriptor instead.
func (*MsgRevokeCredentialSchemaPermResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{5}
}
type MsgTerminateCredentialSchemaPerm struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *MsgTerminateCredentialSchemaPerm) Reset() {
*x = MsgTerminateCredentialSchemaPerm{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgTerminateCredentialSchemaPerm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgTerminateCredentialSchemaPerm) ProtoMessage() {}
// Deprecated: Use MsgTerminateCredentialSchemaPerm.ProtoReflect.Descriptor instead.
func (*MsgTerminateCredentialSchemaPerm) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{6}
}
func (x *MsgTerminateCredentialSchemaPerm) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgTerminateCredentialSchemaPerm) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgTerminateCredentialSchemaPermResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgTerminateCredentialSchemaPermResponse) Reset() {
*x = MsgTerminateCredentialSchemaPermResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgTerminateCredentialSchemaPermResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgTerminateCredentialSchemaPermResponse) ProtoMessage() {}
// Deprecated: Use MsgTerminateCredentialSchemaPermResponse.ProtoReflect.Descriptor instead.
func (*MsgTerminateCredentialSchemaPermResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{7}
}
type MsgCreateOrUpdateCSPS struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
ExecutorPermId uint64 `protobuf:"varint,3,opt,name=executor_perm_id,json=executorPermId,proto3" json:"executor_perm_id,omitempty"`
BeneficiaryPermId uint64 `protobuf:"varint,4,opt,name=beneficiary_perm_id,json=beneficiaryPermId,proto3" json:"beneficiary_perm_id,omitempty"` // optional based on type
UserAgentDid string `protobuf:"bytes,5,opt,name=user_agent_did,json=userAgentDid,proto3" json:"user_agent_did,omitempty"`
WalletUserAgentDid string `protobuf:"bytes,6,opt,name=wallet_user_agent_did,json=walletUserAgentDid,proto3" json:"wallet_user_agent_did,omitempty"`
}
func (x *MsgCreateOrUpdateCSPS) Reset() {
*x = MsgCreateOrUpdateCSPS{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateOrUpdateCSPS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateOrUpdateCSPS) ProtoMessage() {}
// Deprecated: Use MsgCreateOrUpdateCSPS.ProtoReflect.Descriptor instead.
func (*MsgCreateOrUpdateCSPS) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{8}
}
func (x *MsgCreateOrUpdateCSPS) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCreateOrUpdateCSPS) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *MsgCreateOrUpdateCSPS) GetExecutorPermId() uint64 {
if x != nil {
return x.ExecutorPermId
}
return 0
}
func (x *MsgCreateOrUpdateCSPS) GetBeneficiaryPermId() uint64 {
if x != nil {
return x.BeneficiaryPermId
}
return 0
}
func (x *MsgCreateOrUpdateCSPS) GetUserAgentDid() string {
if x != nil {
return x.UserAgentDid
}
return ""
}
func (x *MsgCreateOrUpdateCSPS) GetWalletUserAgentDid() string {
if x != nil {
return x.WalletUserAgentDid
}
return ""
}
type MsgCreateOrUpdateCSPSResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgCreateOrUpdateCSPSResponse) Reset() {
*x = MsgCreateOrUpdateCSPSResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_tx_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateOrUpdateCSPSResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateOrUpdateCSPSResponse) ProtoMessage() {}
// Deprecated: Use MsgCreateOrUpdateCSPSResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateOrUpdateCSPSResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_tx_proto_rawDescGZIP(), []int{9}
}
var File_veranablockchain_cspermission_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_cspermission_tx_proto_rawDesc = []byte{
0x0a, 0x26, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61,
0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14,
0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x01, 0x0a,
0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42,
0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x3a, 0x42, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0xc1, 0x04, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50,
0x65, 0x72, 0x6d, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x73, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12,
0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69,
0x64, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72,
0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69,
0x76, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90,
0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x46, 0x72,
0x6f, 0x6d, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f,
0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f,
0x01, 0x52, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x6e, 0x74, 0x69,
0x6c, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01,
0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72,
0x79, 0x12, 0x29, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x0c,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18,
0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63,
0x65, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x69, 0x73,
0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x65, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x65,
0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18,
0x0c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x25, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x71,
0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x12,
0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
0x02, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x22, 0x27, 0x0a, 0x25, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65,
0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x74, 0x0a, 0x20, 0x4d, 0x73,
0x67, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x12, 0x32,
0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x22, 0x2a, 0x0a, 0x28, 0x4d, 0x73, 0x67, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65,
0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa2, 0x02, 0x0a,
0x15, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x43, 0x53, 0x50, 0x53, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78,
0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03,
0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x65,
0x72, 0x6d, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69,
0x61, 0x72, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
0x04, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x11, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63,
0x69, 0x61, 0x72, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73,
0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x64,
0x12, 0x31, 0x0a, 0x15, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f,
0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74,
0x44, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x53, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x32, 0x81, 0x06, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x76, 0x0a, 0x0c, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x36, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72,
0x6d, 0x12, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x1a,
0x44, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65,
0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x50, 0x65, 0x72, 0x6d, 0x12, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x72,
0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65,
0x72, 0x6d, 0x1a, 0x44, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x72, 0x65, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa9, 0x01, 0x0a, 0x1d, 0x54, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x65,
0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x1a, 0x47, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63,
0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x54,
0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f,
0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x53, 0x12, 0x34, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63,
0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x53, 0x50,
0x53, 0x1a, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x43, 0x53, 0x50, 0x53, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a,
0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x8d, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x54, 0x78,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_cspermission_tx_proto_rawDescOnce sync.Once
file_veranablockchain_cspermission_tx_proto_rawDescData = file_veranablockchain_cspermission_tx_proto_rawDesc
)
func file_veranablockchain_cspermission_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_cspermission_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_cspermission_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_cspermission_tx_proto_rawDescData)
})
return file_veranablockchain_cspermission_tx_proto_rawDescData
}
var file_veranablockchain_cspermission_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_veranablockchain_cspermission_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.cspermission.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.cspermission.MsgUpdateParamsResponse
(*MsgCreateCredentialSchemaPerm)(nil), // 2: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm
(*MsgCreateCredentialSchemaPermResponse)(nil), // 3: veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse
(*MsgRevokeCredentialSchemaPerm)(nil), // 4: veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm
(*MsgRevokeCredentialSchemaPermResponse)(nil), // 5: veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse
(*MsgTerminateCredentialSchemaPerm)(nil), // 6: veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm
(*MsgTerminateCredentialSchemaPermResponse)(nil), // 7: veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse
(*MsgCreateOrUpdateCSPS)(nil), // 8: veranablockchain.cspermission.MsgCreateOrUpdateCSPS
(*MsgCreateOrUpdateCSPSResponse)(nil), // 9: veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse
(*Params)(nil), // 10: veranablockchain.cspermission.Params
(*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
}
var file_veranablockchain_cspermission_tx_proto_depIdxs = []int32{
10, // 0: veranablockchain.cspermission.MsgUpdateParams.params:type_name -> veranablockchain.cspermission.Params
11, // 1: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_from:type_name -> google.protobuf.Timestamp
11, // 2: veranablockchain.cspermission.MsgCreateCredentialSchemaPerm.effective_until:type_name -> google.protobuf.Timestamp
0, // 3: veranablockchain.cspermission.Msg.UpdateParams:input_type -> veranablockchain.cspermission.MsgUpdateParams
2, // 4: veranablockchain.cspermission.Msg.CreateCredentialSchemaPerm:input_type -> veranablockchain.cspermission.MsgCreateCredentialSchemaPerm
4, // 5: veranablockchain.cspermission.Msg.RevokeCredentialSchemaPerm:input_type -> veranablockchain.cspermission.MsgRevokeCredentialSchemaPerm
6, // 6: veranablockchain.cspermission.Msg.TerminateCredentialSchemaPerm:input_type -> veranablockchain.cspermission.MsgTerminateCredentialSchemaPerm
8, // 7: veranablockchain.cspermission.Msg.CreateOrUpdateCSPS:input_type -> veranablockchain.cspermission.MsgCreateOrUpdateCSPS
1, // 8: veranablockchain.cspermission.Msg.UpdateParams:output_type -> veranablockchain.cspermission.MsgUpdateParamsResponse
3, // 9: veranablockchain.cspermission.Msg.CreateCredentialSchemaPerm:output_type -> veranablockchain.cspermission.MsgCreateCredentialSchemaPermResponse
5, // 10: veranablockchain.cspermission.Msg.RevokeCredentialSchemaPerm:output_type -> veranablockchain.cspermission.MsgRevokeCredentialSchemaPermResponse
7, // 11: veranablockchain.cspermission.Msg.TerminateCredentialSchemaPerm:output_type -> veranablockchain.cspermission.MsgTerminateCredentialSchemaPermResponse
9, // 12: veranablockchain.cspermission.Msg.CreateOrUpdateCSPS:output_type -> veranablockchain.cspermission.MsgCreateOrUpdateCSPSResponse
8, // [8:13] is the sub-list for method output_type
3, // [3:8] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_veranablockchain_cspermission_tx_proto_init() }
func file_veranablockchain_cspermission_tx_proto_init() {
if File_veranablockchain_cspermission_tx_proto != nil {
return
}
file_veranablockchain_cspermission_params_proto_init()
file_veranablockchain_cspermission_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_cspermission_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateCredentialSchemaPerm); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateCredentialSchemaPermResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRevokeCredentialSchemaPerm); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRevokeCredentialSchemaPermResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgTerminateCredentialSchemaPerm); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgTerminateCredentialSchemaPermResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateOrUpdateCSPS); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateOrUpdateCSPSResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_cspermission_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_cspermission_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_cspermission_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_cspermission_tx_proto_msgTypes,
}.Build()
File_veranablockchain_cspermission_tx_proto = out.File
file_veranablockchain_cspermission_tx_proto_rawDesc = nil
file_veranablockchain_cspermission_tx_proto_goTypes = nil
file_veranablockchain_cspermission_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/cspermission/tx.proto
package cspermission
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.cspermission.Msg/UpdateParams"
Msg_CreateCredentialSchemaPerm_FullMethodName = "/veranablockchain.cspermission.Msg/CreateCredentialSchemaPerm"
Msg_RevokeCredentialSchemaPerm_FullMethodName = "/veranablockchain.cspermission.Msg/RevokeCredentialSchemaPerm"
Msg_TerminateCredentialSchemaPerm_FullMethodName = "/veranablockchain.cspermission.Msg/TerminateCredentialSchemaPerm"
Msg_CreateOrUpdateCSPS_FullMethodName = "/veranablockchain.cspermission.Msg/CreateOrUpdateCSPS"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
CreateCredentialSchemaPerm(ctx context.Context, in *MsgCreateCredentialSchemaPerm, opts ...grpc.CallOption) (*MsgCreateCredentialSchemaPermResponse, error)
RevokeCredentialSchemaPerm(ctx context.Context, in *MsgRevokeCredentialSchemaPerm, opts ...grpc.CallOption) (*MsgRevokeCredentialSchemaPermResponse, error)
TerminateCredentialSchemaPerm(ctx context.Context, in *MsgTerminateCredentialSchemaPerm, opts ...grpc.CallOption) (*MsgTerminateCredentialSchemaPermResponse, error)
CreateOrUpdateCSPS(ctx context.Context, in *MsgCreateOrUpdateCSPS, opts ...grpc.CallOption) (*MsgCreateOrUpdateCSPSResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateCredentialSchemaPerm(ctx context.Context, in *MsgCreateCredentialSchemaPerm, opts ...grpc.CallOption) (*MsgCreateCredentialSchemaPermResponse, error) {
out := new(MsgCreateCredentialSchemaPermResponse)
err := c.cc.Invoke(ctx, Msg_CreateCredentialSchemaPerm_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RevokeCredentialSchemaPerm(ctx context.Context, in *MsgRevokeCredentialSchemaPerm, opts ...grpc.CallOption) (*MsgRevokeCredentialSchemaPermResponse, error) {
out := new(MsgRevokeCredentialSchemaPermResponse)
err := c.cc.Invoke(ctx, Msg_RevokeCredentialSchemaPerm_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) TerminateCredentialSchemaPerm(ctx context.Context, in *MsgTerminateCredentialSchemaPerm, opts ...grpc.CallOption) (*MsgTerminateCredentialSchemaPermResponse, error) {
out := new(MsgTerminateCredentialSchemaPermResponse)
err := c.cc.Invoke(ctx, Msg_TerminateCredentialSchemaPerm_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateOrUpdateCSPS(ctx context.Context, in *MsgCreateOrUpdateCSPS, opts ...grpc.CallOption) (*MsgCreateOrUpdateCSPSResponse, error) {
out := new(MsgCreateOrUpdateCSPSResponse)
err := c.cc.Invoke(ctx, Msg_CreateOrUpdateCSPS_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
CreateCredentialSchemaPerm(context.Context, *MsgCreateCredentialSchemaPerm) (*MsgCreateCredentialSchemaPermResponse, error)
RevokeCredentialSchemaPerm(context.Context, *MsgRevokeCredentialSchemaPerm) (*MsgRevokeCredentialSchemaPermResponse, error)
TerminateCredentialSchemaPerm(context.Context, *MsgTerminateCredentialSchemaPerm) (*MsgTerminateCredentialSchemaPermResponse, error)
CreateOrUpdateCSPS(context.Context, *MsgCreateOrUpdateCSPS) (*MsgCreateOrUpdateCSPSResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) CreateCredentialSchemaPerm(context.Context, *MsgCreateCredentialSchemaPerm) (*MsgCreateCredentialSchemaPermResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCredentialSchemaPerm not implemented")
}
func (UnimplementedMsgServer) RevokeCredentialSchemaPerm(context.Context, *MsgRevokeCredentialSchemaPerm) (*MsgRevokeCredentialSchemaPermResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RevokeCredentialSchemaPerm not implemented")
}
func (UnimplementedMsgServer) TerminateCredentialSchemaPerm(context.Context, *MsgTerminateCredentialSchemaPerm) (*MsgTerminateCredentialSchemaPermResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TerminateCredentialSchemaPerm not implemented")
}
func (UnimplementedMsgServer) CreateOrUpdateCSPS(context.Context, *MsgCreateOrUpdateCSPS) (*MsgCreateOrUpdateCSPSResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdateCSPS not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateCredentialSchemaPerm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateCredentialSchemaPerm)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateCredentialSchemaPerm(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CreateCredentialSchemaPerm_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateCredentialSchemaPerm(ctx, req.(*MsgCreateCredentialSchemaPerm))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RevokeCredentialSchemaPerm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRevokeCredentialSchemaPerm)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RevokeCredentialSchemaPerm(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_RevokeCredentialSchemaPerm_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RevokeCredentialSchemaPerm(ctx, req.(*MsgRevokeCredentialSchemaPerm))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_TerminateCredentialSchemaPerm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgTerminateCredentialSchemaPerm)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).TerminateCredentialSchemaPerm(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_TerminateCredentialSchemaPerm_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).TerminateCredentialSchemaPerm(ctx, req.(*MsgTerminateCredentialSchemaPerm))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateOrUpdateCSPS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateOrUpdateCSPS)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateOrUpdateCSPS(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CreateOrUpdateCSPS_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateOrUpdateCSPS(ctx, req.(*MsgCreateOrUpdateCSPS))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.cspermission.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "CreateCredentialSchemaPerm",
Handler: _Msg_CreateCredentialSchemaPerm_Handler,
},
{
MethodName: "RevokeCredentialSchemaPerm",
Handler: _Msg_RevokeCredentialSchemaPerm_Handler,
},
{
MethodName: "TerminateCredentialSchemaPerm",
Handler: _Msg_TerminateCredentialSchemaPerm_Handler,
},
{
MethodName: "CreateOrUpdateCSPS",
Handler: _Msg_CreateOrUpdateCSPS_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/cspermission/tx.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package cspermission
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
var (
md_CredentialSchemaPerm protoreflect.MessageDescriptor
fd_CredentialSchemaPerm_id protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_schema_id protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_csp_type protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_did protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_grantee protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_created protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_created_by protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_effective_from protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_effective_until protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_validation_id protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_validation_fees protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_issuance_fees protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_verification_fees protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_deposit protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_revoked protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_revoked_by protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_terminated protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_terminated_by protoreflect.FieldDescriptor
fd_CredentialSchemaPerm_country protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_types_proto_init()
md_CredentialSchemaPerm = File_veranablockchain_cspermission_types_proto.Messages().ByName("CredentialSchemaPerm")
fd_CredentialSchemaPerm_id = md_CredentialSchemaPerm.Fields().ByName("id")
fd_CredentialSchemaPerm_schema_id = md_CredentialSchemaPerm.Fields().ByName("schema_id")
fd_CredentialSchemaPerm_csp_type = md_CredentialSchemaPerm.Fields().ByName("csp_type")
fd_CredentialSchemaPerm_did = md_CredentialSchemaPerm.Fields().ByName("did")
fd_CredentialSchemaPerm_grantee = md_CredentialSchemaPerm.Fields().ByName("grantee")
fd_CredentialSchemaPerm_created = md_CredentialSchemaPerm.Fields().ByName("created")
fd_CredentialSchemaPerm_created_by = md_CredentialSchemaPerm.Fields().ByName("created_by")
fd_CredentialSchemaPerm_effective_from = md_CredentialSchemaPerm.Fields().ByName("effective_from")
fd_CredentialSchemaPerm_effective_until = md_CredentialSchemaPerm.Fields().ByName("effective_until")
fd_CredentialSchemaPerm_validation_id = md_CredentialSchemaPerm.Fields().ByName("validation_id")
fd_CredentialSchemaPerm_validation_fees = md_CredentialSchemaPerm.Fields().ByName("validation_fees")
fd_CredentialSchemaPerm_issuance_fees = md_CredentialSchemaPerm.Fields().ByName("issuance_fees")
fd_CredentialSchemaPerm_verification_fees = md_CredentialSchemaPerm.Fields().ByName("verification_fees")
fd_CredentialSchemaPerm_deposit = md_CredentialSchemaPerm.Fields().ByName("deposit")
fd_CredentialSchemaPerm_revoked = md_CredentialSchemaPerm.Fields().ByName("revoked")
fd_CredentialSchemaPerm_revoked_by = md_CredentialSchemaPerm.Fields().ByName("revoked_by")
fd_CredentialSchemaPerm_terminated = md_CredentialSchemaPerm.Fields().ByName("terminated")
fd_CredentialSchemaPerm_terminated_by = md_CredentialSchemaPerm.Fields().ByName("terminated_by")
fd_CredentialSchemaPerm_country = md_CredentialSchemaPerm.Fields().ByName("country")
}
var _ protoreflect.Message = (*fastReflection_CredentialSchemaPerm)(nil)
type fastReflection_CredentialSchemaPerm CredentialSchemaPerm
func (x *CredentialSchemaPerm) ProtoReflect() protoreflect.Message {
return (*fastReflection_CredentialSchemaPerm)(x)
}
func (x *CredentialSchemaPerm) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_CredentialSchemaPerm_messageType fastReflection_CredentialSchemaPerm_messageType
var _ protoreflect.MessageType = fastReflection_CredentialSchemaPerm_messageType{}
type fastReflection_CredentialSchemaPerm_messageType struct{}
func (x fastReflection_CredentialSchemaPerm_messageType) Zero() protoreflect.Message {
return (*fastReflection_CredentialSchemaPerm)(nil)
}
func (x fastReflection_CredentialSchemaPerm_messageType) New() protoreflect.Message {
return new(fastReflection_CredentialSchemaPerm)
}
func (x fastReflection_CredentialSchemaPerm_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_CredentialSchemaPerm
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_CredentialSchemaPerm) Descriptor() protoreflect.MessageDescriptor {
return md_CredentialSchemaPerm
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_CredentialSchemaPerm) Type() protoreflect.MessageType {
return _fastReflection_CredentialSchemaPerm_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_CredentialSchemaPerm) New() protoreflect.Message {
return new(fastReflection_CredentialSchemaPerm)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_CredentialSchemaPerm) Interface() protoreflect.ProtoMessage {
return (*CredentialSchemaPerm)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_CredentialSchemaPerm) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_CredentialSchemaPerm_id, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_CredentialSchemaPerm_schema_id, value) {
return
}
}
if x.CspType != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.CspType))
if !f(fd_CredentialSchemaPerm_csp_type, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_CredentialSchemaPerm_did, value) {
return
}
}
if x.Grantee != "" {
value := protoreflect.ValueOfString(x.Grantee)
if !f(fd_CredentialSchemaPerm_grantee, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_CredentialSchemaPerm_created, value) {
return
}
}
if x.CreatedBy != "" {
value := protoreflect.ValueOfString(x.CreatedBy)
if !f(fd_CredentialSchemaPerm_created_by, value) {
return
}
}
if x.EffectiveFrom != nil {
value := protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
if !f(fd_CredentialSchemaPerm_effective_from, value) {
return
}
}
if x.EffectiveUntil != nil {
value := protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
if !f(fd_CredentialSchemaPerm_effective_until, value) {
return
}
}
if x.ValidationId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationId)
if !f(fd_CredentialSchemaPerm_validation_id, value) {
return
}
}
if x.ValidationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationFees)
if !f(fd_CredentialSchemaPerm_validation_fees, value) {
return
}
}
if x.IssuanceFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuanceFees)
if !f(fd_CredentialSchemaPerm_issuance_fees, value) {
return
}
}
if x.VerificationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerificationFees)
if !f(fd_CredentialSchemaPerm_verification_fees, value) {
return
}
}
if x.Deposit != int64(0) {
value := protoreflect.ValueOfInt64(x.Deposit)
if !f(fd_CredentialSchemaPerm_deposit, value) {
return
}
}
if x.Revoked != nil {
value := protoreflect.ValueOfMessage(x.Revoked.ProtoReflect())
if !f(fd_CredentialSchemaPerm_revoked, value) {
return
}
}
if x.RevokedBy != "" {
value := protoreflect.ValueOfString(x.RevokedBy)
if !f(fd_CredentialSchemaPerm_revoked_by, value) {
return
}
}
if x.Terminated != nil {
value := protoreflect.ValueOfMessage(x.Terminated.ProtoReflect())
if !f(fd_CredentialSchemaPerm_terminated, value) {
return
}
}
if x.TerminatedBy != "" {
value := protoreflect.ValueOfString(x.TerminatedBy)
if !f(fd_CredentialSchemaPerm_terminated_by, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_CredentialSchemaPerm_country, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_CredentialSchemaPerm) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPerm.id":
return x.Id != uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.csp_type":
return x.CspType != 0
case "veranablockchain.cspermission.CredentialSchemaPerm.did":
return x.Did != ""
case "veranablockchain.cspermission.CredentialSchemaPerm.grantee":
return x.Grantee != ""
case "veranablockchain.cspermission.CredentialSchemaPerm.created":
return x.Created != nil
case "veranablockchain.cspermission.CredentialSchemaPerm.created_by":
return x.CreatedBy != ""
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_from":
return x.EffectiveFrom != nil
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_until":
return x.EffectiveUntil != nil
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_id":
return x.ValidationId != uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_fees":
return x.ValidationFees != uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.issuance_fees":
return x.IssuanceFees != uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.verification_fees":
return x.VerificationFees != uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.deposit":
return x.Deposit != int64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked":
return x.Revoked != nil
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked_by":
return x.RevokedBy != ""
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated":
return x.Terminated != nil
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated_by":
return x.TerminatedBy != ""
case "veranablockchain.cspermission.CredentialSchemaPerm.country":
return x.Country != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPerm) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPerm.id":
x.Id = uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.csp_type":
x.CspType = 0
case "veranablockchain.cspermission.CredentialSchemaPerm.did":
x.Did = ""
case "veranablockchain.cspermission.CredentialSchemaPerm.grantee":
x.Grantee = ""
case "veranablockchain.cspermission.CredentialSchemaPerm.created":
x.Created = nil
case "veranablockchain.cspermission.CredentialSchemaPerm.created_by":
x.CreatedBy = ""
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_from":
x.EffectiveFrom = nil
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_until":
x.EffectiveUntil = nil
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_id":
x.ValidationId = uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_fees":
x.ValidationFees = uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.issuance_fees":
x.IssuanceFees = uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.verification_fees":
x.VerificationFees = uint64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.deposit":
x.Deposit = int64(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked":
x.Revoked = nil
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked_by":
x.RevokedBy = ""
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated":
x.Terminated = nil
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated_by":
x.TerminatedBy = ""
case "veranablockchain.cspermission.CredentialSchemaPerm.country":
x.Country = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_CredentialSchemaPerm) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPerm.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.csp_type":
value := x.CspType
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
case "veranablockchain.cspermission.CredentialSchemaPerm.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.grantee":
value := x.Grantee
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.created_by":
value := x.CreatedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_from":
value := x.EffectiveFrom
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_until":
value := x.EffectiveUntil
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_id":
value := x.ValidationId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_fees":
value := x.ValidationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.issuance_fees":
value := x.IssuanceFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.verification_fees":
value := x.VerificationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.deposit":
value := x.Deposit
return protoreflect.ValueOfInt64(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked":
value := x.Revoked
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked_by":
value := x.RevokedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated":
value := x.Terminated
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated_by":
value := x.TerminatedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPerm.country":
value := x.Country
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPerm does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPerm) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPerm.id":
x.Id = value.Uint()
case "veranablockchain.cspermission.CredentialSchemaPerm.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.cspermission.CredentialSchemaPerm.csp_type":
x.CspType = (CredentialSchemaPermType)(value.Enum())
case "veranablockchain.cspermission.CredentialSchemaPerm.did":
x.Did = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPerm.grantee":
x.Grantee = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPerm.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.CredentialSchemaPerm.created_by":
x.CreatedBy = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_from":
x.EffectiveFrom = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_until":
x.EffectiveUntil = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_id":
x.ValidationId = value.Uint()
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_fees":
x.ValidationFees = value.Uint()
case "veranablockchain.cspermission.CredentialSchemaPerm.issuance_fees":
x.IssuanceFees = value.Uint()
case "veranablockchain.cspermission.CredentialSchemaPerm.verification_fees":
x.VerificationFees = value.Uint()
case "veranablockchain.cspermission.CredentialSchemaPerm.deposit":
x.Deposit = value.Int()
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked":
x.Revoked = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked_by":
x.RevokedBy = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated":
x.Terminated = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated_by":
x.TerminatedBy = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPerm.country":
x.Country = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPerm) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPerm.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_from":
if x.EffectiveFrom == nil {
x.EffectiveFrom = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_until":
if x.EffectiveUntil == nil {
x.EffectiveUntil = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked":
if x.Revoked == nil {
x.Revoked = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Revoked.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated":
if x.Terminated == nil {
x.Terminated = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Terminated.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.csp_type":
panic(fmt.Errorf("field csp_type of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.did":
panic(fmt.Errorf("field did of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.grantee":
panic(fmt.Errorf("field grantee of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.created_by":
panic(fmt.Errorf("field created_by of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_id":
panic(fmt.Errorf("field validation_id of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_fees":
panic(fmt.Errorf("field validation_fees of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.issuance_fees":
panic(fmt.Errorf("field issuance_fees of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.verification_fees":
panic(fmt.Errorf("field verification_fees of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.deposit":
panic(fmt.Errorf("field deposit of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked_by":
panic(fmt.Errorf("field revoked_by of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated_by":
panic(fmt.Errorf("field terminated_by of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPerm.country":
panic(fmt.Errorf("field country of message veranablockchain.cspermission.CredentialSchemaPerm is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_CredentialSchemaPerm) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPerm.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.csp_type":
return protoreflect.ValueOfEnum(0)
case "veranablockchain.cspermission.CredentialSchemaPerm.did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPerm.grantee":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPerm.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.created_by":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_from":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.effective_until":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.validation_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.issuance_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.verification_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.deposit":
return protoreflect.ValueOfInt64(int64(0))
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.revoked_by":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.cspermission.CredentialSchemaPerm.terminated_by":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPerm.country":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPerm"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPerm does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_CredentialSchemaPerm) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.CredentialSchemaPerm", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_CredentialSchemaPerm) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPerm) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_CredentialSchemaPerm) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_CredentialSchemaPerm) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*CredentialSchemaPerm)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
if x.CspType != 0 {
n += 1 + runtime.Sov(uint64(x.CspType))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Grantee)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.CreatedBy)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveFrom != nil {
l = options.Size(x.EffectiveFrom)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveUntil != nil {
l = options.Size(x.EffectiveUntil)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ValidationId != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationId))
}
if x.ValidationFees != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationFees))
}
if x.IssuanceFees != 0 {
n += 1 + runtime.Sov(uint64(x.IssuanceFees))
}
if x.VerificationFees != 0 {
n += 1 + runtime.Sov(uint64(x.VerificationFees))
}
if x.Deposit != 0 {
n += 1 + runtime.Sov(uint64(x.Deposit))
}
if x.Revoked != nil {
l = options.Size(x.Revoked)
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.RevokedBy)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
if x.Terminated != nil {
l = options.Size(x.Terminated)
n += 2 + l + runtime.Sov(uint64(l))
}
l = len(x.TerminatedBy)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
l = len(x.Country)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*CredentialSchemaPerm)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x9a
}
if len(x.TerminatedBy) > 0 {
i -= len(x.TerminatedBy)
copy(dAtA[i:], x.TerminatedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TerminatedBy)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x92
}
if x.Terminated != nil {
encoded, err := options.Marshal(x.Terminated)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x8a
}
if len(x.RevokedBy) > 0 {
i -= len(x.RevokedBy)
copy(dAtA[i:], x.RevokedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RevokedBy)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x82
}
if x.Revoked != nil {
encoded, err := options.Marshal(x.Revoked)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x7a
}
if x.Deposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Deposit))
i--
dAtA[i] = 0x70
}
if x.VerificationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerificationFees))
i--
dAtA[i] = 0x68
}
if x.IssuanceFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuanceFees))
i--
dAtA[i] = 0x60
}
if x.ValidationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationFees))
i--
dAtA[i] = 0x58
}
if x.ValidationId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationId))
i--
dAtA[i] = 0x50
}
if x.EffectiveUntil != nil {
encoded, err := options.Marshal(x.EffectiveUntil)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x4a
}
if x.EffectiveFrom != nil {
encoded, err := options.Marshal(x.EffectiveFrom)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x42
}
if len(x.CreatedBy) > 0 {
i -= len(x.CreatedBy)
copy(dAtA[i:], x.CreatedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CreatedBy)))
i--
dAtA[i] = 0x3a
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if len(x.Grantee) > 0 {
i -= len(x.Grantee)
copy(dAtA[i:], x.Grantee)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee)))
i--
dAtA[i] = 0x2a
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x22
}
if x.CspType != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.CspType))
i--
dAtA[i] = 0x18
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x10
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*CredentialSchemaPerm)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CredentialSchemaPerm: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CredentialSchemaPerm: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CspType", wireType)
}
x.CspType = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.CspType |= CredentialSchemaPermType(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Grantee = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.CreatedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveFrom", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveFrom == nil {
x.EffectiveFrom = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveFrom); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 9:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveUntil == nil {
x.EffectiveUntil = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveUntil); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 10:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationId", wireType)
}
x.ValidationId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 11:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
x.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 12:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
x.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 13:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
x.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 14:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
x.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 15:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Revoked", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Revoked == nil {
x.Revoked = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Revoked); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 16:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RevokedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.RevokedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 17:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Terminated", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Terminated == nil {
x.Terminated = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Terminated); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 18:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TerminatedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TerminatedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 19:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_SessionAuthz protoreflect.MessageDescriptor
fd_SessionAuthz_executor_perm_id protoreflect.FieldDescriptor
fd_SessionAuthz_beneficiary_perm_id protoreflect.FieldDescriptor
fd_SessionAuthz_wallet_user_agent_did protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_types_proto_init()
md_SessionAuthz = File_veranablockchain_cspermission_types_proto.Messages().ByName("SessionAuthz")
fd_SessionAuthz_executor_perm_id = md_SessionAuthz.Fields().ByName("executor_perm_id")
fd_SessionAuthz_beneficiary_perm_id = md_SessionAuthz.Fields().ByName("beneficiary_perm_id")
fd_SessionAuthz_wallet_user_agent_did = md_SessionAuthz.Fields().ByName("wallet_user_agent_did")
}
var _ protoreflect.Message = (*fastReflection_SessionAuthz)(nil)
type fastReflection_SessionAuthz SessionAuthz
func (x *SessionAuthz) ProtoReflect() protoreflect.Message {
return (*fastReflection_SessionAuthz)(x)
}
func (x *SessionAuthz) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_SessionAuthz_messageType fastReflection_SessionAuthz_messageType
var _ protoreflect.MessageType = fastReflection_SessionAuthz_messageType{}
type fastReflection_SessionAuthz_messageType struct{}
func (x fastReflection_SessionAuthz_messageType) Zero() protoreflect.Message {
return (*fastReflection_SessionAuthz)(nil)
}
func (x fastReflection_SessionAuthz_messageType) New() protoreflect.Message {
return new(fastReflection_SessionAuthz)
}
func (x fastReflection_SessionAuthz_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_SessionAuthz
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_SessionAuthz) Descriptor() protoreflect.MessageDescriptor {
return md_SessionAuthz
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_SessionAuthz) Type() protoreflect.MessageType {
return _fastReflection_SessionAuthz_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_SessionAuthz) New() protoreflect.Message {
return new(fastReflection_SessionAuthz)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_SessionAuthz) Interface() protoreflect.ProtoMessage {
return (*SessionAuthz)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_SessionAuthz) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ExecutorPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ExecutorPermId)
if !f(fd_SessionAuthz_executor_perm_id, value) {
return
}
}
if x.BeneficiaryPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.BeneficiaryPermId)
if !f(fd_SessionAuthz_beneficiary_perm_id, value) {
return
}
}
if x.WalletUserAgentDid != "" {
value := protoreflect.ValueOfString(x.WalletUserAgentDid)
if !f(fd_SessionAuthz_wallet_user_agent_did, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_SessionAuthz) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.SessionAuthz.executor_perm_id":
return x.ExecutorPermId != uint64(0)
case "veranablockchain.cspermission.SessionAuthz.beneficiary_perm_id":
return x.BeneficiaryPermId != uint64(0)
case "veranablockchain.cspermission.SessionAuthz.wallet_user_agent_did":
return x.WalletUserAgentDid != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.SessionAuthz.executor_perm_id":
x.ExecutorPermId = uint64(0)
case "veranablockchain.cspermission.SessionAuthz.beneficiary_perm_id":
x.BeneficiaryPermId = uint64(0)
case "veranablockchain.cspermission.SessionAuthz.wallet_user_agent_did":
x.WalletUserAgentDid = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_SessionAuthz) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.SessionAuthz.executor_perm_id":
value := x.ExecutorPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.SessionAuthz.beneficiary_perm_id":
value := x.BeneficiaryPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.cspermission.SessionAuthz.wallet_user_agent_did":
value := x.WalletUserAgentDid
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.SessionAuthz does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.SessionAuthz.executor_perm_id":
x.ExecutorPermId = value.Uint()
case "veranablockchain.cspermission.SessionAuthz.beneficiary_perm_id":
x.BeneficiaryPermId = value.Uint()
case "veranablockchain.cspermission.SessionAuthz.wallet_user_agent_did":
x.WalletUserAgentDid = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.SessionAuthz.executor_perm_id":
panic(fmt.Errorf("field executor_perm_id of message veranablockchain.cspermission.SessionAuthz is not mutable"))
case "veranablockchain.cspermission.SessionAuthz.beneficiary_perm_id":
panic(fmt.Errorf("field beneficiary_perm_id of message veranablockchain.cspermission.SessionAuthz is not mutable"))
case "veranablockchain.cspermission.SessionAuthz.wallet_user_agent_did":
panic(fmt.Errorf("field wallet_user_agent_did of message veranablockchain.cspermission.SessionAuthz is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_SessionAuthz) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.SessionAuthz.executor_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.SessionAuthz.beneficiary_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.cspermission.SessionAuthz.wallet_user_agent_did":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_SessionAuthz) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.SessionAuthz", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_SessionAuthz) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_SessionAuthz) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_SessionAuthz) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*SessionAuthz)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.ExecutorPermId != 0 {
n += 1 + runtime.Sov(uint64(x.ExecutorPermId))
}
if x.BeneficiaryPermId != 0 {
n += 1 + runtime.Sov(uint64(x.BeneficiaryPermId))
}
l = len(x.WalletUserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*SessionAuthz)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.WalletUserAgentDid) > 0 {
i -= len(x.WalletUserAgentDid)
copy(dAtA[i:], x.WalletUserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletUserAgentDid)))
i--
dAtA[i] = 0x1a
}
if x.BeneficiaryPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.BeneficiaryPermId))
i--
dAtA[i] = 0x10
}
if x.ExecutorPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ExecutorPermId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*SessionAuthz)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SessionAuthz: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SessionAuthz: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExecutorPermId", wireType)
}
x.ExecutorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ExecutorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryPermId", wireType)
}
x.BeneficiaryPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.BeneficiaryPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletUserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.WalletUserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_CredentialSchemaPermSession_4_list)(nil)
type _CredentialSchemaPermSession_4_list struct {
list *[]*SessionAuthz
}
func (x *_CredentialSchemaPermSession_4_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_CredentialSchemaPermSession_4_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_CredentialSchemaPermSession_4_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*SessionAuthz)
(*x.list)[i] = concreteValue
}
func (x *_CredentialSchemaPermSession_4_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*SessionAuthz)
*x.list = append(*x.list, concreteValue)
}
func (x *_CredentialSchemaPermSession_4_list) AppendMutable() protoreflect.Value {
v := new(SessionAuthz)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_CredentialSchemaPermSession_4_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_CredentialSchemaPermSession_4_list) NewElement() protoreflect.Value {
v := new(SessionAuthz)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_CredentialSchemaPermSession_4_list) IsValid() bool {
return x.list != nil
}
var (
md_CredentialSchemaPermSession protoreflect.MessageDescriptor
fd_CredentialSchemaPermSession_id protoreflect.FieldDescriptor
fd_CredentialSchemaPermSession_controller protoreflect.FieldDescriptor
fd_CredentialSchemaPermSession_user_agent_did protoreflect.FieldDescriptor
fd_CredentialSchemaPermSession_session_authz protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_cspermission_types_proto_init()
md_CredentialSchemaPermSession = File_veranablockchain_cspermission_types_proto.Messages().ByName("CredentialSchemaPermSession")
fd_CredentialSchemaPermSession_id = md_CredentialSchemaPermSession.Fields().ByName("id")
fd_CredentialSchemaPermSession_controller = md_CredentialSchemaPermSession.Fields().ByName("controller")
fd_CredentialSchemaPermSession_user_agent_did = md_CredentialSchemaPermSession.Fields().ByName("user_agent_did")
fd_CredentialSchemaPermSession_session_authz = md_CredentialSchemaPermSession.Fields().ByName("session_authz")
}
var _ protoreflect.Message = (*fastReflection_CredentialSchemaPermSession)(nil)
type fastReflection_CredentialSchemaPermSession CredentialSchemaPermSession
func (x *CredentialSchemaPermSession) ProtoReflect() protoreflect.Message {
return (*fastReflection_CredentialSchemaPermSession)(x)
}
func (x *CredentialSchemaPermSession) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_cspermission_types_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_CredentialSchemaPermSession_messageType fastReflection_CredentialSchemaPermSession_messageType
var _ protoreflect.MessageType = fastReflection_CredentialSchemaPermSession_messageType{}
type fastReflection_CredentialSchemaPermSession_messageType struct{}
func (x fastReflection_CredentialSchemaPermSession_messageType) Zero() protoreflect.Message {
return (*fastReflection_CredentialSchemaPermSession)(nil)
}
func (x fastReflection_CredentialSchemaPermSession_messageType) New() protoreflect.Message {
return new(fastReflection_CredentialSchemaPermSession)
}
func (x fastReflection_CredentialSchemaPermSession_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_CredentialSchemaPermSession
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_CredentialSchemaPermSession) Descriptor() protoreflect.MessageDescriptor {
return md_CredentialSchemaPermSession
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_CredentialSchemaPermSession) Type() protoreflect.MessageType {
return _fastReflection_CredentialSchemaPermSession_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_CredentialSchemaPermSession) New() protoreflect.Message {
return new(fastReflection_CredentialSchemaPermSession)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_CredentialSchemaPermSession) Interface() protoreflect.ProtoMessage {
return (*CredentialSchemaPermSession)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_CredentialSchemaPermSession) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_CredentialSchemaPermSession_id, value) {
return
}
}
if x.Controller != "" {
value := protoreflect.ValueOfString(x.Controller)
if !f(fd_CredentialSchemaPermSession_controller, value) {
return
}
}
if x.UserAgentDid != "" {
value := protoreflect.ValueOfString(x.UserAgentDid)
if !f(fd_CredentialSchemaPermSession_user_agent_did, value) {
return
}
}
if len(x.SessionAuthz) != 0 {
value := protoreflect.ValueOfList(&_CredentialSchemaPermSession_4_list{list: &x.SessionAuthz})
if !f(fd_CredentialSchemaPermSession_session_authz, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_CredentialSchemaPermSession) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPermSession.id":
return x.Id != ""
case "veranablockchain.cspermission.CredentialSchemaPermSession.controller":
return x.Controller != ""
case "veranablockchain.cspermission.CredentialSchemaPermSession.user_agent_did":
return x.UserAgentDid != ""
case "veranablockchain.cspermission.CredentialSchemaPermSession.session_authz":
return len(x.SessionAuthz) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPermSession"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPermSession does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPermSession) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPermSession.id":
x.Id = ""
case "veranablockchain.cspermission.CredentialSchemaPermSession.controller":
x.Controller = ""
case "veranablockchain.cspermission.CredentialSchemaPermSession.user_agent_did":
x.UserAgentDid = ""
case "veranablockchain.cspermission.CredentialSchemaPermSession.session_authz":
x.SessionAuthz = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPermSession"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPermSession does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_CredentialSchemaPermSession) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPermSession.id":
value := x.Id
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPermSession.controller":
value := x.Controller
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPermSession.user_agent_did":
value := x.UserAgentDid
return protoreflect.ValueOfString(value)
case "veranablockchain.cspermission.CredentialSchemaPermSession.session_authz":
if len(x.SessionAuthz) == 0 {
return protoreflect.ValueOfList(&_CredentialSchemaPermSession_4_list{})
}
listValue := &_CredentialSchemaPermSession_4_list{list: &x.SessionAuthz}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPermSession"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPermSession does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPermSession) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPermSession.id":
x.Id = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPermSession.controller":
x.Controller = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPermSession.user_agent_did":
x.UserAgentDid = value.Interface().(string)
case "veranablockchain.cspermission.CredentialSchemaPermSession.session_authz":
lv := value.List()
clv := lv.(*_CredentialSchemaPermSession_4_list)
x.SessionAuthz = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPermSession"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPermSession does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPermSession) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPermSession.session_authz":
if x.SessionAuthz == nil {
x.SessionAuthz = []*SessionAuthz{}
}
value := &_CredentialSchemaPermSession_4_list{list: &x.SessionAuthz}
return protoreflect.ValueOfList(value)
case "veranablockchain.cspermission.CredentialSchemaPermSession.id":
panic(fmt.Errorf("field id of message veranablockchain.cspermission.CredentialSchemaPermSession is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPermSession.controller":
panic(fmt.Errorf("field controller of message veranablockchain.cspermission.CredentialSchemaPermSession is not mutable"))
case "veranablockchain.cspermission.CredentialSchemaPermSession.user_agent_did":
panic(fmt.Errorf("field user_agent_did of message veranablockchain.cspermission.CredentialSchemaPermSession is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPermSession"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPermSession does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_CredentialSchemaPermSession) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.cspermission.CredentialSchemaPermSession.id":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPermSession.controller":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPermSession.user_agent_did":
return protoreflect.ValueOfString("")
case "veranablockchain.cspermission.CredentialSchemaPermSession.session_authz":
list := []*SessionAuthz{}
return protoreflect.ValueOfList(&_CredentialSchemaPermSession_4_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.cspermission.CredentialSchemaPermSession"))
}
panic(fmt.Errorf("message veranablockchain.cspermission.CredentialSchemaPermSession does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_CredentialSchemaPermSession) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.cspermission.CredentialSchemaPermSession", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_CredentialSchemaPermSession) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_CredentialSchemaPermSession) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_CredentialSchemaPermSession) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_CredentialSchemaPermSession) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*CredentialSchemaPermSession)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Controller)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.UserAgentDid)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.SessionAuthz) > 0 {
for _, e := range x.SessionAuthz {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*CredentialSchemaPermSession)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.SessionAuthz) > 0 {
for iNdEx := len(x.SessionAuthz) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.SessionAuthz[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
}
if len(x.UserAgentDid) > 0 {
i -= len(x.UserAgentDid)
copy(dAtA[i:], x.UserAgentDid)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UserAgentDid)))
i--
dAtA[i] = 0x1a
}
if len(x.Controller) > 0 {
i -= len(x.Controller)
copy(dAtA[i:], x.Controller)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
i--
dAtA[i] = 0x12
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*CredentialSchemaPermSession)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CredentialSchemaPermSession: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: CredentialSchemaPermSession: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UserAgentDid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.UserAgentDid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SessionAuthz", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.SessionAuthz = append(x.SessionAuthz, &SessionAuthz{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SessionAuthz[len(x.SessionAuthz)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/cspermission/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type CredentialSchemaPermType int32
const (
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_UNSPECIFIED CredentialSchemaPermType = 0
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_ISSUER CredentialSchemaPermType = 1
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_VERIFIER CredentialSchemaPermType = 2
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_ISSUER_GRANTOR CredentialSchemaPermType = 3
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_VERIFIER_GRANTOR CredentialSchemaPermType = 4
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_TRUST_REGISTRY CredentialSchemaPermType = 5
CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_HOLDER CredentialSchemaPermType = 6
)
// Enum value maps for CredentialSchemaPermType.
var (
CredentialSchemaPermType_name = map[int32]string{
0: "CREDENTIAL_SCHEMA_PERM_TYPE_UNSPECIFIED",
1: "CREDENTIAL_SCHEMA_PERM_TYPE_ISSUER",
2: "CREDENTIAL_SCHEMA_PERM_TYPE_VERIFIER",
3: "CREDENTIAL_SCHEMA_PERM_TYPE_ISSUER_GRANTOR",
4: "CREDENTIAL_SCHEMA_PERM_TYPE_VERIFIER_GRANTOR",
5: "CREDENTIAL_SCHEMA_PERM_TYPE_TRUST_REGISTRY",
6: "CREDENTIAL_SCHEMA_PERM_TYPE_HOLDER",
}
CredentialSchemaPermType_value = map[string]int32{
"CREDENTIAL_SCHEMA_PERM_TYPE_UNSPECIFIED": 0,
"CREDENTIAL_SCHEMA_PERM_TYPE_ISSUER": 1,
"CREDENTIAL_SCHEMA_PERM_TYPE_VERIFIER": 2,
"CREDENTIAL_SCHEMA_PERM_TYPE_ISSUER_GRANTOR": 3,
"CREDENTIAL_SCHEMA_PERM_TYPE_VERIFIER_GRANTOR": 4,
"CREDENTIAL_SCHEMA_PERM_TYPE_TRUST_REGISTRY": 5,
"CREDENTIAL_SCHEMA_PERM_TYPE_HOLDER": 6,
}
)
func (x CredentialSchemaPermType) Enum() *CredentialSchemaPermType {
p := new(CredentialSchemaPermType)
*p = x
return p
}
func (x CredentialSchemaPermType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CredentialSchemaPermType) Descriptor() protoreflect.EnumDescriptor {
return file_veranablockchain_cspermission_types_proto_enumTypes[0].Descriptor()
}
func (CredentialSchemaPermType) Type() protoreflect.EnumType {
return &file_veranablockchain_cspermission_types_proto_enumTypes[0]
}
func (x CredentialSchemaPermType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CredentialSchemaPermType.Descriptor instead.
func (CredentialSchemaPermType) EnumDescriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_types_proto_rawDescGZIP(), []int{0}
}
type CredentialSchemaPerm struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
SchemaId uint64 `protobuf:"varint,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
CspType CredentialSchemaPermType `protobuf:"varint,3,opt,name=csp_type,json=cspType,proto3,enum=veranablockchain.cspermission.CredentialSchemaPermType" json:"csp_type,omitempty"`
Did string `protobuf:"bytes,4,opt,name=did,proto3" json:"did,omitempty"`
Grantee string `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"`
// Required fields are non-nullable
Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
EffectiveFrom *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=effective_from,json=effectiveFrom,proto3" json:"effective_from,omitempty"`
// Optional fields are nullable
EffectiveUntil *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=effective_until,json=effectiveUntil,proto3" json:"effective_until,omitempty"`
ValidationId uint64 `protobuf:"varint,10,opt,name=validation_id,json=validationId,proto3" json:"validation_id,omitempty"`
ValidationFees uint64 `protobuf:"varint,11,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,12,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,13,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
Deposit int64 `protobuf:"varint,14,opt,name=deposit,proto3" json:"deposit,omitempty"`
// Optional state fields are nullable
Revoked *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=revoked,proto3" json:"revoked,omitempty"`
RevokedBy string `protobuf:"bytes,16,opt,name=revoked_by,json=revokedBy,proto3" json:"revoked_by,omitempty"`
Terminated *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=terminated,proto3" json:"terminated,omitempty"`
TerminatedBy string `protobuf:"bytes,18,opt,name=terminated_by,json=terminatedBy,proto3" json:"terminated_by,omitempty"`
Country string `protobuf:"bytes,19,opt,name=country,proto3" json:"country,omitempty"`
}
func (x *CredentialSchemaPerm) Reset() {
*x = CredentialSchemaPerm{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CredentialSchemaPerm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CredentialSchemaPerm) ProtoMessage() {}
// Deprecated: Use CredentialSchemaPerm.ProtoReflect.Descriptor instead.
func (*CredentialSchemaPerm) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_types_proto_rawDescGZIP(), []int{0}
}
func (x *CredentialSchemaPerm) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *CredentialSchemaPerm) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *CredentialSchemaPerm) GetCspType() CredentialSchemaPermType {
if x != nil {
return x.CspType
}
return CredentialSchemaPermType_CREDENTIAL_SCHEMA_PERM_TYPE_UNSPECIFIED
}
func (x *CredentialSchemaPerm) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *CredentialSchemaPerm) GetGrantee() string {
if x != nil {
return x.Grantee
}
return ""
}
func (x *CredentialSchemaPerm) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *CredentialSchemaPerm) GetCreatedBy() string {
if x != nil {
return x.CreatedBy
}
return ""
}
func (x *CredentialSchemaPerm) GetEffectiveFrom() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveFrom
}
return nil
}
func (x *CredentialSchemaPerm) GetEffectiveUntil() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveUntil
}
return nil
}
func (x *CredentialSchemaPerm) GetValidationId() uint64 {
if x != nil {
return x.ValidationId
}
return 0
}
func (x *CredentialSchemaPerm) GetValidationFees() uint64 {
if x != nil {
return x.ValidationFees
}
return 0
}
func (x *CredentialSchemaPerm) GetIssuanceFees() uint64 {
if x != nil {
return x.IssuanceFees
}
return 0
}
func (x *CredentialSchemaPerm) GetVerificationFees() uint64 {
if x != nil {
return x.VerificationFees
}
return 0
}
func (x *CredentialSchemaPerm) GetDeposit() int64 {
if x != nil {
return x.Deposit
}
return 0
}
func (x *CredentialSchemaPerm) GetRevoked() *timestamppb.Timestamp {
if x != nil {
return x.Revoked
}
return nil
}
func (x *CredentialSchemaPerm) GetRevokedBy() string {
if x != nil {
return x.RevokedBy
}
return ""
}
func (x *CredentialSchemaPerm) GetTerminated() *timestamppb.Timestamp {
if x != nil {
return x.Terminated
}
return nil
}
func (x *CredentialSchemaPerm) GetTerminatedBy() string {
if x != nil {
return x.TerminatedBy
}
return ""
}
func (x *CredentialSchemaPerm) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
// SessionAuthz represents a permission triple in the session
type SessionAuthz struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ExecutorPermId uint64 `protobuf:"varint,1,opt,name=executor_perm_id,json=executorPermId,proto3" json:"executor_perm_id,omitempty"`
BeneficiaryPermId uint64 `protobuf:"varint,2,opt,name=beneficiary_perm_id,json=beneficiaryPermId,proto3" json:"beneficiary_perm_id,omitempty"`
WalletUserAgentDid string `protobuf:"bytes,3,opt,name=wallet_user_agent_did,json=walletUserAgentDid,proto3" json:"wallet_user_agent_did,omitempty"`
}
func (x *SessionAuthz) Reset() {
*x = SessionAuthz{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SessionAuthz) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionAuthz) ProtoMessage() {}
// Deprecated: Use SessionAuthz.ProtoReflect.Descriptor instead.
func (*SessionAuthz) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_types_proto_rawDescGZIP(), []int{1}
}
func (x *SessionAuthz) GetExecutorPermId() uint64 {
if x != nil {
return x.ExecutorPermId
}
return 0
}
func (x *SessionAuthz) GetBeneficiaryPermId() uint64 {
if x != nil {
return x.BeneficiaryPermId
}
return 0
}
func (x *SessionAuthz) GetWalletUserAgentDid() string {
if x != nil {
return x.WalletUserAgentDid
}
return ""
}
// CredentialSchemaPermSession represents a session for credential schema permissions
type CredentialSchemaPermSession struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"`
UserAgentDid string `protobuf:"bytes,3,opt,name=user_agent_did,json=userAgentDid,proto3" json:"user_agent_did,omitempty"`
SessionAuthz []*SessionAuthz `protobuf:"bytes,4,rep,name=session_authz,json=sessionAuthz,proto3" json:"session_authz,omitempty"`
}
func (x *CredentialSchemaPermSession) Reset() {
*x = CredentialSchemaPermSession{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_cspermission_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CredentialSchemaPermSession) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CredentialSchemaPermSession) ProtoMessage() {}
// Deprecated: Use CredentialSchemaPermSession.ProtoReflect.Descriptor instead.
func (*CredentialSchemaPermSession) Descriptor() ([]byte, []int) {
return file_veranablockchain_cspermission_types_proto_rawDescGZIP(), []int{2}
}
func (x *CredentialSchemaPermSession) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *CredentialSchemaPermSession) GetController() string {
if x != nil {
return x.Controller
}
return ""
}
func (x *CredentialSchemaPermSession) GetUserAgentDid() string {
if x != nil {
return x.UserAgentDid
}
return ""
}
func (x *CredentialSchemaPermSession) GetSessionAuthz() []*SessionAuthz {
if x != nil {
return x.SessionAuthz
}
return nil
}
var File_veranablockchain_cspermission_types_proto protoreflect.FileDescriptor
var file_veranablockchain_cspermission_types_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67,
0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xd8, 0x07, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65,
0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x63, 0x68,
0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x08, 0x63, 0x73, 0x70, 0x5f, 0x74, 0x79, 0x70,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65,
0x52, 0x07, 0x63, 0x73, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x67,
0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4,
0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12,
0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde,
0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12,
0x37, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x4b, 0x0a, 0x0e, 0x65, 0x66, 0x66, 0x65,
0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde,
0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76,
0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69,
0x76, 0x65, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01,
0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55,
0x6e, 0x74, 0x69, 0x6c, 0x12, 0x29, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x01, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65,
0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x73, 0x75,
0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x04, 0x52,
0x0c, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x65, 0x65, 0x73, 0x12, 0x2b, 0x0a,
0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65,
0x65, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x18,
0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x72, 0x65, 0x76,
0x6f, 0x6b, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f,
0x62, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1c, 0xc8, 0xde, 0x1f, 0x01, 0xd2, 0xb4,
0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x42,
0x79, 0x12, 0x44, 0x0a, 0x0a, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x18,
0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a, 0x74, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x12, 0x41, 0x0a, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69,
0x6e, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1c,
0xc8, 0xde, 0x1f, 0x01, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x74, 0x65,
0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1e, 0x0a, 0x07, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x0c, 0x53,
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x12, 0x28, 0x0a, 0x10, 0x65,
0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50,
0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63,
0x69, 0x61, 0x72, 0x79, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x04, 0x52, 0x11, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x50,
0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x31, 0x0a, 0x15, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x64, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72,
0x41, 0x67, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x22, 0xdf, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65,
0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x65, 0x72,
0x6d, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74,
0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4,
0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
0x65, 0x72, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74,
0x5f, 0x64, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72,
0x41, 0x67, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x64, 0x12, 0x50, 0x0a, 0x0d, 0x73, 0x65, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x2b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x52, 0x0c, 0x73, 0x65,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x2a, 0xd3, 0x02, 0x0a, 0x18, 0x43,
0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50,
0x65, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x27, 0x43, 0x52, 0x45, 0x44, 0x45,
0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x50, 0x45, 0x52,
0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
0x45, 0x44, 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49,
0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x5f, 0x54,
0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x52, 0x10, 0x01, 0x12, 0x28, 0x0a, 0x24,
0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d,
0x41, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x49,
0x46, 0x49, 0x45, 0x52, 0x10, 0x02, 0x12, 0x2e, 0x0a, 0x2a, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e,
0x54, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x4d,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x52, 0x5f, 0x47, 0x52, 0x41,
0x4e, 0x54, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x30, 0x0a, 0x2c, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e,
0x54, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x50, 0x45, 0x52, 0x4d,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, 0x52, 0x5f, 0x47,
0x52, 0x41, 0x4e, 0x54, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x2e, 0x0a, 0x2a, 0x43, 0x52, 0x45, 0x44,
0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x50, 0x45,
0x52, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x55, 0x53, 0x54, 0x5f, 0x52, 0x45,
0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x10, 0x05, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x52, 0x45, 0x44,
0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x50, 0x45,
0x52, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x10, 0x06,
0x42, 0x90, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x63, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0xa2, 0x02, 0x03, 0x56, 0x43, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x43, 0x73, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_cspermission_types_proto_rawDescOnce sync.Once
file_veranablockchain_cspermission_types_proto_rawDescData = file_veranablockchain_cspermission_types_proto_rawDesc
)
func file_veranablockchain_cspermission_types_proto_rawDescGZIP() []byte {
file_veranablockchain_cspermission_types_proto_rawDescOnce.Do(func() {
file_veranablockchain_cspermission_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_cspermission_types_proto_rawDescData)
})
return file_veranablockchain_cspermission_types_proto_rawDescData
}
var file_veranablockchain_cspermission_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_veranablockchain_cspermission_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_veranablockchain_cspermission_types_proto_goTypes = []interface{}{
(CredentialSchemaPermType)(0), // 0: veranablockchain.cspermission.CredentialSchemaPermType
(*CredentialSchemaPerm)(nil), // 1: veranablockchain.cspermission.CredentialSchemaPerm
(*SessionAuthz)(nil), // 2: veranablockchain.cspermission.SessionAuthz
(*CredentialSchemaPermSession)(nil), // 3: veranablockchain.cspermission.CredentialSchemaPermSession
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_veranablockchain_cspermission_types_proto_depIdxs = []int32{
0, // 0: veranablockchain.cspermission.CredentialSchemaPerm.csp_type:type_name -> veranablockchain.cspermission.CredentialSchemaPermType
4, // 1: veranablockchain.cspermission.CredentialSchemaPerm.created:type_name -> google.protobuf.Timestamp
4, // 2: veranablockchain.cspermission.CredentialSchemaPerm.effective_from:type_name -> google.protobuf.Timestamp
4, // 3: veranablockchain.cspermission.CredentialSchemaPerm.effective_until:type_name -> google.protobuf.Timestamp
4, // 4: veranablockchain.cspermission.CredentialSchemaPerm.revoked:type_name -> google.protobuf.Timestamp
4, // 5: veranablockchain.cspermission.CredentialSchemaPerm.terminated:type_name -> google.protobuf.Timestamp
2, // 6: veranablockchain.cspermission.CredentialSchemaPermSession.session_authz:type_name -> veranablockchain.cspermission.SessionAuthz
7, // [7:7] is the sub-list for method output_type
7, // [7:7] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_veranablockchain_cspermission_types_proto_init() }
func file_veranablockchain_cspermission_types_proto_init() {
if File_veranablockchain_cspermission_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_cspermission_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CredentialSchemaPerm); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SessionAuthz); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_cspermission_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CredentialSchemaPermSession); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_cspermission_types_proto_rawDesc,
NumEnums: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_cspermission_types_proto_goTypes,
DependencyIndexes: file_veranablockchain_cspermission_types_proto_depIdxs,
EnumInfos: file_veranablockchain_cspermission_types_proto_enumTypes,
MessageInfos: file_veranablockchain_cspermission_types_proto_msgTypes,
}.Build()
File_veranablockchain_cspermission_types_proto = out.File
file_veranablockchain_cspermission_types_proto_rawDesc = nil
file_veranablockchain_cspermission_types_proto_goTypes = nil
file_veranablockchain_cspermission_types_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package diddirectory
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
type _GenesisState_2_list struct {
list *[]*DIDDirectory
}
func (x *_GenesisState_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*DIDDirectory)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*DIDDirectory)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
v := new(DIDDirectory)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
v := new(DIDDirectory)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) IsValid() bool {
return x.list != nil
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_did_directories protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_genesis_proto_init()
md_GenesisState = File_veranablockchain_diddirectory_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
fd_GenesisState_did_directories = md_GenesisState.Fields().ByName("did_directories")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
if len(x.DidDirectories) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.DidDirectories})
if !f(fd_GenesisState_did_directories, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.GenesisState.params":
return x.Params != nil
case "veranablockchain.diddirectory.GenesisState.did_directories":
return len(x.DidDirectories) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.GenesisState.params":
x.Params = nil
case "veranablockchain.diddirectory.GenesisState.did_directories":
x.DidDirectories = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.diddirectory.GenesisState.did_directories":
if len(x.DidDirectories) == 0 {
return protoreflect.ValueOfList(&_GenesisState_2_list{})
}
listValue := &_GenesisState_2_list{list: &x.DidDirectories}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
case "veranablockchain.diddirectory.GenesisState.did_directories":
lv := value.List()
clv := lv.(*_GenesisState_2_list)
x.DidDirectories = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.diddirectory.GenesisState.did_directories":
if x.DidDirectories == nil {
x.DidDirectories = []*DIDDirectory{}
}
value := &_GenesisState_2_list{list: &x.DidDirectories}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.diddirectory.GenesisState.did_directories":
list := []*DIDDirectory{}
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.DidDirectories) > 0 {
for _, e := range x.DidDirectories {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.DidDirectories) > 0 {
for iNdEx := len(x.DidDirectories) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.DidDirectories[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidDirectories", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DidDirectories = append(x.DidDirectories, &DIDDirectory{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DidDirectories[len(x.DidDirectories)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/diddirectory/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the diddirectory module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
DidDirectories []*DIDDirectory `protobuf:"bytes,2,rep,name=did_directories,json=didDirectories,proto3" json:"did_directories,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
func (x *GenesisState) GetDidDirectories() []*DIDDirectory {
if x != nil {
return x.DidDirectories
}
return nil
}
var File_veranablockchain_diddirectory_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_diddirectory_genesis_proto_rawDesc = []byte{
0x0a, 0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a,
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x48, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x5a, 0x0a, 0x0f, 0x64, 0x69, 0x64, 0x5f, 0x64,
0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x2b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x2e, 0x44, 0x49, 0x44, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0xc8,
0xde, 0x1f, 0x00, 0x52, 0x0e, 0x64, 0x69, 0x64, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72,
0x69, 0x65, 0x73, 0x42, 0x92, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64,
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73,
0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62,
0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65,
0x63, 0x74, 0x6f, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x56, 0x44, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x44,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xca, 0x02, 0x1d, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xe2, 0x02, 0x29, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x44, 0x69, 0x64, 0x64,
0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_diddirectory_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_diddirectory_genesis_proto_rawDescData = file_veranablockchain_diddirectory_genesis_proto_rawDesc
)
func file_veranablockchain_diddirectory_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_diddirectory_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_diddirectory_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_diddirectory_genesis_proto_rawDescData)
})
return file_veranablockchain_diddirectory_genesis_proto_rawDescData
}
var file_veranablockchain_diddirectory_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_diddirectory_genesis_proto_goTypes = []interface{}{
(*GenesisState)(nil), // 0: veranablockchain.diddirectory.GenesisState
(*Params)(nil), // 1: veranablockchain.diddirectory.Params
(*DIDDirectory)(nil), // 2: veranablockchain.diddirectory.DIDDirectory
}
var file_veranablockchain_diddirectory_genesis_proto_depIdxs = []int32{
1, // 0: veranablockchain.diddirectory.GenesisState.params:type_name -> veranablockchain.diddirectory.Params
2, // 1: veranablockchain.diddirectory.GenesisState.did_directories:type_name -> veranablockchain.diddirectory.DIDDirectory
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_veranablockchain_diddirectory_genesis_proto_init() }
func file_veranablockchain_diddirectory_genesis_proto_init() {
if File_veranablockchain_diddirectory_genesis_proto != nil {
return
}
file_veranablockchain_diddirectory_params_proto_init()
file_veranablockchain_diddirectory_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_diddirectory_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_diddirectory_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_diddirectory_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_diddirectory_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_diddirectory_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_diddirectory_genesis_proto = out.File
file_veranablockchain_diddirectory_genesis_proto_rawDesc = nil
file_veranablockchain_diddirectory_genesis_proto_goTypes = nil
file_veranablockchain_diddirectory_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_module_module_proto_init()
md_Module = File_veranablockchain_diddirectory_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.diddirectory.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/diddirectory/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_diddirectory_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_diddirectory_module_module_proto_rawDesc = []byte{
0x0a, 0x31, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x24, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f,
0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x06, 0x4d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x74, 0x79, 0x3a, 0x3f, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x39, 0x0a, 0x37, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c,
0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x79, 0x42, 0xbc, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x6d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x44, 0x4d, 0xaa, 0x02, 0x24, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x44, 0x69, 0x64,
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
0xca, 0x02, 0x24, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x30, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44, 0x69, 0x64, 0x64, 0x69,
0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x44,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x4d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_diddirectory_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_diddirectory_module_module_proto_rawDescData = file_veranablockchain_diddirectory_module_module_proto_rawDesc
)
func file_veranablockchain_diddirectory_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_diddirectory_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_diddirectory_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_diddirectory_module_module_proto_rawDescData)
})
return file_veranablockchain_diddirectory_module_module_proto_rawDescData
}
var file_veranablockchain_diddirectory_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_diddirectory_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.diddirectory.module.Module
}
var file_veranablockchain_diddirectory_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_diddirectory_module_module_proto_init() }
func file_veranablockchain_diddirectory_module_module_proto_init() {
if File_veranablockchain_diddirectory_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_diddirectory_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_diddirectory_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_diddirectory_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_diddirectory_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_diddirectory_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_diddirectory_module_module_proto = out.File
file_veranablockchain_diddirectory_module_module_proto_rawDesc = nil
file_veranablockchain_diddirectory_module_module_proto_goTypes = nil
file_veranablockchain_diddirectory_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package diddirectory
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Params protoreflect.MessageDescriptor
fd_Params_did_directory_trust_deposit protoreflect.FieldDescriptor
fd_Params_did_directory_grace_period protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_params_proto_init()
md_Params = File_veranablockchain_diddirectory_params_proto.Messages().ByName("Params")
fd_Params_did_directory_trust_deposit = md_Params.Fields().ByName("did_directory_trust_deposit")
fd_Params_did_directory_grace_period = md_Params.Fields().ByName("did_directory_grace_period")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.DidDirectoryTrustDeposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.DidDirectoryTrustDeposit)
if !f(fd_Params_did_directory_trust_deposit, value) {
return
}
}
if x.DidDirectoryGracePeriod != uint64(0) {
value := protoreflect.ValueOfUint64(x.DidDirectoryGracePeriod)
if !f(fd_Params_did_directory_grace_period, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.Params.did_directory_trust_deposit":
return x.DidDirectoryTrustDeposit != uint64(0)
case "veranablockchain.diddirectory.Params.did_directory_grace_period":
return x.DidDirectoryGracePeriod != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.Params"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.Params.did_directory_trust_deposit":
x.DidDirectoryTrustDeposit = uint64(0)
case "veranablockchain.diddirectory.Params.did_directory_grace_period":
x.DidDirectoryGracePeriod = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.Params"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.Params.did_directory_trust_deposit":
value := x.DidDirectoryTrustDeposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.diddirectory.Params.did_directory_grace_period":
value := x.DidDirectoryGracePeriod
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.Params"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.Params.did_directory_trust_deposit":
x.DidDirectoryTrustDeposit = value.Uint()
case "veranablockchain.diddirectory.Params.did_directory_grace_period":
x.DidDirectoryGracePeriod = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.Params"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.Params.did_directory_trust_deposit":
panic(fmt.Errorf("field did_directory_trust_deposit of message veranablockchain.diddirectory.Params is not mutable"))
case "veranablockchain.diddirectory.Params.did_directory_grace_period":
panic(fmt.Errorf("field did_directory_grace_period of message veranablockchain.diddirectory.Params is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.Params"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.Params.did_directory_trust_deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.diddirectory.Params.did_directory_grace_period":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.Params"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.DidDirectoryTrustDeposit != 0 {
n += 1 + runtime.Sov(uint64(x.DidDirectoryTrustDeposit))
}
if x.DidDirectoryGracePeriod != 0 {
n += 1 + runtime.Sov(uint64(x.DidDirectoryGracePeriod))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.DidDirectoryGracePeriod != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.DidDirectoryGracePeriod))
i--
dAtA[i] = 0x10
}
if x.DidDirectoryTrustDeposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.DidDirectoryTrustDeposit))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidDirectoryTrustDeposit", wireType)
}
x.DidDirectoryTrustDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.DidDirectoryTrustDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidDirectoryGracePeriod", wireType)
}
x.DidDirectoryGracePeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.DidDirectoryGracePeriod |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/diddirectory/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DidDirectoryTrustDeposit uint64 `protobuf:"varint,1,opt,name=did_directory_trust_deposit,json=didDirectoryTrustDeposit,proto3" json:"did_directory_trust_deposit,omitempty"`
DidDirectoryGracePeriod uint64 `protobuf:"varint,2,opt,name=did_directory_grace_period,json=didDirectoryGracePeriod,proto3" json:"did_directory_grace_period,omitempty"`
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_params_proto_rawDescGZIP(), []int{0}
}
func (x *Params) GetDidDirectoryTrustDeposit() uint64 {
if x != nil {
return x.DidDirectoryTrustDeposit
}
return 0
}
func (x *Params) GetDidDirectoryGracePeriod() uint64 {
if x != nil {
return x.DidDirectoryGracePeriod
}
return 0
}
var File_veranablockchain_diddirectory_params_proto protoreflect.FileDescriptor
var file_veranablockchain_diddirectory_params_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d, 0x69,
0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14,
0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x02, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
0x6a, 0x0a, 0x1b, 0x64, 0x69, 0x64, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x01,
0x20, 0x01, 0x28, 0x04, 0x42, 0x2b, 0xf2, 0xde, 0x1f, 0x22, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22,
0x64, 0x69, 0x64, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x72,
0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x22, 0xa8, 0xe7, 0xb0, 0x2a,
0x01, 0x52, 0x18, 0x64, 0x69, 0x64, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x54,
0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x67, 0x0a, 0x1a, 0x64,
0x69, 0x64, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x67, 0x72, 0x61,
0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x42,
0x2a, 0xf2, 0xde, 0x1f, 0x21, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x64, 0x69, 0x64, 0x5f, 0x64,
0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70,
0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x17, 0x64, 0x69, 0x64,
0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65,
0x72, 0x69, 0x6f, 0x64, 0x3a, 0x2f, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x26, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x78, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x91, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x0b, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61,
0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x56, 0x44, 0x58, 0xaa, 0x02, 0x1d, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xca, 0x02, 0x1d, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c,
0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xe2, 0x02, 0x29, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c,
0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42,
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x44, 0x69, 0x64,
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_veranablockchain_diddirectory_params_proto_rawDescOnce sync.Once
file_veranablockchain_diddirectory_params_proto_rawDescData = file_veranablockchain_diddirectory_params_proto_rawDesc
)
func file_veranablockchain_diddirectory_params_proto_rawDescGZIP() []byte {
file_veranablockchain_diddirectory_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_diddirectory_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_diddirectory_params_proto_rawDescData)
})
return file_veranablockchain_diddirectory_params_proto_rawDescData
}
var file_veranablockchain_diddirectory_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_diddirectory_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.diddirectory.Params
}
var file_veranablockchain_diddirectory_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_diddirectory_params_proto_init() }
func file_veranablockchain_diddirectory_params_proto_init() {
if File_veranablockchain_diddirectory_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_diddirectory_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_diddirectory_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_diddirectory_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_diddirectory_params_proto_depIdxs,
MessageInfos: file_veranablockchain_diddirectory_params_proto_msgTypes,
}.Build()
File_veranablockchain_diddirectory_params_proto = out.File
file_veranablockchain_diddirectory_params_proto_rawDesc = nil
file_veranablockchain_diddirectory_params_proto_goTypes = nil
file_veranablockchain_diddirectory_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package diddirectory
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_diddirectory_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_diddirectory_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_diddirectory_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryListDIDsRequest protoreflect.MessageDescriptor
fd_QueryListDIDsRequest_account protoreflect.FieldDescriptor
fd_QueryListDIDsRequest_changed protoreflect.FieldDescriptor
fd_QueryListDIDsRequest_expired protoreflect.FieldDescriptor
fd_QueryListDIDsRequest_over_grace protoreflect.FieldDescriptor
fd_QueryListDIDsRequest_response_max_size protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_query_proto_init()
md_QueryListDIDsRequest = File_veranablockchain_diddirectory_query_proto.Messages().ByName("QueryListDIDsRequest")
fd_QueryListDIDsRequest_account = md_QueryListDIDsRequest.Fields().ByName("account")
fd_QueryListDIDsRequest_changed = md_QueryListDIDsRequest.Fields().ByName("changed")
fd_QueryListDIDsRequest_expired = md_QueryListDIDsRequest.Fields().ByName("expired")
fd_QueryListDIDsRequest_over_grace = md_QueryListDIDsRequest.Fields().ByName("over_grace")
fd_QueryListDIDsRequest_response_max_size = md_QueryListDIDsRequest.Fields().ByName("response_max_size")
}
var _ protoreflect.Message = (*fastReflection_QueryListDIDsRequest)(nil)
type fastReflection_QueryListDIDsRequest QueryListDIDsRequest
func (x *QueryListDIDsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListDIDsRequest)(x)
}
func (x *QueryListDIDsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListDIDsRequest_messageType fastReflection_QueryListDIDsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryListDIDsRequest_messageType{}
type fastReflection_QueryListDIDsRequest_messageType struct{}
func (x fastReflection_QueryListDIDsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListDIDsRequest)(nil)
}
func (x fastReflection_QueryListDIDsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListDIDsRequest)
}
func (x fastReflection_QueryListDIDsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListDIDsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListDIDsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListDIDsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListDIDsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryListDIDsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListDIDsRequest) New() protoreflect.Message {
return new(fastReflection_QueryListDIDsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListDIDsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryListDIDsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListDIDsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Account != "" {
value := protoreflect.ValueOfString(x.Account)
if !f(fd_QueryListDIDsRequest_account, value) {
return
}
}
if x.Changed != nil {
value := protoreflect.ValueOfMessage(x.Changed.ProtoReflect())
if !f(fd_QueryListDIDsRequest_changed, value) {
return
}
}
if x.Expired != false {
value := protoreflect.ValueOfBool(x.Expired)
if !f(fd_QueryListDIDsRequest_expired, value) {
return
}
}
if x.OverGrace != false {
value := protoreflect.ValueOfBool(x.OverGrace)
if !f(fd_QueryListDIDsRequest_over_grace, value) {
return
}
}
if x.ResponseMaxSize != uint32(0) {
value := protoreflect.ValueOfUint32(x.ResponseMaxSize)
if !f(fd_QueryListDIDsRequest_response_max_size, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListDIDsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsRequest.account":
return x.Account != ""
case "veranablockchain.diddirectory.QueryListDIDsRequest.changed":
return x.Changed != nil
case "veranablockchain.diddirectory.QueryListDIDsRequest.expired":
return x.Expired != false
case "veranablockchain.diddirectory.QueryListDIDsRequest.over_grace":
return x.OverGrace != false
case "veranablockchain.diddirectory.QueryListDIDsRequest.response_max_size":
return x.ResponseMaxSize != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsRequest.account":
x.Account = ""
case "veranablockchain.diddirectory.QueryListDIDsRequest.changed":
x.Changed = nil
case "veranablockchain.diddirectory.QueryListDIDsRequest.expired":
x.Expired = false
case "veranablockchain.diddirectory.QueryListDIDsRequest.over_grace":
x.OverGrace = false
case "veranablockchain.diddirectory.QueryListDIDsRequest.response_max_size":
x.ResponseMaxSize = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListDIDsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsRequest.account":
value := x.Account
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.QueryListDIDsRequest.changed":
value := x.Changed
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.diddirectory.QueryListDIDsRequest.expired":
value := x.Expired
return protoreflect.ValueOfBool(value)
case "veranablockchain.diddirectory.QueryListDIDsRequest.over_grace":
value := x.OverGrace
return protoreflect.ValueOfBool(value)
case "veranablockchain.diddirectory.QueryListDIDsRequest.response_max_size":
value := x.ResponseMaxSize
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsRequest.account":
x.Account = value.Interface().(string)
case "veranablockchain.diddirectory.QueryListDIDsRequest.changed":
x.Changed = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.diddirectory.QueryListDIDsRequest.expired":
x.Expired = value.Bool()
case "veranablockchain.diddirectory.QueryListDIDsRequest.over_grace":
x.OverGrace = value.Bool()
case "veranablockchain.diddirectory.QueryListDIDsRequest.response_max_size":
x.ResponseMaxSize = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsRequest.changed":
if x.Changed == nil {
x.Changed = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Changed.ProtoReflect())
case "veranablockchain.diddirectory.QueryListDIDsRequest.account":
panic(fmt.Errorf("field account of message veranablockchain.diddirectory.QueryListDIDsRequest is not mutable"))
case "veranablockchain.diddirectory.QueryListDIDsRequest.expired":
panic(fmt.Errorf("field expired of message veranablockchain.diddirectory.QueryListDIDsRequest is not mutable"))
case "veranablockchain.diddirectory.QueryListDIDsRequest.over_grace":
panic(fmt.Errorf("field over_grace of message veranablockchain.diddirectory.QueryListDIDsRequest is not mutable"))
case "veranablockchain.diddirectory.QueryListDIDsRequest.response_max_size":
panic(fmt.Errorf("field response_max_size of message veranablockchain.diddirectory.QueryListDIDsRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListDIDsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsRequest.account":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.QueryListDIDsRequest.changed":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.diddirectory.QueryListDIDsRequest.expired":
return protoreflect.ValueOfBool(false)
case "veranablockchain.diddirectory.QueryListDIDsRequest.over_grace":
return protoreflect.ValueOfBool(false)
case "veranablockchain.diddirectory.QueryListDIDsRequest.response_max_size":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListDIDsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.QueryListDIDsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListDIDsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListDIDsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListDIDsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListDIDsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Account)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Changed != nil {
l = options.Size(x.Changed)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Expired {
n += 2
}
if x.OverGrace {
n += 2
}
if x.ResponseMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.ResponseMaxSize))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListDIDsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ResponseMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ResponseMaxSize))
i--
dAtA[i] = 0x28
}
if x.OverGrace {
i--
if x.OverGrace {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x20
}
if x.Expired {
i--
if x.Expired {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if x.Changed != nil {
encoded, err := options.Marshal(x.Changed)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Account) > 0 {
i -= len(x.Account)
copy(dAtA[i:], x.Account)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListDIDsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListDIDsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListDIDsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Changed", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Changed == nil {
x.Changed = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Changed); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Expired", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.Expired = bool(v != 0)
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OverGrace", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.OverGrace = bool(v != 0)
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
x.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryListDIDsResponse_1_list)(nil)
type _QueryListDIDsResponse_1_list struct {
list *[]*DIDDirectory
}
func (x *_QueryListDIDsResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryListDIDsResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryListDIDsResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*DIDDirectory)
(*x.list)[i] = concreteValue
}
func (x *_QueryListDIDsResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*DIDDirectory)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryListDIDsResponse_1_list) AppendMutable() protoreflect.Value {
v := new(DIDDirectory)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListDIDsResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryListDIDsResponse_1_list) NewElement() protoreflect.Value {
v := new(DIDDirectory)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListDIDsResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryListDIDsResponse protoreflect.MessageDescriptor
fd_QueryListDIDsResponse_dids protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_query_proto_init()
md_QueryListDIDsResponse = File_veranablockchain_diddirectory_query_proto.Messages().ByName("QueryListDIDsResponse")
fd_QueryListDIDsResponse_dids = md_QueryListDIDsResponse.Fields().ByName("dids")
}
var _ protoreflect.Message = (*fastReflection_QueryListDIDsResponse)(nil)
type fastReflection_QueryListDIDsResponse QueryListDIDsResponse
func (x *QueryListDIDsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListDIDsResponse)(x)
}
func (x *QueryListDIDsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListDIDsResponse_messageType fastReflection_QueryListDIDsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryListDIDsResponse_messageType{}
type fastReflection_QueryListDIDsResponse_messageType struct{}
func (x fastReflection_QueryListDIDsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListDIDsResponse)(nil)
}
func (x fastReflection_QueryListDIDsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListDIDsResponse)
}
func (x fastReflection_QueryListDIDsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListDIDsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListDIDsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListDIDsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListDIDsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryListDIDsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListDIDsResponse) New() protoreflect.Message {
return new(fastReflection_QueryListDIDsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListDIDsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryListDIDsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListDIDsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Dids) != 0 {
value := protoreflect.ValueOfList(&_QueryListDIDsResponse_1_list{list: &x.Dids})
if !f(fd_QueryListDIDsResponse_dids, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListDIDsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsResponse.dids":
return len(x.Dids) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsResponse.dids":
x.Dids = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListDIDsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsResponse.dids":
if len(x.Dids) == 0 {
return protoreflect.ValueOfList(&_QueryListDIDsResponse_1_list{})
}
listValue := &_QueryListDIDsResponse_1_list{list: &x.Dids}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsResponse.dids":
lv := value.List()
clv := lv.(*_QueryListDIDsResponse_1_list)
x.Dids = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsResponse.dids":
if x.Dids == nil {
x.Dids = []*DIDDirectory{}
}
value := &_QueryListDIDsResponse_1_list{list: &x.Dids}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListDIDsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryListDIDsResponse.dids":
list := []*DIDDirectory{}
return protoreflect.ValueOfList(&_QueryListDIDsResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryListDIDsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryListDIDsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListDIDsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.QueryListDIDsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListDIDsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListDIDsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListDIDsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListDIDsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListDIDsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Dids) > 0 {
for _, e := range x.Dids {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListDIDsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Dids) > 0 {
for iNdEx := len(x.Dids) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Dids[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListDIDsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListDIDsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListDIDsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Dids", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Dids = append(x.Dids, &DIDDirectory{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Dids[len(x.Dids)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetDIDRequest protoreflect.MessageDescriptor
fd_QueryGetDIDRequest_did protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_query_proto_init()
md_QueryGetDIDRequest = File_veranablockchain_diddirectory_query_proto.Messages().ByName("QueryGetDIDRequest")
fd_QueryGetDIDRequest_did = md_QueryGetDIDRequest.Fields().ByName("did")
}
var _ protoreflect.Message = (*fastReflection_QueryGetDIDRequest)(nil)
type fastReflection_QueryGetDIDRequest QueryGetDIDRequest
func (x *QueryGetDIDRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetDIDRequest)(x)
}
func (x *QueryGetDIDRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetDIDRequest_messageType fastReflection_QueryGetDIDRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetDIDRequest_messageType{}
type fastReflection_QueryGetDIDRequest_messageType struct{}
func (x fastReflection_QueryGetDIDRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetDIDRequest)(nil)
}
func (x fastReflection_QueryGetDIDRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetDIDRequest)
}
func (x fastReflection_QueryGetDIDRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetDIDRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetDIDRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetDIDRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetDIDRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetDIDRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetDIDRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetDIDRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetDIDRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetDIDRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetDIDRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_QueryGetDIDRequest_did, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetDIDRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDRequest.did":
return x.Did != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDRequest.did":
x.Did = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetDIDRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDRequest.did":
value := x.Did
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDRequest.did":
x.Did = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDRequest.did":
panic(fmt.Errorf("field did of message veranablockchain.diddirectory.QueryGetDIDRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetDIDRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDRequest.did":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetDIDRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.QueryGetDIDRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetDIDRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetDIDRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetDIDRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetDIDRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetDIDRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetDIDRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetDIDResponse protoreflect.MessageDescriptor
fd_QueryGetDIDResponse_did_entry protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_query_proto_init()
md_QueryGetDIDResponse = File_veranablockchain_diddirectory_query_proto.Messages().ByName("QueryGetDIDResponse")
fd_QueryGetDIDResponse_did_entry = md_QueryGetDIDResponse.Fields().ByName("did_entry")
}
var _ protoreflect.Message = (*fastReflection_QueryGetDIDResponse)(nil)
type fastReflection_QueryGetDIDResponse QueryGetDIDResponse
func (x *QueryGetDIDResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetDIDResponse)(x)
}
func (x *QueryGetDIDResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetDIDResponse_messageType fastReflection_QueryGetDIDResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetDIDResponse_messageType{}
type fastReflection_QueryGetDIDResponse_messageType struct{}
func (x fastReflection_QueryGetDIDResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetDIDResponse)(nil)
}
func (x fastReflection_QueryGetDIDResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetDIDResponse)
}
func (x fastReflection_QueryGetDIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetDIDResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetDIDResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetDIDResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetDIDResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetDIDResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetDIDResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetDIDResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetDIDResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetDIDResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetDIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.DidEntry != nil {
value := protoreflect.ValueOfMessage(x.DidEntry.ProtoReflect())
if !f(fd_QueryGetDIDResponse_did_entry, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetDIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDResponse.did_entry":
return x.DidEntry != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDResponse.did_entry":
x.DidEntry = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetDIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDResponse.did_entry":
value := x.DidEntry
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDResponse.did_entry":
x.DidEntry = value.Message().Interface().(*DIDDirectory)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDResponse.did_entry":
if x.DidEntry == nil {
x.DidEntry = new(DIDDirectory)
}
return protoreflect.ValueOfMessage(x.DidEntry.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetDIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.QueryGetDIDResponse.did_entry":
m := new(DIDDirectory)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.QueryGetDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.QueryGetDIDResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetDIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.QueryGetDIDResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetDIDResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetDIDResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetDIDResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetDIDResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetDIDResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.DidEntry != nil {
l = options.Size(x.DidEntry)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetDIDResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.DidEntry != nil {
encoded, err := options.Marshal(x.DidEntry)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetDIDResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DidEntry", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.DidEntry == nil {
x.DidEntry = &DIDDirectory{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DidEntry); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/diddirectory/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
type QueryListDIDsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Changed *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=changed,proto3" json:"changed,omitempty"`
Expired bool `protobuf:"varint,3,opt,name=expired,proto3" json:"expired,omitempty"`
OverGrace bool `protobuf:"varint,4,opt,name=over_grace,json=overGrace,proto3" json:"over_grace,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,5,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (x *QueryListDIDsRequest) Reset() {
*x = QueryListDIDsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListDIDsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListDIDsRequest) ProtoMessage() {}
// Deprecated: Use QueryListDIDsRequest.ProtoReflect.Descriptor instead.
func (*QueryListDIDsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_query_proto_rawDescGZIP(), []int{2}
}
func (x *QueryListDIDsRequest) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *QueryListDIDsRequest) GetChanged() *timestamppb.Timestamp {
if x != nil {
return x.Changed
}
return nil
}
func (x *QueryListDIDsRequest) GetExpired() bool {
if x != nil {
return x.Expired
}
return false
}
func (x *QueryListDIDsRequest) GetOverGrace() bool {
if x != nil {
return x.OverGrace
}
return false
}
func (x *QueryListDIDsRequest) GetResponseMaxSize() uint32 {
if x != nil {
return x.ResponseMaxSize
}
return 0
}
type QueryListDIDsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Dids []*DIDDirectory `protobuf:"bytes,1,rep,name=dids,proto3" json:"dids,omitempty"`
}
func (x *QueryListDIDsResponse) Reset() {
*x = QueryListDIDsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListDIDsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListDIDsResponse) ProtoMessage() {}
// Deprecated: Use QueryListDIDsResponse.ProtoReflect.Descriptor instead.
func (*QueryListDIDsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryListDIDsResponse) GetDids() []*DIDDirectory {
if x != nil {
return x.Dids
}
return nil
}
type QueryGetDIDRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
}
func (x *QueryGetDIDRequest) Reset() {
*x = QueryGetDIDRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetDIDRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetDIDRequest) ProtoMessage() {}
// Deprecated: Use QueryGetDIDRequest.ProtoReflect.Descriptor instead.
func (*QueryGetDIDRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_query_proto_rawDescGZIP(), []int{4}
}
func (x *QueryGetDIDRequest) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
type QueryGetDIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DidEntry *DIDDirectory `protobuf:"bytes,1,opt,name=did_entry,json=didEntry,proto3" json:"did_entry,omitempty"`
}
func (x *QueryGetDIDResponse) Reset() {
*x = QueryGetDIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetDIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetDIDResponse) ProtoMessage() {}
// Deprecated: Use QueryGetDIDResponse.ProtoReflect.Descriptor instead.
func (*QueryGetDIDResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_query_proto_rawDescGZIP(), []int{5}
}
func (x *QueryGetDIDResponse) GetDidEntry() *DIDDirectory {
if x != nil {
return x.DidEntry
}
return nil
}
var File_veranablockchain_diddirectory_query_proto protoreflect.FileDescriptor
var file_veranablockchain_diddirectory_query_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67,
0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71,
0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67,
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xef, 0x01, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72,
0x79, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x49, 0x44, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x32, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x68, 0x61,
0x6e, 0x67, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1d,
0x0a, 0x0a, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x08, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x47, 0x72, 0x61, 0x63, 0x65, 0x12, 0x2a, 0x0a,
0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x5e, 0x0a, 0x15, 0x51, 0x75, 0x65,
0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x64, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x2b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x2e, 0x44, 0x49, 0x44, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0xc8,
0xde, 0x1f, 0x00, 0x52, 0x04, 0x64, 0x69, 0x64, 0x73, 0x22, 0x26, 0x0a, 0x12, 0x51, 0x75, 0x65,
0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69,
0x64, 0x22, 0x65, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x64, 0x69, 0x64, 0x5f,
0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x44, 0x49, 0x44, 0x44,
0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08,
0x64, 0x69, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x32, 0xa9, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65,
0x72, 0x79, 0x12, 0x86, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x31, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x64,
0x64, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x08,
0x4c, 0x69, 0x73, 0x74, 0x44, 0x49, 0x44, 0x73, 0x12, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64,
0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69,
0x73, 0x74, 0x44, 0x49, 0x44, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x49, 0x44, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b, 0x2f, 0x64, 0x64,
0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x89, 0x01, 0x0a, 0x06, 0x47, 0x65, 0x74,
0x44, 0x49, 0x44, 0x12, 0x31, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
0x6f, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44, 0x49, 0x44, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x44,
0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x12, 0x12, 0x10, 0x2f, 0x64, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x74, 0x2f, 0x7b,
0x64, 0x69, 0x64, 0x7d, 0x42, 0x90, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72,
0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x56, 0x44, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x44, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x44, 0x69, 0x64, 0x64, 0x69,
0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_diddirectory_query_proto_rawDescOnce sync.Once
file_veranablockchain_diddirectory_query_proto_rawDescData = file_veranablockchain_diddirectory_query_proto_rawDesc
)
func file_veranablockchain_diddirectory_query_proto_rawDescGZIP() []byte {
file_veranablockchain_diddirectory_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_diddirectory_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_diddirectory_query_proto_rawDescData)
})
return file_veranablockchain_diddirectory_query_proto_rawDescData
}
var file_veranablockchain_diddirectory_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_veranablockchain_diddirectory_query_proto_goTypes = []interface{}{
(*QueryParamsRequest)(nil), // 0: veranablockchain.diddirectory.QueryParamsRequest
(*QueryParamsResponse)(nil), // 1: veranablockchain.diddirectory.QueryParamsResponse
(*QueryListDIDsRequest)(nil), // 2: veranablockchain.diddirectory.QueryListDIDsRequest
(*QueryListDIDsResponse)(nil), // 3: veranablockchain.diddirectory.QueryListDIDsResponse
(*QueryGetDIDRequest)(nil), // 4: veranablockchain.diddirectory.QueryGetDIDRequest
(*QueryGetDIDResponse)(nil), // 5: veranablockchain.diddirectory.QueryGetDIDResponse
(*Params)(nil), // 6: veranablockchain.diddirectory.Params
(*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp
(*DIDDirectory)(nil), // 8: veranablockchain.diddirectory.DIDDirectory
}
var file_veranablockchain_diddirectory_query_proto_depIdxs = []int32{
6, // 0: veranablockchain.diddirectory.QueryParamsResponse.params:type_name -> veranablockchain.diddirectory.Params
7, // 1: veranablockchain.diddirectory.QueryListDIDsRequest.changed:type_name -> google.protobuf.Timestamp
8, // 2: veranablockchain.diddirectory.QueryListDIDsResponse.dids:type_name -> veranablockchain.diddirectory.DIDDirectory
8, // 3: veranablockchain.diddirectory.QueryGetDIDResponse.did_entry:type_name -> veranablockchain.diddirectory.DIDDirectory
0, // 4: veranablockchain.diddirectory.Query.Params:input_type -> veranablockchain.diddirectory.QueryParamsRequest
2, // 5: veranablockchain.diddirectory.Query.ListDIDs:input_type -> veranablockchain.diddirectory.QueryListDIDsRequest
4, // 6: veranablockchain.diddirectory.Query.GetDID:input_type -> veranablockchain.diddirectory.QueryGetDIDRequest
1, // 7: veranablockchain.diddirectory.Query.Params:output_type -> veranablockchain.diddirectory.QueryParamsResponse
3, // 8: veranablockchain.diddirectory.Query.ListDIDs:output_type -> veranablockchain.diddirectory.QueryListDIDsResponse
5, // 9: veranablockchain.diddirectory.Query.GetDID:output_type -> veranablockchain.diddirectory.QueryGetDIDResponse
7, // [7:10] is the sub-list for method output_type
4, // [4:7] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_veranablockchain_diddirectory_query_proto_init() }
func file_veranablockchain_diddirectory_query_proto_init() {
if File_veranablockchain_diddirectory_query_proto != nil {
return
}
file_veranablockchain_diddirectory_params_proto_init()
file_veranablockchain_diddirectory_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_diddirectory_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListDIDsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListDIDsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetDIDRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetDIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_diddirectory_query_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_diddirectory_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_diddirectory_query_proto_depIdxs,
MessageInfos: file_veranablockchain_diddirectory_query_proto_msgTypes,
}.Build()
File_veranablockchain_diddirectory_query_proto = out.File
file_veranablockchain_diddirectory_query_proto_rawDesc = nil
file_veranablockchain_diddirectory_query_proto_goTypes = nil
file_veranablockchain_diddirectory_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/diddirectory/query.proto
package diddirectory
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.diddirectory.Query/Params"
Query_ListDIDs_FullMethodName = "/veranablockchain.diddirectory.Query/ListDIDs"
Query_GetDID_FullMethodName = "/veranablockchain.diddirectory.Query/GetDID"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
ListDIDs(ctx context.Context, in *QueryListDIDsRequest, opts ...grpc.CallOption) (*QueryListDIDsResponse, error)
GetDID(ctx context.Context, in *QueryGetDIDRequest, opts ...grpc.CallOption) (*QueryGetDIDResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListDIDs(ctx context.Context, in *QueryListDIDsRequest, opts ...grpc.CallOption) (*QueryListDIDsResponse, error) {
out := new(QueryListDIDsResponse)
err := c.cc.Invoke(ctx, Query_ListDIDs_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetDID(ctx context.Context, in *QueryGetDIDRequest, opts ...grpc.CallOption) (*QueryGetDIDResponse, error) {
out := new(QueryGetDIDResponse)
err := c.cc.Invoke(ctx, Query_GetDID_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
ListDIDs(context.Context, *QueryListDIDsRequest) (*QueryListDIDsResponse, error)
GetDID(context.Context, *QueryGetDIDRequest) (*QueryGetDIDResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) ListDIDs(context.Context, *QueryListDIDsRequest) (*QueryListDIDsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListDIDs not implemented")
}
func (UnimplementedQueryServer) GetDID(context.Context, *QueryGetDIDRequest) (*QueryGetDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDID not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListDIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListDIDsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListDIDs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_ListDIDs_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListDIDs(ctx, req.(*QueryListDIDsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetDIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetDID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetDID(ctx, req.(*QueryGetDIDRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.diddirectory.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListDIDs",
Handler: _Query_ListDIDs_Handler,
},
{
MethodName: "GetDID",
Handler: _Query_GetDID_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/diddirectory/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package diddirectory
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.diddirectory.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.diddirectory.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.diddirectory.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.diddirectory.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.diddirectory.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgAddDID protoreflect.MessageDescriptor
fd_MsgAddDID_creator protoreflect.FieldDescriptor
fd_MsgAddDID_did protoreflect.FieldDescriptor
fd_MsgAddDID_years protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgAddDID = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgAddDID")
fd_MsgAddDID_creator = md_MsgAddDID.Fields().ByName("creator")
fd_MsgAddDID_did = md_MsgAddDID.Fields().ByName("did")
fd_MsgAddDID_years = md_MsgAddDID.Fields().ByName("years")
}
var _ protoreflect.Message = (*fastReflection_MsgAddDID)(nil)
type fastReflection_MsgAddDID MsgAddDID
func (x *MsgAddDID) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgAddDID)(x)
}
func (x *MsgAddDID) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgAddDID_messageType fastReflection_MsgAddDID_messageType
var _ protoreflect.MessageType = fastReflection_MsgAddDID_messageType{}
type fastReflection_MsgAddDID_messageType struct{}
func (x fastReflection_MsgAddDID_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgAddDID)(nil)
}
func (x fastReflection_MsgAddDID_messageType) New() protoreflect.Message {
return new(fastReflection_MsgAddDID)
}
func (x fastReflection_MsgAddDID_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddDID
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgAddDID) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddDID
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgAddDID) Type() protoreflect.MessageType {
return _fastReflection_MsgAddDID_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgAddDID) New() protoreflect.Message {
return new(fastReflection_MsgAddDID)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgAddDID) Interface() protoreflect.ProtoMessage {
return (*MsgAddDID)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgAddDID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgAddDID_creator, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgAddDID_did, value) {
return
}
}
if x.Years != uint32(0) {
value := protoreflect.ValueOfUint32(x.Years)
if !f(fd_MsgAddDID_years, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgAddDID) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgAddDID.creator":
return x.Creator != ""
case "veranablockchain.diddirectory.MsgAddDID.did":
return x.Did != ""
case "veranablockchain.diddirectory.MsgAddDID.years":
return x.Years != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDID does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDID) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgAddDID.creator":
x.Creator = ""
case "veranablockchain.diddirectory.MsgAddDID.did":
x.Did = ""
case "veranablockchain.diddirectory.MsgAddDID.years":
x.Years = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDID does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgAddDID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.MsgAddDID.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgAddDID.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgAddDID.years":
value := x.Years
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDID does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgAddDID.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.diddirectory.MsgAddDID.did":
x.Did = value.Interface().(string)
case "veranablockchain.diddirectory.MsgAddDID.years":
x.Years = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDID does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgAddDID.creator":
panic(fmt.Errorf("field creator of message veranablockchain.diddirectory.MsgAddDID is not mutable"))
case "veranablockchain.diddirectory.MsgAddDID.did":
panic(fmt.Errorf("field did of message veranablockchain.diddirectory.MsgAddDID is not mutable"))
case "veranablockchain.diddirectory.MsgAddDID.years":
panic(fmt.Errorf("field years of message veranablockchain.diddirectory.MsgAddDID is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDID does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgAddDID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgAddDID.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgAddDID.did":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgAddDID.years":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDID does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgAddDID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgAddDID", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgAddDID) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDID) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgAddDID) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgAddDID) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgAddDID)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Years != 0 {
n += 1 + runtime.Sov(uint64(x.Years))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgAddDID)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Years != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Years))
i--
dAtA[i] = 0x18
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgAddDID)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Years", wireType)
}
x.Years = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Years |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgAddDIDResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgAddDIDResponse = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgAddDIDResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgAddDIDResponse)(nil)
type fastReflection_MsgAddDIDResponse MsgAddDIDResponse
func (x *MsgAddDIDResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgAddDIDResponse)(x)
}
func (x *MsgAddDIDResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgAddDIDResponse_messageType fastReflection_MsgAddDIDResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgAddDIDResponse_messageType{}
type fastReflection_MsgAddDIDResponse_messageType struct{}
func (x fastReflection_MsgAddDIDResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgAddDIDResponse)(nil)
}
func (x fastReflection_MsgAddDIDResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgAddDIDResponse)
}
func (x fastReflection_MsgAddDIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddDIDResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgAddDIDResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddDIDResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgAddDIDResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgAddDIDResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgAddDIDResponse) New() protoreflect.Message {
return new(fastReflection_MsgAddDIDResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgAddDIDResponse) Interface() protoreflect.ProtoMessage {
return (*MsgAddDIDResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgAddDIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgAddDIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDIDResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDIDResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDIDResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgAddDIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDIDResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDIDResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDIDResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgAddDIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgAddDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgAddDIDResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgAddDIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgAddDIDResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgAddDIDResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddDIDResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgAddDIDResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgAddDIDResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgAddDIDResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgAddDIDResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgAddDIDResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRenewDID protoreflect.MessageDescriptor
fd_MsgRenewDID_creator protoreflect.FieldDescriptor
fd_MsgRenewDID_did protoreflect.FieldDescriptor
fd_MsgRenewDID_years protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgRenewDID = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgRenewDID")
fd_MsgRenewDID_creator = md_MsgRenewDID.Fields().ByName("creator")
fd_MsgRenewDID_did = md_MsgRenewDID.Fields().ByName("did")
fd_MsgRenewDID_years = md_MsgRenewDID.Fields().ByName("years")
}
var _ protoreflect.Message = (*fastReflection_MsgRenewDID)(nil)
type fastReflection_MsgRenewDID MsgRenewDID
func (x *MsgRenewDID) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRenewDID)(x)
}
func (x *MsgRenewDID) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRenewDID_messageType fastReflection_MsgRenewDID_messageType
var _ protoreflect.MessageType = fastReflection_MsgRenewDID_messageType{}
type fastReflection_MsgRenewDID_messageType struct{}
func (x fastReflection_MsgRenewDID_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRenewDID)(nil)
}
func (x fastReflection_MsgRenewDID_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRenewDID)
}
func (x fastReflection_MsgRenewDID_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewDID
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRenewDID) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewDID
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRenewDID) Type() protoreflect.MessageType {
return _fastReflection_MsgRenewDID_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRenewDID) New() protoreflect.Message {
return new(fastReflection_MsgRenewDID)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRenewDID) Interface() protoreflect.ProtoMessage {
return (*MsgRenewDID)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRenewDID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgRenewDID_creator, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgRenewDID_did, value) {
return
}
}
if x.Years != uint32(0) {
value := protoreflect.ValueOfUint32(x.Years)
if !f(fd_MsgRenewDID_years, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRenewDID) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRenewDID.creator":
return x.Creator != ""
case "veranablockchain.diddirectory.MsgRenewDID.did":
return x.Did != ""
case "veranablockchain.diddirectory.MsgRenewDID.years":
return x.Years != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDID does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDID) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRenewDID.creator":
x.Creator = ""
case "veranablockchain.diddirectory.MsgRenewDID.did":
x.Did = ""
case "veranablockchain.diddirectory.MsgRenewDID.years":
x.Years = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDID does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRenewDID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.MsgRenewDID.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgRenewDID.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgRenewDID.years":
value := x.Years
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDID does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRenewDID.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.diddirectory.MsgRenewDID.did":
x.Did = value.Interface().(string)
case "veranablockchain.diddirectory.MsgRenewDID.years":
x.Years = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDID does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRenewDID.creator":
panic(fmt.Errorf("field creator of message veranablockchain.diddirectory.MsgRenewDID is not mutable"))
case "veranablockchain.diddirectory.MsgRenewDID.did":
panic(fmt.Errorf("field did of message veranablockchain.diddirectory.MsgRenewDID is not mutable"))
case "veranablockchain.diddirectory.MsgRenewDID.years":
panic(fmt.Errorf("field years of message veranablockchain.diddirectory.MsgRenewDID is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDID does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRenewDID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRenewDID.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgRenewDID.did":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgRenewDID.years":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDID does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRenewDID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgRenewDID", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRenewDID) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDID) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRenewDID) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRenewDID) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRenewDID)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Years != 0 {
n += 1 + runtime.Sov(uint64(x.Years))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewDID)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Years != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Years))
i--
dAtA[i] = 0x18
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewDID)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Years", wireType)
}
x.Years = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Years |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRenewDIDResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgRenewDIDResponse = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgRenewDIDResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgRenewDIDResponse)(nil)
type fastReflection_MsgRenewDIDResponse MsgRenewDIDResponse
func (x *MsgRenewDIDResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRenewDIDResponse)(x)
}
func (x *MsgRenewDIDResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRenewDIDResponse_messageType fastReflection_MsgRenewDIDResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgRenewDIDResponse_messageType{}
type fastReflection_MsgRenewDIDResponse_messageType struct{}
func (x fastReflection_MsgRenewDIDResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRenewDIDResponse)(nil)
}
func (x fastReflection_MsgRenewDIDResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRenewDIDResponse)
}
func (x fastReflection_MsgRenewDIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewDIDResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRenewDIDResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewDIDResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRenewDIDResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgRenewDIDResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRenewDIDResponse) New() protoreflect.Message {
return new(fastReflection_MsgRenewDIDResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRenewDIDResponse) Interface() protoreflect.ProtoMessage {
return (*MsgRenewDIDResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRenewDIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRenewDIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDIDResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDIDResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDIDResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRenewDIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDIDResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDIDResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDIDResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRenewDIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRenewDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRenewDIDResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRenewDIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgRenewDIDResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRenewDIDResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewDIDResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRenewDIDResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRenewDIDResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRenewDIDResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewDIDResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewDIDResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRemoveDID protoreflect.MessageDescriptor
fd_MsgRemoveDID_creator protoreflect.FieldDescriptor
fd_MsgRemoveDID_did protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgRemoveDID = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgRemoveDID")
fd_MsgRemoveDID_creator = md_MsgRemoveDID.Fields().ByName("creator")
fd_MsgRemoveDID_did = md_MsgRemoveDID.Fields().ByName("did")
}
var _ protoreflect.Message = (*fastReflection_MsgRemoveDID)(nil)
type fastReflection_MsgRemoveDID MsgRemoveDID
func (x *MsgRemoveDID) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRemoveDID)(x)
}
func (x *MsgRemoveDID) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRemoveDID_messageType fastReflection_MsgRemoveDID_messageType
var _ protoreflect.MessageType = fastReflection_MsgRemoveDID_messageType{}
type fastReflection_MsgRemoveDID_messageType struct{}
func (x fastReflection_MsgRemoveDID_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRemoveDID)(nil)
}
func (x fastReflection_MsgRemoveDID_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRemoveDID)
}
func (x fastReflection_MsgRemoveDID_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRemoveDID
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRemoveDID) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRemoveDID
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRemoveDID) Type() protoreflect.MessageType {
return _fastReflection_MsgRemoveDID_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRemoveDID) New() protoreflect.Message {
return new(fastReflection_MsgRemoveDID)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRemoveDID) Interface() protoreflect.ProtoMessage {
return (*MsgRemoveDID)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRemoveDID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgRemoveDID_creator, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgRemoveDID_did, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRemoveDID) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRemoveDID.creator":
return x.Creator != ""
case "veranablockchain.diddirectory.MsgRemoveDID.did":
return x.Did != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDID does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDID) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRemoveDID.creator":
x.Creator = ""
case "veranablockchain.diddirectory.MsgRemoveDID.did":
x.Did = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDID does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRemoveDID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.MsgRemoveDID.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgRemoveDID.did":
value := x.Did
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDID does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRemoveDID.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.diddirectory.MsgRemoveDID.did":
x.Did = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDID does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRemoveDID.creator":
panic(fmt.Errorf("field creator of message veranablockchain.diddirectory.MsgRemoveDID is not mutable"))
case "veranablockchain.diddirectory.MsgRemoveDID.did":
panic(fmt.Errorf("field did of message veranablockchain.diddirectory.MsgRemoveDID is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDID does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRemoveDID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgRemoveDID.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgRemoveDID.did":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDID does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRemoveDID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgRemoveDID", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRemoveDID) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDID) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRemoveDID) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRemoveDID) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRemoveDID)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRemoveDID)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRemoveDID)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRemoveDIDResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgRemoveDIDResponse = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgRemoveDIDResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgRemoveDIDResponse)(nil)
type fastReflection_MsgRemoveDIDResponse MsgRemoveDIDResponse
func (x *MsgRemoveDIDResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRemoveDIDResponse)(x)
}
func (x *MsgRemoveDIDResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRemoveDIDResponse_messageType fastReflection_MsgRemoveDIDResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgRemoveDIDResponse_messageType{}
type fastReflection_MsgRemoveDIDResponse_messageType struct{}
func (x fastReflection_MsgRemoveDIDResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRemoveDIDResponse)(nil)
}
func (x fastReflection_MsgRemoveDIDResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRemoveDIDResponse)
}
func (x fastReflection_MsgRemoveDIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRemoveDIDResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRemoveDIDResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRemoveDIDResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRemoveDIDResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgRemoveDIDResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRemoveDIDResponse) New() protoreflect.Message {
return new(fastReflection_MsgRemoveDIDResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRemoveDIDResponse) Interface() protoreflect.ProtoMessage {
return (*MsgRemoveDIDResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRemoveDIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRemoveDIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDIDResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDIDResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDIDResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRemoveDIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDIDResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDIDResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDIDResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRemoveDIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgRemoveDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgRemoveDIDResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRemoveDIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgRemoveDIDResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRemoveDIDResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRemoveDIDResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRemoveDIDResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRemoveDIDResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRemoveDIDResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRemoveDIDResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRemoveDIDResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRemoveDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgTouchDID protoreflect.MessageDescriptor
fd_MsgTouchDID_creator protoreflect.FieldDescriptor
fd_MsgTouchDID_did protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgTouchDID = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgTouchDID")
fd_MsgTouchDID_creator = md_MsgTouchDID.Fields().ByName("creator")
fd_MsgTouchDID_did = md_MsgTouchDID.Fields().ByName("did")
}
var _ protoreflect.Message = (*fastReflection_MsgTouchDID)(nil)
type fastReflection_MsgTouchDID MsgTouchDID
func (x *MsgTouchDID) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgTouchDID)(x)
}
func (x *MsgTouchDID) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgTouchDID_messageType fastReflection_MsgTouchDID_messageType
var _ protoreflect.MessageType = fastReflection_MsgTouchDID_messageType{}
type fastReflection_MsgTouchDID_messageType struct{}
func (x fastReflection_MsgTouchDID_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgTouchDID)(nil)
}
func (x fastReflection_MsgTouchDID_messageType) New() protoreflect.Message {
return new(fastReflection_MsgTouchDID)
}
func (x fastReflection_MsgTouchDID_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTouchDID
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgTouchDID) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTouchDID
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgTouchDID) Type() protoreflect.MessageType {
return _fastReflection_MsgTouchDID_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgTouchDID) New() protoreflect.Message {
return new(fastReflection_MsgTouchDID)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgTouchDID) Interface() protoreflect.ProtoMessage {
return (*MsgTouchDID)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgTouchDID) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgTouchDID_creator, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgTouchDID_did, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgTouchDID) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgTouchDID.creator":
return x.Creator != ""
case "veranablockchain.diddirectory.MsgTouchDID.did":
return x.Did != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDID does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDID) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgTouchDID.creator":
x.Creator = ""
case "veranablockchain.diddirectory.MsgTouchDID.did":
x.Did = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDID does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgTouchDID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.MsgTouchDID.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.MsgTouchDID.did":
value := x.Did
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDID does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgTouchDID.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.diddirectory.MsgTouchDID.did":
x.Did = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDID does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgTouchDID.creator":
panic(fmt.Errorf("field creator of message veranablockchain.diddirectory.MsgTouchDID is not mutable"))
case "veranablockchain.diddirectory.MsgTouchDID.did":
panic(fmt.Errorf("field did of message veranablockchain.diddirectory.MsgTouchDID is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDID does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgTouchDID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.MsgTouchDID.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.MsgTouchDID.did":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDID"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDID does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgTouchDID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgTouchDID", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgTouchDID) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDID) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgTouchDID) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgTouchDID) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgTouchDID)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgTouchDID)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgTouchDID)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTouchDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTouchDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgTouchDIDResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_diddirectory_tx_proto_init()
md_MsgTouchDIDResponse = File_veranablockchain_diddirectory_tx_proto.Messages().ByName("MsgTouchDIDResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgTouchDIDResponse)(nil)
type fastReflection_MsgTouchDIDResponse MsgTouchDIDResponse
func (x *MsgTouchDIDResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgTouchDIDResponse)(x)
}
func (x *MsgTouchDIDResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgTouchDIDResponse_messageType fastReflection_MsgTouchDIDResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgTouchDIDResponse_messageType{}
type fastReflection_MsgTouchDIDResponse_messageType struct{}
func (x fastReflection_MsgTouchDIDResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgTouchDIDResponse)(nil)
}
func (x fastReflection_MsgTouchDIDResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgTouchDIDResponse)
}
func (x fastReflection_MsgTouchDIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTouchDIDResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgTouchDIDResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgTouchDIDResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgTouchDIDResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgTouchDIDResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgTouchDIDResponse) New() protoreflect.Message {
return new(fastReflection_MsgTouchDIDResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgTouchDIDResponse) Interface() protoreflect.ProtoMessage {
return (*MsgTouchDIDResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgTouchDIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgTouchDIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDIDResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDIDResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDIDResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgTouchDIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDIDResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDIDResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDIDResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgTouchDIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.MsgTouchDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.MsgTouchDIDResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgTouchDIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.MsgTouchDIDResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgTouchDIDResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgTouchDIDResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgTouchDIDResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgTouchDIDResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgTouchDIDResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgTouchDIDResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgTouchDIDResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTouchDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTouchDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/diddirectory/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{1}
}
// MsgAddDID defines the Msg/AddDID request type
type MsgAddDID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Years uint32 `protobuf:"varint,3,opt,name=years,proto3" json:"years,omitempty"`
}
func (x *MsgAddDID) Reset() {
*x = MsgAddDID{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgAddDID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgAddDID) ProtoMessage() {}
// Deprecated: Use MsgAddDID.ProtoReflect.Descriptor instead.
func (*MsgAddDID) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{2}
}
func (x *MsgAddDID) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgAddDID) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *MsgAddDID) GetYears() uint32 {
if x != nil {
return x.Years
}
return 0
}
// MsgAddDIDResponse defines the Msg/AddDID response type
type MsgAddDIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgAddDIDResponse) Reset() {
*x = MsgAddDIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgAddDIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgAddDIDResponse) ProtoMessage() {}
// Deprecated: Use MsgAddDIDResponse.ProtoReflect.Descriptor instead.
func (*MsgAddDIDResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{3}
}
// MsgRenewDID defines the Msg/RenewDID request type
type MsgRenewDID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Years uint32 `protobuf:"varint,3,opt,name=years,proto3" json:"years,omitempty"`
}
func (x *MsgRenewDID) Reset() {
*x = MsgRenewDID{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRenewDID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRenewDID) ProtoMessage() {}
// Deprecated: Use MsgRenewDID.ProtoReflect.Descriptor instead.
func (*MsgRenewDID) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{4}
}
func (x *MsgRenewDID) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgRenewDID) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *MsgRenewDID) GetYears() uint32 {
if x != nil {
return x.Years
}
return 0
}
// MsgRenewDIDResponse defines the Msg/RenewDID response type
type MsgRenewDIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgRenewDIDResponse) Reset() {
*x = MsgRenewDIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRenewDIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRenewDIDResponse) ProtoMessage() {}
// Deprecated: Use MsgRenewDIDResponse.ProtoReflect.Descriptor instead.
func (*MsgRenewDIDResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{5}
}
// MsgRemoveDID defines the Msg/RemoveDID request type
type MsgRemoveDID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
}
func (x *MsgRemoveDID) Reset() {
*x = MsgRemoveDID{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRemoveDID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRemoveDID) ProtoMessage() {}
// Deprecated: Use MsgRemoveDID.ProtoReflect.Descriptor instead.
func (*MsgRemoveDID) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{6}
}
func (x *MsgRemoveDID) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgRemoveDID) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
// MsgRemoveDIDResponse defines the Msg/RemoveDID response type
type MsgRemoveDIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgRemoveDIDResponse) Reset() {
*x = MsgRemoveDIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRemoveDIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRemoveDIDResponse) ProtoMessage() {}
// Deprecated: Use MsgRemoveDIDResponse.ProtoReflect.Descriptor instead.
func (*MsgRemoveDIDResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{7}
}
// MsgTouchDID defines the Msg/TouchDID request type
type MsgTouchDID struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
}
func (x *MsgTouchDID) Reset() {
*x = MsgTouchDID{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgTouchDID) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgTouchDID) ProtoMessage() {}
// Deprecated: Use MsgTouchDID.ProtoReflect.Descriptor instead.
func (*MsgTouchDID) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{8}
}
func (x *MsgTouchDID) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgTouchDID) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
// MsgTouchDIDResponse defines the Msg/TouchDID response type
type MsgTouchDIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgTouchDIDResponse) Reset() {
*x = MsgTouchDIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_tx_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgTouchDIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgTouchDIDResponse) ProtoMessage() {}
// Deprecated: Use MsgTouchDIDResponse.ProtoReflect.Descriptor instead.
func (*MsgTouchDIDResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_tx_proto_rawDescGZIP(), []int{9}
}
var File_veranablockchain_diddirectory_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_diddirectory_tx_proto_rawDesc = []byte{
0x0a, 0x26, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69,
0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61,
0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14,
0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
0x6f, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xd7, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x06,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x42, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x64, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73,
0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x0a, 0x09, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x44,
0x49, 0x44, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63,
0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x79, 0x65, 0x61, 0x72,
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x79, 0x65, 0x61, 0x72, 0x73, 0x3a, 0x0c,
0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x13, 0x0a, 0x11,
0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x44, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x77, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x44, 0x49, 0x44,
0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x79, 0x65, 0x61, 0x72, 0x73, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x79, 0x65, 0x61, 0x72, 0x73, 0x3a, 0x0c, 0x82, 0xe7,
0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73,
0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x44, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x62, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x49,
0x44, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f,
0x76, 0x65, 0x44, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x0a,
0x0b, 0x4d, 0x73, 0x67, 0x54, 0x6f, 0x75, 0x63, 0x68, 0x44, 0x49, 0x44, 0x12, 0x32, 0x0a, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2,
0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64,
0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x54, 0x6f, 0x75, 0x63, 0x68, 0x44, 0x49, 0x44, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb1, 0x04, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12,
0x76, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
0x2e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e,
0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a,
0x36, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e,
0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x06, 0x41, 0x64, 0x64, 0x44, 0x49,
0x44, 0x12, 0x28, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72,
0x79, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x44, 0x49, 0x44, 0x1a, 0x30, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x41,
0x64, 0x64, 0x44, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a,
0x08, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x44, 0x49, 0x44, 0x12, 0x2a, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64,
0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e,
0x65, 0x77, 0x44, 0x49, 0x44, 0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65,
0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x44, 0x49,
0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x09, 0x52, 0x65, 0x6d,
0x6f, 0x76, 0x65, 0x44, 0x49, 0x44, 0x12, 0x2b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
0x44, 0x49, 0x44, 0x1a, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x49, 0x44,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x08, 0x54, 0x6f, 0x75, 0x63,
0x68, 0x44, 0x49, 0x44, 0x12, 0x2a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x6f, 0x75, 0x63, 0x68, 0x44, 0x49, 0x44,
0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x2e, 0x4d, 0x73, 0x67, 0x54, 0x6f, 0x75, 0x63, 0x68, 0x44, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x8d, 0x02, 0x0a, 0x21,
0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72,
0x79, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64,
0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x56, 0x44, 0x58, 0xaa, 0x02,
0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xca, 0x02,
0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x5c, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xe2, 0x02,
0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x5c, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x44,
0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_diddirectory_tx_proto_rawDescOnce sync.Once
file_veranablockchain_diddirectory_tx_proto_rawDescData = file_veranablockchain_diddirectory_tx_proto_rawDesc
)
func file_veranablockchain_diddirectory_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_diddirectory_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_diddirectory_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_diddirectory_tx_proto_rawDescData)
})
return file_veranablockchain_diddirectory_tx_proto_rawDescData
}
var file_veranablockchain_diddirectory_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_veranablockchain_diddirectory_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.diddirectory.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.diddirectory.MsgUpdateParamsResponse
(*MsgAddDID)(nil), // 2: veranablockchain.diddirectory.MsgAddDID
(*MsgAddDIDResponse)(nil), // 3: veranablockchain.diddirectory.MsgAddDIDResponse
(*MsgRenewDID)(nil), // 4: veranablockchain.diddirectory.MsgRenewDID
(*MsgRenewDIDResponse)(nil), // 5: veranablockchain.diddirectory.MsgRenewDIDResponse
(*MsgRemoveDID)(nil), // 6: veranablockchain.diddirectory.MsgRemoveDID
(*MsgRemoveDIDResponse)(nil), // 7: veranablockchain.diddirectory.MsgRemoveDIDResponse
(*MsgTouchDID)(nil), // 8: veranablockchain.diddirectory.MsgTouchDID
(*MsgTouchDIDResponse)(nil), // 9: veranablockchain.diddirectory.MsgTouchDIDResponse
(*Params)(nil), // 10: veranablockchain.diddirectory.Params
}
var file_veranablockchain_diddirectory_tx_proto_depIdxs = []int32{
10, // 0: veranablockchain.diddirectory.MsgUpdateParams.params:type_name -> veranablockchain.diddirectory.Params
0, // 1: veranablockchain.diddirectory.Msg.UpdateParams:input_type -> veranablockchain.diddirectory.MsgUpdateParams
2, // 2: veranablockchain.diddirectory.Msg.AddDID:input_type -> veranablockchain.diddirectory.MsgAddDID
4, // 3: veranablockchain.diddirectory.Msg.RenewDID:input_type -> veranablockchain.diddirectory.MsgRenewDID
6, // 4: veranablockchain.diddirectory.Msg.RemoveDID:input_type -> veranablockchain.diddirectory.MsgRemoveDID
8, // 5: veranablockchain.diddirectory.Msg.TouchDID:input_type -> veranablockchain.diddirectory.MsgTouchDID
1, // 6: veranablockchain.diddirectory.Msg.UpdateParams:output_type -> veranablockchain.diddirectory.MsgUpdateParamsResponse
3, // 7: veranablockchain.diddirectory.Msg.AddDID:output_type -> veranablockchain.diddirectory.MsgAddDIDResponse
5, // 8: veranablockchain.diddirectory.Msg.RenewDID:output_type -> veranablockchain.diddirectory.MsgRenewDIDResponse
7, // 9: veranablockchain.diddirectory.Msg.RemoveDID:output_type -> veranablockchain.diddirectory.MsgRemoveDIDResponse
9, // 10: veranablockchain.diddirectory.Msg.TouchDID:output_type -> veranablockchain.diddirectory.MsgTouchDIDResponse
6, // [6:11] is the sub-list for method output_type
1, // [1:6] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_diddirectory_tx_proto_init() }
func file_veranablockchain_diddirectory_tx_proto_init() {
if File_veranablockchain_diddirectory_tx_proto != nil {
return
}
file_veranablockchain_diddirectory_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_diddirectory_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgAddDID); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgAddDIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRenewDID); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRenewDIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRemoveDID); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRemoveDIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgTouchDID); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_diddirectory_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgTouchDIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_diddirectory_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_diddirectory_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_diddirectory_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_diddirectory_tx_proto_msgTypes,
}.Build()
File_veranablockchain_diddirectory_tx_proto = out.File
file_veranablockchain_diddirectory_tx_proto_rawDesc = nil
file_veranablockchain_diddirectory_tx_proto_goTypes = nil
file_veranablockchain_diddirectory_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/diddirectory/tx.proto
package diddirectory
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.diddirectory.Msg/UpdateParams"
Msg_AddDID_FullMethodName = "/veranablockchain.diddirectory.Msg/AddDID"
Msg_RenewDID_FullMethodName = "/veranablockchain.diddirectory.Msg/RenewDID"
Msg_RemoveDID_FullMethodName = "/veranablockchain.diddirectory.Msg/RemoveDID"
Msg_TouchDID_FullMethodName = "/veranablockchain.diddirectory.Msg/TouchDID"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
AddDID(ctx context.Context, in *MsgAddDID, opts ...grpc.CallOption) (*MsgAddDIDResponse, error)
RenewDID(ctx context.Context, in *MsgRenewDID, opts ...grpc.CallOption) (*MsgRenewDIDResponse, error)
RemoveDID(ctx context.Context, in *MsgRemoveDID, opts ...grpc.CallOption) (*MsgRemoveDIDResponse, error)
TouchDID(ctx context.Context, in *MsgTouchDID, opts ...grpc.CallOption) (*MsgTouchDIDResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) AddDID(ctx context.Context, in *MsgAddDID, opts ...grpc.CallOption) (*MsgAddDIDResponse, error) {
out := new(MsgAddDIDResponse)
err := c.cc.Invoke(ctx, Msg_AddDID_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RenewDID(ctx context.Context, in *MsgRenewDID, opts ...grpc.CallOption) (*MsgRenewDIDResponse, error) {
out := new(MsgRenewDIDResponse)
err := c.cc.Invoke(ctx, Msg_RenewDID_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RemoveDID(ctx context.Context, in *MsgRemoveDID, opts ...grpc.CallOption) (*MsgRemoveDIDResponse, error) {
out := new(MsgRemoveDIDResponse)
err := c.cc.Invoke(ctx, Msg_RemoveDID_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) TouchDID(ctx context.Context, in *MsgTouchDID, opts ...grpc.CallOption) (*MsgTouchDIDResponse, error) {
out := new(MsgTouchDIDResponse)
err := c.cc.Invoke(ctx, Msg_TouchDID_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
AddDID(context.Context, *MsgAddDID) (*MsgAddDIDResponse, error)
RenewDID(context.Context, *MsgRenewDID) (*MsgRenewDIDResponse, error)
RemoveDID(context.Context, *MsgRemoveDID) (*MsgRemoveDIDResponse, error)
TouchDID(context.Context, *MsgTouchDID) (*MsgTouchDIDResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) AddDID(context.Context, *MsgAddDID) (*MsgAddDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddDID not implemented")
}
func (UnimplementedMsgServer) RenewDID(context.Context, *MsgRenewDID) (*MsgRenewDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenewDID not implemented")
}
func (UnimplementedMsgServer) RemoveDID(context.Context, *MsgRemoveDID) (*MsgRemoveDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveDID not implemented")
}
func (UnimplementedMsgServer) TouchDID(context.Context, *MsgTouchDID) (*MsgTouchDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TouchDID not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_AddDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgAddDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AddDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_AddDID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AddDID(ctx, req.(*MsgAddDID))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RenewDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRenewDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RenewDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_RenewDID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RenewDID(ctx, req.(*MsgRenewDID))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RemoveDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRemoveDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RemoveDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_RemoveDID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RemoveDID(ctx, req.(*MsgRemoveDID))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_TouchDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgTouchDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).TouchDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_TouchDID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).TouchDID(ctx, req.(*MsgTouchDID))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.diddirectory.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "AddDID",
Handler: _Msg_AddDID_Handler,
},
{
MethodName: "RenewDID",
Handler: _Msg_RenewDID_Handler,
},
{
MethodName: "RemoveDID",
Handler: _Msg_RemoveDID_Handler,
},
{
MethodName: "TouchDID",
Handler: _Msg_TouchDID_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/diddirectory/tx.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package diddirectory
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_DIDDirectory protoreflect.MessageDescriptor
fd_DIDDirectory_did protoreflect.FieldDescriptor
fd_DIDDirectory_controller protoreflect.FieldDescriptor
fd_DIDDirectory_created protoreflect.FieldDescriptor
fd_DIDDirectory_modified protoreflect.FieldDescriptor
fd_DIDDirectory_exp protoreflect.FieldDescriptor
fd_DIDDirectory_deposit protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_diddirectory_types_proto_init()
md_DIDDirectory = File_veranablockchain_diddirectory_types_proto.Messages().ByName("DIDDirectory")
fd_DIDDirectory_did = md_DIDDirectory.Fields().ByName("did")
fd_DIDDirectory_controller = md_DIDDirectory.Fields().ByName("controller")
fd_DIDDirectory_created = md_DIDDirectory.Fields().ByName("created")
fd_DIDDirectory_modified = md_DIDDirectory.Fields().ByName("modified")
fd_DIDDirectory_exp = md_DIDDirectory.Fields().ByName("exp")
fd_DIDDirectory_deposit = md_DIDDirectory.Fields().ByName("deposit")
}
var _ protoreflect.Message = (*fastReflection_DIDDirectory)(nil)
type fastReflection_DIDDirectory DIDDirectory
func (x *DIDDirectory) ProtoReflect() protoreflect.Message {
return (*fastReflection_DIDDirectory)(x)
}
func (x *DIDDirectory) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_diddirectory_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_DIDDirectory_messageType fastReflection_DIDDirectory_messageType
var _ protoreflect.MessageType = fastReflection_DIDDirectory_messageType{}
type fastReflection_DIDDirectory_messageType struct{}
func (x fastReflection_DIDDirectory_messageType) Zero() protoreflect.Message {
return (*fastReflection_DIDDirectory)(nil)
}
func (x fastReflection_DIDDirectory_messageType) New() protoreflect.Message {
return new(fastReflection_DIDDirectory)
}
func (x fastReflection_DIDDirectory_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_DIDDirectory
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_DIDDirectory) Descriptor() protoreflect.MessageDescriptor {
return md_DIDDirectory
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_DIDDirectory) Type() protoreflect.MessageType {
return _fastReflection_DIDDirectory_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_DIDDirectory) New() protoreflect.Message {
return new(fastReflection_DIDDirectory)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_DIDDirectory) Interface() protoreflect.ProtoMessage {
return (*DIDDirectory)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_DIDDirectory) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_DIDDirectory_did, value) {
return
}
}
if x.Controller != "" {
value := protoreflect.ValueOfString(x.Controller)
if !f(fd_DIDDirectory_controller, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_DIDDirectory_created, value) {
return
}
}
if x.Modified != nil {
value := protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
if !f(fd_DIDDirectory_modified, value) {
return
}
}
if x.Exp != nil {
value := protoreflect.ValueOfMessage(x.Exp.ProtoReflect())
if !f(fd_DIDDirectory_exp, value) {
return
}
}
if x.Deposit != int64(0) {
value := protoreflect.ValueOfInt64(x.Deposit)
if !f(fd_DIDDirectory_deposit, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_DIDDirectory) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.diddirectory.DIDDirectory.did":
return x.Did != ""
case "veranablockchain.diddirectory.DIDDirectory.controller":
return x.Controller != ""
case "veranablockchain.diddirectory.DIDDirectory.created":
return x.Created != nil
case "veranablockchain.diddirectory.DIDDirectory.modified":
return x.Modified != nil
case "veranablockchain.diddirectory.DIDDirectory.exp":
return x.Exp != nil
case "veranablockchain.diddirectory.DIDDirectory.deposit":
return x.Deposit != int64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.DIDDirectory"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.DIDDirectory does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_DIDDirectory) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.diddirectory.DIDDirectory.did":
x.Did = ""
case "veranablockchain.diddirectory.DIDDirectory.controller":
x.Controller = ""
case "veranablockchain.diddirectory.DIDDirectory.created":
x.Created = nil
case "veranablockchain.diddirectory.DIDDirectory.modified":
x.Modified = nil
case "veranablockchain.diddirectory.DIDDirectory.exp":
x.Exp = nil
case "veranablockchain.diddirectory.DIDDirectory.deposit":
x.Deposit = int64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.DIDDirectory"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.DIDDirectory does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_DIDDirectory) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.diddirectory.DIDDirectory.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.DIDDirectory.controller":
value := x.Controller
return protoreflect.ValueOfString(value)
case "veranablockchain.diddirectory.DIDDirectory.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.modified":
value := x.Modified
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.exp":
value := x.Exp
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.deposit":
value := x.Deposit
return protoreflect.ValueOfInt64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.DIDDirectory"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.DIDDirectory does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_DIDDirectory) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.diddirectory.DIDDirectory.did":
x.Did = value.Interface().(string)
case "veranablockchain.diddirectory.DIDDirectory.controller":
x.Controller = value.Interface().(string)
case "veranablockchain.diddirectory.DIDDirectory.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.diddirectory.DIDDirectory.modified":
x.Modified = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.diddirectory.DIDDirectory.exp":
x.Exp = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.diddirectory.DIDDirectory.deposit":
x.Deposit = value.Int()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.DIDDirectory"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.DIDDirectory does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_DIDDirectory) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.DIDDirectory.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.modified":
if x.Modified == nil {
x.Modified = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.exp":
if x.Exp == nil {
x.Exp = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Exp.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.did":
panic(fmt.Errorf("field did of message veranablockchain.diddirectory.DIDDirectory is not mutable"))
case "veranablockchain.diddirectory.DIDDirectory.controller":
panic(fmt.Errorf("field controller of message veranablockchain.diddirectory.DIDDirectory is not mutable"))
case "veranablockchain.diddirectory.DIDDirectory.deposit":
panic(fmt.Errorf("field deposit of message veranablockchain.diddirectory.DIDDirectory is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.DIDDirectory"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.DIDDirectory does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_DIDDirectory) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.diddirectory.DIDDirectory.did":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.DIDDirectory.controller":
return protoreflect.ValueOfString("")
case "veranablockchain.diddirectory.DIDDirectory.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.modified":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.exp":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.diddirectory.DIDDirectory.deposit":
return protoreflect.ValueOfInt64(int64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.diddirectory.DIDDirectory"))
}
panic(fmt.Errorf("message veranablockchain.diddirectory.DIDDirectory does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_DIDDirectory) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.diddirectory.DIDDirectory", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_DIDDirectory) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_DIDDirectory) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_DIDDirectory) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_DIDDirectory) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*DIDDirectory)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Controller)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Modified != nil {
l = options.Size(x.Modified)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Exp != nil {
l = options.Size(x.Exp)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Deposit != 0 {
n += 1 + runtime.Sov(uint64(x.Deposit))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*DIDDirectory)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Deposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Deposit))
i--
dAtA[i] = 0x30
}
if x.Exp != nil {
encoded, err := options.Marshal(x.Exp)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if x.Modified != nil {
encoded, err := options.Marshal(x.Modified)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if len(x.Controller) > 0 {
i -= len(x.Controller)
copy(dAtA[i:], x.Controller)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
i--
dAtA[i] = 0x12
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*DIDDirectory)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DIDDirectory: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DIDDirectory: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Modified == nil {
x.Modified = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Modified); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Exp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Exp == nil {
x.Exp = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Exp); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
x.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/diddirectory/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Core DIDDirectory type
type DIDDirectory struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
Modified *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=modified,proto3" json:"modified,omitempty"`
Exp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=exp,proto3" json:"exp,omitempty"`
Deposit int64 `protobuf:"varint,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
}
func (x *DIDDirectory) Reset() {
*x = DIDDirectory{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_diddirectory_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DIDDirectory) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DIDDirectory) ProtoMessage() {}
// Deprecated: Use DIDDirectory.ProtoReflect.Descriptor instead.
func (*DIDDirectory) Descriptor() ([]byte, []int) {
return file_veranablockchain_diddirectory_types_proto_rawDescGZIP(), []int{0}
}
func (x *DIDDirectory) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *DIDDirectory) GetController() string {
if x != nil {
return x.Controller
}
return ""
}
func (x *DIDDirectory) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *DIDDirectory) GetModified() *timestamppb.Timestamp {
if x != nil {
return x.Modified
}
return nil
}
func (x *DIDDirectory) GetExp() *timestamppb.Timestamp {
if x != nil {
return x.Exp
}
return nil
}
func (x *DIDDirectory) GetDeposit() int64 {
if x != nil {
return x.Deposit
}
return 0
}
var File_veranablockchain_diddirectory_types_proto protoreflect.FileDescriptor
var file_veranablockchain_diddirectory_types_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69,
0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xae, 0x02, 0x0a, 0x0c, 0x44, 0x49, 0x44, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64,
0x69, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90,
0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x08,
0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00,
0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x36,
0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f,
0x01, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x42, 0x90, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x64, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
0xa2, 0x02, 0x03, 0x56, 0x44, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72,
0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x44, 0x69, 0x64, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
0x6f, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_diddirectory_types_proto_rawDescOnce sync.Once
file_veranablockchain_diddirectory_types_proto_rawDescData = file_veranablockchain_diddirectory_types_proto_rawDesc
)
func file_veranablockchain_diddirectory_types_proto_rawDescGZIP() []byte {
file_veranablockchain_diddirectory_types_proto_rawDescOnce.Do(func() {
file_veranablockchain_diddirectory_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_diddirectory_types_proto_rawDescData)
})
return file_veranablockchain_diddirectory_types_proto_rawDescData
}
var file_veranablockchain_diddirectory_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_diddirectory_types_proto_goTypes = []interface{}{
(*DIDDirectory)(nil), // 0: veranablockchain.diddirectory.DIDDirectory
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_veranablockchain_diddirectory_types_proto_depIdxs = []int32{
1, // 0: veranablockchain.diddirectory.DIDDirectory.created:type_name -> google.protobuf.Timestamp
1, // 1: veranablockchain.diddirectory.DIDDirectory.modified:type_name -> google.protobuf.Timestamp
1, // 2: veranablockchain.diddirectory.DIDDirectory.exp:type_name -> google.protobuf.Timestamp
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_veranablockchain_diddirectory_types_proto_init() }
func file_veranablockchain_diddirectory_types_proto_init() {
if File_veranablockchain_diddirectory_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_diddirectory_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DIDDirectory); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_diddirectory_types_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_diddirectory_types_proto_goTypes,
DependencyIndexes: file_veranablockchain_diddirectory_types_proto_depIdxs,
MessageInfos: file_veranablockchain_diddirectory_types_proto_msgTypes,
}.Build()
File_veranablockchain_diddirectory_types_proto = out.File
file_veranablockchain_diddirectory_types_proto_rawDesc = nil
file_veranablockchain_diddirectory_types_proto_goTypes = nil
file_veranablockchain_diddirectory_types_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package permission
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
type _GenesisState_2_list struct {
list *[]*Permission
}
func (x *_GenesisState_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
v := new(Permission)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
v := new(Permission)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_GenesisState_3_list)(nil)
type _GenesisState_3_list struct {
list *[]*PermissionSession
}
func (x *_GenesisState_3_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_3_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*PermissionSession)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_3_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*PermissionSession)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value {
v := new(PermissionSession)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_3_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_3_list) NewElement() protoreflect.Value {
v := new(PermissionSession)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_3_list) IsValid() bool {
return x.list != nil
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_permissions protoreflect.FieldDescriptor
fd_GenesisState_permission_sessions protoreflect.FieldDescriptor
fd_GenesisState_next_permission_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_genesis_proto_init()
md_GenesisState = File_veranablockchain_permission_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
fd_GenesisState_permissions = md_GenesisState.Fields().ByName("permissions")
fd_GenesisState_permission_sessions = md_GenesisState.Fields().ByName("permission_sessions")
fd_GenesisState_next_permission_id = md_GenesisState.Fields().ByName("next_permission_id")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
if len(x.Permissions) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.Permissions})
if !f(fd_GenesisState_permissions, value) {
return
}
}
if len(x.PermissionSessions) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.PermissionSessions})
if !f(fd_GenesisState_permission_sessions, value) {
return
}
}
if x.NextPermissionId != uint64(0) {
value := protoreflect.ValueOfUint64(x.NextPermissionId)
if !f(fd_GenesisState_next_permission_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.GenesisState.params":
return x.Params != nil
case "veranablockchain.permission.GenesisState.permissions":
return len(x.Permissions) != 0
case "veranablockchain.permission.GenesisState.permission_sessions":
return len(x.PermissionSessions) != 0
case "veranablockchain.permission.GenesisState.next_permission_id":
return x.NextPermissionId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.permission.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.GenesisState.params":
x.Params = nil
case "veranablockchain.permission.GenesisState.permissions":
x.Permissions = nil
case "veranablockchain.permission.GenesisState.permission_sessions":
x.PermissionSessions = nil
case "veranablockchain.permission.GenesisState.next_permission_id":
x.NextPermissionId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.permission.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.GenesisState.permissions":
if len(x.Permissions) == 0 {
return protoreflect.ValueOfList(&_GenesisState_2_list{})
}
listValue := &_GenesisState_2_list{list: &x.Permissions}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.permission.GenesisState.permission_sessions":
if len(x.PermissionSessions) == 0 {
return protoreflect.ValueOfList(&_GenesisState_3_list{})
}
listValue := &_GenesisState_3_list{list: &x.PermissionSessions}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.permission.GenesisState.next_permission_id":
value := x.NextPermissionId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.permission.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
case "veranablockchain.permission.GenesisState.permissions":
lv := value.List()
clv := lv.(*_GenesisState_2_list)
x.Permissions = *clv.list
case "veranablockchain.permission.GenesisState.permission_sessions":
lv := value.List()
clv := lv.(*_GenesisState_3_list)
x.PermissionSessions = *clv.list
case "veranablockchain.permission.GenesisState.next_permission_id":
x.NextPermissionId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.permission.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.permission.GenesisState.permissions":
if x.Permissions == nil {
x.Permissions = []*Permission{}
}
value := &_GenesisState_2_list{list: &x.Permissions}
return protoreflect.ValueOfList(value)
case "veranablockchain.permission.GenesisState.permission_sessions":
if x.PermissionSessions == nil {
x.PermissionSessions = []*PermissionSession{}
}
value := &_GenesisState_3_list{list: &x.PermissionSessions}
return protoreflect.ValueOfList(value)
case "veranablockchain.permission.GenesisState.next_permission_id":
panic(fmt.Errorf("field next_permission_id of message veranablockchain.permission.GenesisState is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.permission.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.GenesisState.permissions":
list := []*Permission{}
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
case "veranablockchain.permission.GenesisState.permission_sessions":
list := []*PermissionSession{}
return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
case "veranablockchain.permission.GenesisState.next_permission_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.permission.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.Permissions) > 0 {
for _, e := range x.Permissions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.PermissionSessions) > 0 {
for _, e := range x.PermissionSessions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.NextPermissionId != 0 {
n += 1 + runtime.Sov(uint64(x.NextPermissionId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.NextPermissionId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.NextPermissionId))
i--
dAtA[i] = 0x20
}
if len(x.PermissionSessions) > 0 {
for iNdEx := len(x.PermissionSessions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.PermissionSessions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
}
if len(x.Permissions) > 0 {
for iNdEx := len(x.Permissions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Permissions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Permissions = append(x.Permissions, &Permission{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions[len(x.Permissions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermissionSessions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.PermissionSessions = append(x.PermissionSessions, &PermissionSession{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PermissionSessions[len(x.PermissionSessions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextPermissionId", wireType)
}
x.NextPermissionId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.NextPermissionId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/permission/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the permission module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// permissions is a list of all Permission objects
Permissions []*Permission `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
// permission_sessions is a list of all PermissionSession objects
PermissionSessions []*PermissionSession `protobuf:"bytes,3,rep,name=permission_sessions,json=permissionSessions,proto3" json:"permission_sessions,omitempty"`
// next_permission_id is the next auto-increment ID to be assigned to a new permission
NextPermissionId uint64 `protobuf:"varint,4,opt,name=next_permission_id,json=nextPermissionId,proto3" json:"next_permission_id,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
func (x *GenesisState) GetPermissions() []*Permission {
if x != nil {
return x.Permissions
}
return nil
}
func (x *GenesisState) GetPermissionSessions() []*PermissionSession {
if x != nil {
return x.PermissionSessions
}
return nil
}
func (x *GenesisState) GetNextPermissionId() uint64 {
if x != nil {
return x.NextPermissionId
}
return 0
}
var File_veranablockchain_permission_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_permission_genesis_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x65,
0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f,
0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67,
0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x28, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x02, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00,
0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4f, 0x0a,
0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x00, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x65,
0x0a, 0x13, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x00, 0x52, 0x12, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
0x04, 0x52, 0x10, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x49, 0x64, 0x42, 0x86, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0xa2, 0x02, 0x03, 0x56, 0x50, 0x58, 0xaa, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x27, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x3a, 0x3a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_permission_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_permission_genesis_proto_rawDescData = file_veranablockchain_permission_genesis_proto_rawDesc
)
func file_veranablockchain_permission_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_permission_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_permission_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_permission_genesis_proto_rawDescData)
})
return file_veranablockchain_permission_genesis_proto_rawDescData
}
var file_veranablockchain_permission_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_permission_genesis_proto_goTypes = []interface{}{
(*GenesisState)(nil), // 0: veranablockchain.permission.GenesisState
(*Params)(nil), // 1: veranablockchain.permission.Params
(*Permission)(nil), // 2: veranablockchain.permission.Permission
(*PermissionSession)(nil), // 3: veranablockchain.permission.PermissionSession
}
var file_veranablockchain_permission_genesis_proto_depIdxs = []int32{
1, // 0: veranablockchain.permission.GenesisState.params:type_name -> veranablockchain.permission.Params
2, // 1: veranablockchain.permission.GenesisState.permissions:type_name -> veranablockchain.permission.Permission
3, // 2: veranablockchain.permission.GenesisState.permission_sessions:type_name -> veranablockchain.permission.PermissionSession
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_veranablockchain_permission_genesis_proto_init() }
func file_veranablockchain_permission_genesis_proto_init() {
if File_veranablockchain_permission_genesis_proto != nil {
return
}
file_veranablockchain_permission_params_proto_init()
file_veranablockchain_permission_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_permission_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_permission_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_permission_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_permission_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_permission_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_permission_genesis_proto = out.File
file_veranablockchain_permission_genesis_proto_rawDesc = nil
file_veranablockchain_permission_genesis_proto_goTypes = nil
file_veranablockchain_permission_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_module_module_proto_init()
md_Module = File_veranablockchain_permission_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.permission.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.permission.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.permission.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.permission.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.permission.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.permission.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.permission.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/permission/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_permission_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_permission_module_module_proto_rawDesc = []byte{
0x0a, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f,
0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x22, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x6d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70,
0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a,
0x3d, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x37, 0x0a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2f, 0x78, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xb0,
0x02, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x50, 0x4d, 0xaa,
0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f,
0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x2e, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x24, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_permission_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_permission_module_module_proto_rawDescData = file_veranablockchain_permission_module_module_proto_rawDesc
)
func file_veranablockchain_permission_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_permission_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_permission_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_permission_module_module_proto_rawDescData)
})
return file_veranablockchain_permission_module_module_proto_rawDescData
}
var file_veranablockchain_permission_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_permission_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.permission.module.Module
}
var file_veranablockchain_permission_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_permission_module_module_proto_init() }
func file_veranablockchain_permission_module_module_proto_init() {
if File_veranablockchain_permission_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_permission_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_permission_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_permission_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_permission_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_permission_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_permission_module_module_proto = out.File
file_veranablockchain_permission_module_module_proto_rawDesc = nil
file_veranablockchain_permission_module_module_proto_goTypes = nil
file_veranablockchain_permission_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package permission
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Params protoreflect.MessageDescriptor
fd_Params_validation_term_requested_timeout_days protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_params_proto_init()
md_Params = File_veranablockchain_permission_params_proto.Messages().ByName("Params")
fd_Params_validation_term_requested_timeout_days = md_Params.Fields().ByName("validation_term_requested_timeout_days")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ValidationTermRequestedTimeoutDays != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationTermRequestedTimeoutDays)
if !f(fd_Params_validation_term_requested_timeout_days, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.Params.validation_term_requested_timeout_days":
return x.ValidationTermRequestedTimeoutDays != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Params"))
}
panic(fmt.Errorf("message veranablockchain.permission.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.Params.validation_term_requested_timeout_days":
x.ValidationTermRequestedTimeoutDays = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Params"))
}
panic(fmt.Errorf("message veranablockchain.permission.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.Params.validation_term_requested_timeout_days":
value := x.ValidationTermRequestedTimeoutDays
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Params"))
}
panic(fmt.Errorf("message veranablockchain.permission.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.Params.validation_term_requested_timeout_days":
x.ValidationTermRequestedTimeoutDays = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Params"))
}
panic(fmt.Errorf("message veranablockchain.permission.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.Params.validation_term_requested_timeout_days":
panic(fmt.Errorf("field validation_term_requested_timeout_days of message veranablockchain.permission.Params is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Params"))
}
panic(fmt.Errorf("message veranablockchain.permission.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.Params.validation_term_requested_timeout_days":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Params"))
}
panic(fmt.Errorf("message veranablockchain.permission.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.ValidationTermRequestedTimeoutDays != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationTermRequestedTimeoutDays))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ValidationTermRequestedTimeoutDays != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationTermRequestedTimeoutDays))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationTermRequestedTimeoutDays", wireType)
}
x.ValidationTermRequestedTimeoutDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationTermRequestedTimeoutDays |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/permission/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ValidationTermRequestedTimeoutDays uint64 `protobuf:"varint,1,opt,name=validation_term_requested_timeout_days,json=validationTermRequestedTimeoutDays,proto3" json:"validation_term_requested_timeout_days,omitempty"`
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_params_proto_rawDescGZIP(), []int{0}
}
func (x *Params) GetValidationTermRequestedTimeoutDays() uint64 {
if x != nil {
return x.ValidationTermRequestedTimeoutDays
}
return 0
}
var File_veranablockchain_permission_params_proto protoreflect.FileDescriptor
var file_veranablockchain_permission_params_proto_rawDesc = []byte{
0x0a, 0x28, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61,
0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x8b, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x52, 0x0a, 0x26, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x72,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x22, 0x76, 0x61, 0x6c,
0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x44, 0x61, 0x79, 0x73, 0x3a,
0x2d, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x85,
0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x50,
0x58, 0xaa, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca,
0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x27,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_permission_params_proto_rawDescOnce sync.Once
file_veranablockchain_permission_params_proto_rawDescData = file_veranablockchain_permission_params_proto_rawDesc
)
func file_veranablockchain_permission_params_proto_rawDescGZIP() []byte {
file_veranablockchain_permission_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_permission_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_permission_params_proto_rawDescData)
})
return file_veranablockchain_permission_params_proto_rawDescData
}
var file_veranablockchain_permission_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_permission_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.permission.Params
}
var file_veranablockchain_permission_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_permission_params_proto_init() }
func file_veranablockchain_permission_params_proto_init() {
if File_veranablockchain_permission_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_permission_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_permission_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_permission_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_permission_params_proto_depIdxs,
MessageInfos: file_veranablockchain_permission_params_proto_msgTypes,
}.Build()
File_veranablockchain_permission_params_proto = out.File
file_veranablockchain_permission_params_proto_rawDesc = nil
file_veranablockchain_permission_params_proto_goTypes = nil
file_veranablockchain_permission_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package permission
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryListPermissionsRequest protoreflect.MessageDescriptor
fd_QueryListPermissionsRequest_modified_after protoreflect.FieldDescriptor
fd_QueryListPermissionsRequest_response_max_size protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryListPermissionsRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryListPermissionsRequest")
fd_QueryListPermissionsRequest_modified_after = md_QueryListPermissionsRequest.Fields().ByName("modified_after")
fd_QueryListPermissionsRequest_response_max_size = md_QueryListPermissionsRequest.Fields().ByName("response_max_size")
}
var _ protoreflect.Message = (*fastReflection_QueryListPermissionsRequest)(nil)
type fastReflection_QueryListPermissionsRequest QueryListPermissionsRequest
func (x *QueryListPermissionsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListPermissionsRequest)(x)
}
func (x *QueryListPermissionsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListPermissionsRequest_messageType fastReflection_QueryListPermissionsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryListPermissionsRequest_messageType{}
type fastReflection_QueryListPermissionsRequest_messageType struct{}
func (x fastReflection_QueryListPermissionsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListPermissionsRequest)(nil)
}
func (x fastReflection_QueryListPermissionsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionsRequest)
}
func (x fastReflection_QueryListPermissionsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListPermissionsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListPermissionsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryListPermissionsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListPermissionsRequest) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListPermissionsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryListPermissionsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListPermissionsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ModifiedAfter != nil {
value := protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
if !f(fd_QueryListPermissionsRequest_modified_after, value) {
return
}
}
if x.ResponseMaxSize != uint32(0) {
value := protoreflect.ValueOfUint32(x.ResponseMaxSize)
if !f(fd_QueryListPermissionsRequest_response_max_size, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListPermissionsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsRequest.modified_after":
return x.ModifiedAfter != nil
case "veranablockchain.permission.QueryListPermissionsRequest.response_max_size":
return x.ResponseMaxSize != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsRequest.modified_after":
x.ModifiedAfter = nil
case "veranablockchain.permission.QueryListPermissionsRequest.response_max_size":
x.ResponseMaxSize = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListPermissionsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryListPermissionsRequest.modified_after":
value := x.ModifiedAfter
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.QueryListPermissionsRequest.response_max_size":
value := x.ResponseMaxSize
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsRequest.modified_after":
x.ModifiedAfter = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.QueryListPermissionsRequest.response_max_size":
x.ResponseMaxSize = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsRequest.modified_after":
if x.ModifiedAfter == nil {
x.ModifiedAfter = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
case "veranablockchain.permission.QueryListPermissionsRequest.response_max_size":
panic(fmt.Errorf("field response_max_size of message veranablockchain.permission.QueryListPermissionsRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListPermissionsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsRequest.modified_after":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.QueryListPermissionsRequest.response_max_size":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListPermissionsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryListPermissionsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListPermissionsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListPermissionsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListPermissionsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListPermissionsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.ModifiedAfter != nil {
l = options.Size(x.ModifiedAfter)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ResponseMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.ResponseMaxSize))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ResponseMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ResponseMaxSize))
i--
dAtA[i] = 0x10
}
if x.ModifiedAfter != nil {
encoded, err := options.Marshal(x.ModifiedAfter)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.ModifiedAfter == nil {
x.ModifiedAfter = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ModifiedAfter); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
x.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryListPermissionsResponse_1_list)(nil)
type _QueryListPermissionsResponse_1_list struct {
list *[]*Permission
}
func (x *_QueryListPermissionsResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryListPermissionsResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryListPermissionsResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
(*x.list)[i] = concreteValue
}
func (x *_QueryListPermissionsResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryListPermissionsResponse_1_list) AppendMutable() protoreflect.Value {
v := new(Permission)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListPermissionsResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryListPermissionsResponse_1_list) NewElement() protoreflect.Value {
v := new(Permission)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListPermissionsResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryListPermissionsResponse protoreflect.MessageDescriptor
fd_QueryListPermissionsResponse_permissions protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryListPermissionsResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryListPermissionsResponse")
fd_QueryListPermissionsResponse_permissions = md_QueryListPermissionsResponse.Fields().ByName("permissions")
}
var _ protoreflect.Message = (*fastReflection_QueryListPermissionsResponse)(nil)
type fastReflection_QueryListPermissionsResponse QueryListPermissionsResponse
func (x *QueryListPermissionsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListPermissionsResponse)(x)
}
func (x *QueryListPermissionsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListPermissionsResponse_messageType fastReflection_QueryListPermissionsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryListPermissionsResponse_messageType{}
type fastReflection_QueryListPermissionsResponse_messageType struct{}
func (x fastReflection_QueryListPermissionsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListPermissionsResponse)(nil)
}
func (x fastReflection_QueryListPermissionsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionsResponse)
}
func (x fastReflection_QueryListPermissionsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListPermissionsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListPermissionsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryListPermissionsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListPermissionsResponse) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListPermissionsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryListPermissionsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListPermissionsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Permissions) != 0 {
value := protoreflect.ValueOfList(&_QueryListPermissionsResponse_1_list{list: &x.Permissions})
if !f(fd_QueryListPermissionsResponse_permissions, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListPermissionsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsResponse.permissions":
return len(x.Permissions) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsResponse.permissions":
x.Permissions = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListPermissionsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryListPermissionsResponse.permissions":
if len(x.Permissions) == 0 {
return protoreflect.ValueOfList(&_QueryListPermissionsResponse_1_list{})
}
listValue := &_QueryListPermissionsResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsResponse.permissions":
lv := value.List()
clv := lv.(*_QueryListPermissionsResponse_1_list)
x.Permissions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsResponse.permissions":
if x.Permissions == nil {
x.Permissions = []*Permission{}
}
value := &_QueryListPermissionsResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListPermissionsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionsResponse.permissions":
list := []*Permission{}
return protoreflect.ValueOfList(&_QueryListPermissionsResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListPermissionsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryListPermissionsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListPermissionsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListPermissionsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListPermissionsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListPermissionsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Permissions) > 0 {
for _, e := range x.Permissions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Permissions) > 0 {
for iNdEx := len(x.Permissions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Permissions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Permissions = append(x.Permissions, &Permission{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions[len(x.Permissions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetPermissionRequest protoreflect.MessageDescriptor
fd_QueryGetPermissionRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryGetPermissionRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryGetPermissionRequest")
fd_QueryGetPermissionRequest_id = md_QueryGetPermissionRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_QueryGetPermissionRequest)(nil)
type fastReflection_QueryGetPermissionRequest QueryGetPermissionRequest
func (x *QueryGetPermissionRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetPermissionRequest)(x)
}
func (x *QueryGetPermissionRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetPermissionRequest_messageType fastReflection_QueryGetPermissionRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetPermissionRequest_messageType{}
type fastReflection_QueryGetPermissionRequest_messageType struct{}
func (x fastReflection_QueryGetPermissionRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetPermissionRequest)(nil)
}
func (x fastReflection_QueryGetPermissionRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionRequest)
}
func (x fastReflection_QueryGetPermissionRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetPermissionRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetPermissionRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetPermissionRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetPermissionRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetPermissionRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetPermissionRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetPermissionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_QueryGetPermissionRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetPermissionRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionRequest.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionRequest.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetPermissionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryGetPermissionRequest.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionRequest.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.QueryGetPermissionRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetPermissionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionRequest.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetPermissionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryGetPermissionRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetPermissionRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetPermissionRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetPermissionRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetPermissionRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetPermissionResponse protoreflect.MessageDescriptor
fd_QueryGetPermissionResponse_permission protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryGetPermissionResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryGetPermissionResponse")
fd_QueryGetPermissionResponse_permission = md_QueryGetPermissionResponse.Fields().ByName("permission")
}
var _ protoreflect.Message = (*fastReflection_QueryGetPermissionResponse)(nil)
type fastReflection_QueryGetPermissionResponse QueryGetPermissionResponse
func (x *QueryGetPermissionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetPermissionResponse)(x)
}
func (x *QueryGetPermissionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetPermissionResponse_messageType fastReflection_QueryGetPermissionResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetPermissionResponse_messageType{}
type fastReflection_QueryGetPermissionResponse_messageType struct{}
func (x fastReflection_QueryGetPermissionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetPermissionResponse)(nil)
}
func (x fastReflection_QueryGetPermissionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionResponse)
}
func (x fastReflection_QueryGetPermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetPermissionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetPermissionResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetPermissionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetPermissionResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetPermissionResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetPermissionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetPermissionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Permission != nil {
value := protoreflect.ValueOfMessage(x.Permission.ProtoReflect())
if !f(fd_QueryGetPermissionResponse_permission, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetPermissionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionResponse.permission":
return x.Permission != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionResponse.permission":
x.Permission = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetPermissionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryGetPermissionResponse.permission":
value := x.Permission
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionResponse.permission":
x.Permission = value.Message().Interface().(*Permission)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionResponse.permission":
if x.Permission == nil {
x.Permission = new(Permission)
}
return protoreflect.ValueOfMessage(x.Permission.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetPermissionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionResponse.permission":
m := new(Permission)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetPermissionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryGetPermissionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetPermissionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetPermissionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetPermissionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetPermissionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Permission != nil {
l = options.Size(x.Permission)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Permission != nil {
encoded, err := options.Marshal(x.Permission)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Permission == nil {
x.Permission = &Permission{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permission); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetPermissionSessionRequest protoreflect.MessageDescriptor
fd_QueryGetPermissionSessionRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryGetPermissionSessionRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryGetPermissionSessionRequest")
fd_QueryGetPermissionSessionRequest_id = md_QueryGetPermissionSessionRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_QueryGetPermissionSessionRequest)(nil)
type fastReflection_QueryGetPermissionSessionRequest QueryGetPermissionSessionRequest
func (x *QueryGetPermissionSessionRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetPermissionSessionRequest)(x)
}
func (x *QueryGetPermissionSessionRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetPermissionSessionRequest_messageType fastReflection_QueryGetPermissionSessionRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetPermissionSessionRequest_messageType{}
type fastReflection_QueryGetPermissionSessionRequest_messageType struct{}
func (x fastReflection_QueryGetPermissionSessionRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetPermissionSessionRequest)(nil)
}
func (x fastReflection_QueryGetPermissionSessionRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionSessionRequest)
}
func (x fastReflection_QueryGetPermissionSessionRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionSessionRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetPermissionSessionRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionSessionRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetPermissionSessionRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetPermissionSessionRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetPermissionSessionRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionSessionRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetPermissionSessionRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetPermissionSessionRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetPermissionSessionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_QueryGetPermissionSessionRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetPermissionSessionRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionRequest.id":
return x.Id != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionRequest.id":
x.Id = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetPermissionSessionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionRequest.id":
value := x.Id
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionRequest.id":
x.Id = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.QueryGetPermissionSessionRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetPermissionSessionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionRequest.id":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetPermissionSessionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryGetPermissionSessionRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetPermissionSessionRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetPermissionSessionRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetPermissionSessionRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetPermissionSessionRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionSessionRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionSessionRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionSessionRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionSessionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetPermissionSessionResponse protoreflect.MessageDescriptor
fd_QueryGetPermissionSessionResponse_session protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryGetPermissionSessionResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryGetPermissionSessionResponse")
fd_QueryGetPermissionSessionResponse_session = md_QueryGetPermissionSessionResponse.Fields().ByName("session")
}
var _ protoreflect.Message = (*fastReflection_QueryGetPermissionSessionResponse)(nil)
type fastReflection_QueryGetPermissionSessionResponse QueryGetPermissionSessionResponse
func (x *QueryGetPermissionSessionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetPermissionSessionResponse)(x)
}
func (x *QueryGetPermissionSessionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetPermissionSessionResponse_messageType fastReflection_QueryGetPermissionSessionResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetPermissionSessionResponse_messageType{}
type fastReflection_QueryGetPermissionSessionResponse_messageType struct{}
func (x fastReflection_QueryGetPermissionSessionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetPermissionSessionResponse)(nil)
}
func (x fastReflection_QueryGetPermissionSessionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionSessionResponse)
}
func (x fastReflection_QueryGetPermissionSessionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionSessionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetPermissionSessionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetPermissionSessionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetPermissionSessionResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetPermissionSessionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetPermissionSessionResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetPermissionSessionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetPermissionSessionResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetPermissionSessionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetPermissionSessionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Session != nil {
value := protoreflect.ValueOfMessage(x.Session.ProtoReflect())
if !f(fd_QueryGetPermissionSessionResponse_session, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetPermissionSessionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionResponse.session":
return x.Session != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionResponse.session":
x.Session = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetPermissionSessionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionResponse.session":
value := x.Session
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionResponse.session":
x.Session = value.Message().Interface().(*PermissionSession)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionResponse.session":
if x.Session == nil {
x.Session = new(PermissionSession)
}
return protoreflect.ValueOfMessage(x.Session.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetPermissionSessionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryGetPermissionSessionResponse.session":
m := new(PermissionSession)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryGetPermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryGetPermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetPermissionSessionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryGetPermissionSessionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetPermissionSessionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetPermissionSessionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetPermissionSessionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetPermissionSessionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetPermissionSessionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Session != nil {
l = options.Size(x.Session)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionSessionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Session != nil {
encoded, err := options.Marshal(x.Session)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetPermissionSessionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionSessionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPermissionSessionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Session", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Session == nil {
x.Session = &PermissionSession{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Session); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryListPermissionSessionsRequest protoreflect.MessageDescriptor
fd_QueryListPermissionSessionsRequest_modified_after protoreflect.FieldDescriptor
fd_QueryListPermissionSessionsRequest_response_max_size protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryListPermissionSessionsRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryListPermissionSessionsRequest")
fd_QueryListPermissionSessionsRequest_modified_after = md_QueryListPermissionSessionsRequest.Fields().ByName("modified_after")
fd_QueryListPermissionSessionsRequest_response_max_size = md_QueryListPermissionSessionsRequest.Fields().ByName("response_max_size")
}
var _ protoreflect.Message = (*fastReflection_QueryListPermissionSessionsRequest)(nil)
type fastReflection_QueryListPermissionSessionsRequest QueryListPermissionSessionsRequest
func (x *QueryListPermissionSessionsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListPermissionSessionsRequest)(x)
}
func (x *QueryListPermissionSessionsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListPermissionSessionsRequest_messageType fastReflection_QueryListPermissionSessionsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryListPermissionSessionsRequest_messageType{}
type fastReflection_QueryListPermissionSessionsRequest_messageType struct{}
func (x fastReflection_QueryListPermissionSessionsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListPermissionSessionsRequest)(nil)
}
func (x fastReflection_QueryListPermissionSessionsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionSessionsRequest)
}
func (x fastReflection_QueryListPermissionSessionsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionSessionsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListPermissionSessionsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionSessionsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListPermissionSessionsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryListPermissionSessionsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListPermissionSessionsRequest) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionSessionsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListPermissionSessionsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryListPermissionSessionsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListPermissionSessionsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ModifiedAfter != nil {
value := protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
if !f(fd_QueryListPermissionSessionsRequest_modified_after, value) {
return
}
}
if x.ResponseMaxSize != uint32(0) {
value := protoreflect.ValueOfUint32(x.ResponseMaxSize)
if !f(fd_QueryListPermissionSessionsRequest_response_max_size, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListPermissionSessionsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after":
return x.ModifiedAfter != nil
case "veranablockchain.permission.QueryListPermissionSessionsRequest.response_max_size":
return x.ResponseMaxSize != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after":
x.ModifiedAfter = nil
case "veranablockchain.permission.QueryListPermissionSessionsRequest.response_max_size":
x.ResponseMaxSize = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListPermissionSessionsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after":
value := x.ModifiedAfter
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.QueryListPermissionSessionsRequest.response_max_size":
value := x.ResponseMaxSize
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after":
x.ModifiedAfter = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.QueryListPermissionSessionsRequest.response_max_size":
x.ResponseMaxSize = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after":
if x.ModifiedAfter == nil {
x.ModifiedAfter = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
case "veranablockchain.permission.QueryListPermissionSessionsRequest.response_max_size":
panic(fmt.Errorf("field response_max_size of message veranablockchain.permission.QueryListPermissionSessionsRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListPermissionSessionsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.QueryListPermissionSessionsRequest.response_max_size":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListPermissionSessionsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryListPermissionSessionsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListPermissionSessionsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListPermissionSessionsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListPermissionSessionsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListPermissionSessionsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.ModifiedAfter != nil {
l = options.Size(x.ModifiedAfter)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ResponseMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.ResponseMaxSize))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionSessionsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ResponseMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ResponseMaxSize))
i--
dAtA[i] = 0x10
}
if x.ModifiedAfter != nil {
encoded, err := options.Marshal(x.ModifiedAfter)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionSessionsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionSessionsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionSessionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.ModifiedAfter == nil {
x.ModifiedAfter = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ModifiedAfter); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
x.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryListPermissionSessionsResponse_1_list)(nil)
type _QueryListPermissionSessionsResponse_1_list struct {
list *[]*PermissionSession
}
func (x *_QueryListPermissionSessionsResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryListPermissionSessionsResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryListPermissionSessionsResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*PermissionSession)
(*x.list)[i] = concreteValue
}
func (x *_QueryListPermissionSessionsResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*PermissionSession)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryListPermissionSessionsResponse_1_list) AppendMutable() protoreflect.Value {
v := new(PermissionSession)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListPermissionSessionsResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryListPermissionSessionsResponse_1_list) NewElement() protoreflect.Value {
v := new(PermissionSession)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListPermissionSessionsResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryListPermissionSessionsResponse protoreflect.MessageDescriptor
fd_QueryListPermissionSessionsResponse_sessions protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryListPermissionSessionsResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryListPermissionSessionsResponse")
fd_QueryListPermissionSessionsResponse_sessions = md_QueryListPermissionSessionsResponse.Fields().ByName("sessions")
}
var _ protoreflect.Message = (*fastReflection_QueryListPermissionSessionsResponse)(nil)
type fastReflection_QueryListPermissionSessionsResponse QueryListPermissionSessionsResponse
func (x *QueryListPermissionSessionsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListPermissionSessionsResponse)(x)
}
func (x *QueryListPermissionSessionsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListPermissionSessionsResponse_messageType fastReflection_QueryListPermissionSessionsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryListPermissionSessionsResponse_messageType{}
type fastReflection_QueryListPermissionSessionsResponse_messageType struct{}
func (x fastReflection_QueryListPermissionSessionsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListPermissionSessionsResponse)(nil)
}
func (x fastReflection_QueryListPermissionSessionsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionSessionsResponse)
}
func (x fastReflection_QueryListPermissionSessionsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionSessionsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListPermissionSessionsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListPermissionSessionsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListPermissionSessionsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryListPermissionSessionsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListPermissionSessionsResponse) New() protoreflect.Message {
return new(fastReflection_QueryListPermissionSessionsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListPermissionSessionsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryListPermissionSessionsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListPermissionSessionsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Sessions) != 0 {
value := protoreflect.ValueOfList(&_QueryListPermissionSessionsResponse_1_list{list: &x.Sessions})
if !f(fd_QueryListPermissionSessionsResponse_sessions, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListPermissionSessionsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsResponse.sessions":
return len(x.Sessions) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsResponse.sessions":
x.Sessions = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListPermissionSessionsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsResponse.sessions":
if len(x.Sessions) == 0 {
return protoreflect.ValueOfList(&_QueryListPermissionSessionsResponse_1_list{})
}
listValue := &_QueryListPermissionSessionsResponse_1_list{list: &x.Sessions}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsResponse.sessions":
lv := value.List()
clv := lv.(*_QueryListPermissionSessionsResponse_1_list)
x.Sessions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsResponse.sessions":
if x.Sessions == nil {
x.Sessions = []*PermissionSession{}
}
value := &_QueryListPermissionSessionsResponse_1_list{list: &x.Sessions}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListPermissionSessionsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryListPermissionSessionsResponse.sessions":
list := []*PermissionSession{}
return protoreflect.ValueOfList(&_QueryListPermissionSessionsResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryListPermissionSessionsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryListPermissionSessionsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListPermissionSessionsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryListPermissionSessionsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListPermissionSessionsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListPermissionSessionsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListPermissionSessionsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListPermissionSessionsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListPermissionSessionsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Sessions) > 0 {
for _, e := range x.Sessions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionSessionsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Sessions) > 0 {
for iNdEx := len(x.Sessions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Sessions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListPermissionSessionsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionSessionsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListPermissionSessionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sessions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Sessions = append(x.Sessions, &PermissionSession{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Sessions[len(x.Sessions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryFindPermissionsWithDIDRequest protoreflect.MessageDescriptor
fd_QueryFindPermissionsWithDIDRequest_did protoreflect.FieldDescriptor
fd_QueryFindPermissionsWithDIDRequest_type protoreflect.FieldDescriptor
fd_QueryFindPermissionsWithDIDRequest_schema_id protoreflect.FieldDescriptor
fd_QueryFindPermissionsWithDIDRequest_country protoreflect.FieldDescriptor
fd_QueryFindPermissionsWithDIDRequest_when protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryFindPermissionsWithDIDRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryFindPermissionsWithDIDRequest")
fd_QueryFindPermissionsWithDIDRequest_did = md_QueryFindPermissionsWithDIDRequest.Fields().ByName("did")
fd_QueryFindPermissionsWithDIDRequest_type = md_QueryFindPermissionsWithDIDRequest.Fields().ByName("type")
fd_QueryFindPermissionsWithDIDRequest_schema_id = md_QueryFindPermissionsWithDIDRequest.Fields().ByName("schema_id")
fd_QueryFindPermissionsWithDIDRequest_country = md_QueryFindPermissionsWithDIDRequest.Fields().ByName("country")
fd_QueryFindPermissionsWithDIDRequest_when = md_QueryFindPermissionsWithDIDRequest.Fields().ByName("when")
}
var _ protoreflect.Message = (*fastReflection_QueryFindPermissionsWithDIDRequest)(nil)
type fastReflection_QueryFindPermissionsWithDIDRequest QueryFindPermissionsWithDIDRequest
func (x *QueryFindPermissionsWithDIDRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryFindPermissionsWithDIDRequest)(x)
}
func (x *QueryFindPermissionsWithDIDRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryFindPermissionsWithDIDRequest_messageType fastReflection_QueryFindPermissionsWithDIDRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryFindPermissionsWithDIDRequest_messageType{}
type fastReflection_QueryFindPermissionsWithDIDRequest_messageType struct{}
func (x fastReflection_QueryFindPermissionsWithDIDRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryFindPermissionsWithDIDRequest)(nil)
}
func (x fastReflection_QueryFindPermissionsWithDIDRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryFindPermissionsWithDIDRequest)
}
func (x fastReflection_QueryFindPermissionsWithDIDRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindPermissionsWithDIDRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindPermissionsWithDIDRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryFindPermissionsWithDIDRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) New() protoreflect.Message {
return new(fastReflection_QueryFindPermissionsWithDIDRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Interface() protoreflect.ProtoMessage {
return (*QueryFindPermissionsWithDIDRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_QueryFindPermissionsWithDIDRequest_did, value) {
return
}
}
if x.Type_ != uint32(0) {
value := protoreflect.ValueOfUint32(x.Type_)
if !f(fd_QueryFindPermissionsWithDIDRequest_type, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_QueryFindPermissionsWithDIDRequest_schema_id, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_QueryFindPermissionsWithDIDRequest_country, value) {
return
}
}
if x.When != nil {
value := protoreflect.ValueOfMessage(x.When.ProtoReflect())
if !f(fd_QueryFindPermissionsWithDIDRequest_when, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.did":
return x.Did != ""
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.type":
return x.Type_ != uint32(0)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.country":
return x.Country != ""
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when":
return x.When != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.did":
x.Did = ""
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.type":
x.Type_ = uint32(0)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.country":
x.Country = ""
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when":
x.When = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.type":
value := x.Type_
return protoreflect.ValueOfUint32(value)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when":
value := x.When
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.did":
x.Did = value.Interface().(string)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.type":
x.Type_ = uint32(value.Uint())
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.country":
x.Country = value.Interface().(string)
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when":
x.When = value.Message().Interface().(*timestamppb.Timestamp)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when":
if x.When == nil {
x.When = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.When.ProtoReflect())
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.did":
panic(fmt.Errorf("field did of message veranablockchain.permission.QueryFindPermissionsWithDIDRequest is not mutable"))
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.type":
panic(fmt.Errorf("field type of message veranablockchain.permission.QueryFindPermissionsWithDIDRequest is not mutable"))
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.permission.QueryFindPermissionsWithDIDRequest is not mutable"))
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.country":
panic(fmt.Errorf("field country of message veranablockchain.permission.QueryFindPermissionsWithDIDRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.did":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.type":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.country":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryFindPermissionsWithDIDRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryFindPermissionsWithDIDRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryFindPermissionsWithDIDRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Type_ != 0 {
n += 1 + runtime.Sov(uint64(x.Type_))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.When != nil {
l = options.Size(x.When)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryFindPermissionsWithDIDRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.When != nil {
encoded, err := options.Marshal(x.When)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x22
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x18
}
if x.Type_ != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_))
i--
dAtA[i] = 0x10
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryFindPermissionsWithDIDRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindPermissionsWithDIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindPermissionsWithDIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
}
x.Type_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Type_ |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field When", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.When == nil {
x.When = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.When); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryFindPermissionsWithDIDResponse_1_list)(nil)
type _QueryFindPermissionsWithDIDResponse_1_list struct {
list *[]*Permission
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
(*x.list)[i] = concreteValue
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) AppendMutable() protoreflect.Value {
v := new(Permission)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) NewElement() protoreflect.Value {
v := new(Permission)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryFindPermissionsWithDIDResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryFindPermissionsWithDIDResponse protoreflect.MessageDescriptor
fd_QueryFindPermissionsWithDIDResponse_permissions protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryFindPermissionsWithDIDResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryFindPermissionsWithDIDResponse")
fd_QueryFindPermissionsWithDIDResponse_permissions = md_QueryFindPermissionsWithDIDResponse.Fields().ByName("permissions")
}
var _ protoreflect.Message = (*fastReflection_QueryFindPermissionsWithDIDResponse)(nil)
type fastReflection_QueryFindPermissionsWithDIDResponse QueryFindPermissionsWithDIDResponse
func (x *QueryFindPermissionsWithDIDResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryFindPermissionsWithDIDResponse)(x)
}
func (x *QueryFindPermissionsWithDIDResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryFindPermissionsWithDIDResponse_messageType fastReflection_QueryFindPermissionsWithDIDResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryFindPermissionsWithDIDResponse_messageType{}
type fastReflection_QueryFindPermissionsWithDIDResponse_messageType struct{}
func (x fastReflection_QueryFindPermissionsWithDIDResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryFindPermissionsWithDIDResponse)(nil)
}
func (x fastReflection_QueryFindPermissionsWithDIDResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryFindPermissionsWithDIDResponse)
}
func (x fastReflection_QueryFindPermissionsWithDIDResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindPermissionsWithDIDResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindPermissionsWithDIDResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryFindPermissionsWithDIDResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) New() protoreflect.Message {
return new(fastReflection_QueryFindPermissionsWithDIDResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Interface() protoreflect.ProtoMessage {
return (*QueryFindPermissionsWithDIDResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Permissions) != 0 {
value := protoreflect.ValueOfList(&_QueryFindPermissionsWithDIDResponse_1_list{list: &x.Permissions})
if !f(fd_QueryFindPermissionsWithDIDResponse_permissions, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions":
return len(x.Permissions) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions":
x.Permissions = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions":
if len(x.Permissions) == 0 {
return protoreflect.ValueOfList(&_QueryFindPermissionsWithDIDResponse_1_list{})
}
listValue := &_QueryFindPermissionsWithDIDResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions":
lv := value.List()
clv := lv.(*_QueryFindPermissionsWithDIDResponse_1_list)
x.Permissions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions":
if x.Permissions == nil {
x.Permissions = []*Permission{}
}
value := &_QueryFindPermissionsWithDIDResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions":
list := []*Permission{}
return protoreflect.ValueOfList(&_QueryFindPermissionsWithDIDResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindPermissionsWithDIDResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindPermissionsWithDIDResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryFindPermissionsWithDIDResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryFindPermissionsWithDIDResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryFindPermissionsWithDIDResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Permissions) > 0 {
for _, e := range x.Permissions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryFindPermissionsWithDIDResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Permissions) > 0 {
for iNdEx := len(x.Permissions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Permissions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryFindPermissionsWithDIDResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindPermissionsWithDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindPermissionsWithDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Permissions = append(x.Permissions, &Permission{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions[len(x.Permissions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryFindBeneficiariesRequest protoreflect.MessageDescriptor
fd_QueryFindBeneficiariesRequest_issuer_perm_id protoreflect.FieldDescriptor
fd_QueryFindBeneficiariesRequest_verifier_perm_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryFindBeneficiariesRequest = File_veranablockchain_permission_query_proto.Messages().ByName("QueryFindBeneficiariesRequest")
fd_QueryFindBeneficiariesRequest_issuer_perm_id = md_QueryFindBeneficiariesRequest.Fields().ByName("issuer_perm_id")
fd_QueryFindBeneficiariesRequest_verifier_perm_id = md_QueryFindBeneficiariesRequest.Fields().ByName("verifier_perm_id")
}
var _ protoreflect.Message = (*fastReflection_QueryFindBeneficiariesRequest)(nil)
type fastReflection_QueryFindBeneficiariesRequest QueryFindBeneficiariesRequest
func (x *QueryFindBeneficiariesRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryFindBeneficiariesRequest)(x)
}
func (x *QueryFindBeneficiariesRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryFindBeneficiariesRequest_messageType fastReflection_QueryFindBeneficiariesRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryFindBeneficiariesRequest_messageType{}
type fastReflection_QueryFindBeneficiariesRequest_messageType struct{}
func (x fastReflection_QueryFindBeneficiariesRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryFindBeneficiariesRequest)(nil)
}
func (x fastReflection_QueryFindBeneficiariesRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryFindBeneficiariesRequest)
}
func (x fastReflection_QueryFindBeneficiariesRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindBeneficiariesRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryFindBeneficiariesRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindBeneficiariesRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryFindBeneficiariesRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryFindBeneficiariesRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryFindBeneficiariesRequest) New() protoreflect.Message {
return new(fastReflection_QueryFindBeneficiariesRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryFindBeneficiariesRequest) Interface() protoreflect.ProtoMessage {
return (*QueryFindBeneficiariesRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryFindBeneficiariesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.IssuerPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuerPermId)
if !f(fd_QueryFindBeneficiariesRequest_issuer_perm_id, value) {
return
}
}
if x.VerifierPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerifierPermId)
if !f(fd_QueryFindBeneficiariesRequest_verifier_perm_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryFindBeneficiariesRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesRequest.issuer_perm_id":
return x.IssuerPermId != uint64(0)
case "veranablockchain.permission.QueryFindBeneficiariesRequest.verifier_perm_id":
return x.VerifierPermId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesRequest.issuer_perm_id":
x.IssuerPermId = uint64(0)
case "veranablockchain.permission.QueryFindBeneficiariesRequest.verifier_perm_id":
x.VerifierPermId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryFindBeneficiariesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesRequest.issuer_perm_id":
value := x.IssuerPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.QueryFindBeneficiariesRequest.verifier_perm_id":
value := x.VerifierPermId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesRequest.issuer_perm_id":
x.IssuerPermId = value.Uint()
case "veranablockchain.permission.QueryFindBeneficiariesRequest.verifier_perm_id":
x.VerifierPermId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesRequest.issuer_perm_id":
panic(fmt.Errorf("field issuer_perm_id of message veranablockchain.permission.QueryFindBeneficiariesRequest is not mutable"))
case "veranablockchain.permission.QueryFindBeneficiariesRequest.verifier_perm_id":
panic(fmt.Errorf("field verifier_perm_id of message veranablockchain.permission.QueryFindBeneficiariesRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryFindBeneficiariesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesRequest.issuer_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.QueryFindBeneficiariesRequest.verifier_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryFindBeneficiariesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryFindBeneficiariesRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryFindBeneficiariesRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryFindBeneficiariesRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryFindBeneficiariesRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryFindBeneficiariesRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.IssuerPermId != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerPermId))
}
if x.VerifierPermId != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierPermId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryFindBeneficiariesRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.VerifierPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierPermId))
i--
dAtA[i] = 0x10
}
if x.IssuerPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerPermId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryFindBeneficiariesRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindBeneficiariesRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindBeneficiariesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerPermId", wireType)
}
x.IssuerPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierPermId", wireType)
}
x.VerifierPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryFindBeneficiariesResponse_1_list)(nil)
type _QueryFindBeneficiariesResponse_1_list struct {
list *[]*Permission
}
func (x *_QueryFindBeneficiariesResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryFindBeneficiariesResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryFindBeneficiariesResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
(*x.list)[i] = concreteValue
}
func (x *_QueryFindBeneficiariesResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Permission)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryFindBeneficiariesResponse_1_list) AppendMutable() protoreflect.Value {
v := new(Permission)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryFindBeneficiariesResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryFindBeneficiariesResponse_1_list) NewElement() protoreflect.Value {
v := new(Permission)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryFindBeneficiariesResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryFindBeneficiariesResponse protoreflect.MessageDescriptor
fd_QueryFindBeneficiariesResponse_permissions protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_query_proto_init()
md_QueryFindBeneficiariesResponse = File_veranablockchain_permission_query_proto.Messages().ByName("QueryFindBeneficiariesResponse")
fd_QueryFindBeneficiariesResponse_permissions = md_QueryFindBeneficiariesResponse.Fields().ByName("permissions")
}
var _ protoreflect.Message = (*fastReflection_QueryFindBeneficiariesResponse)(nil)
type fastReflection_QueryFindBeneficiariesResponse QueryFindBeneficiariesResponse
func (x *QueryFindBeneficiariesResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryFindBeneficiariesResponse)(x)
}
func (x *QueryFindBeneficiariesResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_query_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryFindBeneficiariesResponse_messageType fastReflection_QueryFindBeneficiariesResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryFindBeneficiariesResponse_messageType{}
type fastReflection_QueryFindBeneficiariesResponse_messageType struct{}
func (x fastReflection_QueryFindBeneficiariesResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryFindBeneficiariesResponse)(nil)
}
func (x fastReflection_QueryFindBeneficiariesResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryFindBeneficiariesResponse)
}
func (x fastReflection_QueryFindBeneficiariesResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindBeneficiariesResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryFindBeneficiariesResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryFindBeneficiariesResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryFindBeneficiariesResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryFindBeneficiariesResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryFindBeneficiariesResponse) New() protoreflect.Message {
return new(fastReflection_QueryFindBeneficiariesResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryFindBeneficiariesResponse) Interface() protoreflect.ProtoMessage {
return (*QueryFindBeneficiariesResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryFindBeneficiariesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.Permissions) != 0 {
value := protoreflect.ValueOfList(&_QueryFindBeneficiariesResponse_1_list{list: &x.Permissions})
if !f(fd_QueryFindBeneficiariesResponse_permissions, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryFindBeneficiariesResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesResponse.permissions":
return len(x.Permissions) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesResponse.permissions":
x.Permissions = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryFindBeneficiariesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesResponse.permissions":
if len(x.Permissions) == 0 {
return protoreflect.ValueOfList(&_QueryFindBeneficiariesResponse_1_list{})
}
listValue := &_QueryFindBeneficiariesResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesResponse.permissions":
lv := value.List()
clv := lv.(*_QueryFindBeneficiariesResponse_1_list)
x.Permissions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesResponse.permissions":
if x.Permissions == nil {
x.Permissions = []*Permission{}
}
value := &_QueryFindBeneficiariesResponse_1_list{list: &x.Permissions}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryFindBeneficiariesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.QueryFindBeneficiariesResponse.permissions":
list := []*Permission{}
return protoreflect.ValueOfList(&_QueryFindBeneficiariesResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.QueryFindBeneficiariesResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.QueryFindBeneficiariesResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryFindBeneficiariesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.QueryFindBeneficiariesResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryFindBeneficiariesResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryFindBeneficiariesResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryFindBeneficiariesResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryFindBeneficiariesResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryFindBeneficiariesResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.Permissions) > 0 {
for _, e := range x.Permissions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryFindBeneficiariesResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Permissions) > 0 {
for iNdEx := len(x.Permissions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Permissions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryFindBeneficiariesResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindBeneficiariesResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryFindBeneficiariesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Permissions = append(x.Permissions, &Permission{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions[len(x.Permissions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/permission/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
type QueryListPermissionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ModifiedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=modified_after,json=modifiedAfter,proto3" json:"modified_after,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,2,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"` // Default 64, min 1, max 1024
}
func (x *QueryListPermissionsRequest) Reset() {
*x = QueryListPermissionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListPermissionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListPermissionsRequest) ProtoMessage() {}
// Deprecated: Use QueryListPermissionsRequest.ProtoReflect.Descriptor instead.
func (*QueryListPermissionsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{2}
}
func (x *QueryListPermissionsRequest) GetModifiedAfter() *timestamppb.Timestamp {
if x != nil {
return x.ModifiedAfter
}
return nil
}
func (x *QueryListPermissionsRequest) GetResponseMaxSize() uint32 {
if x != nil {
return x.ResponseMaxSize
}
return 0
}
type QueryListPermissionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
}
func (x *QueryListPermissionsResponse) Reset() {
*x = QueryListPermissionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListPermissionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListPermissionsResponse) ProtoMessage() {}
// Deprecated: Use QueryListPermissionsResponse.ProtoReflect.Descriptor instead.
func (*QueryListPermissionsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryListPermissionsResponse) GetPermissions() []*Permission {
if x != nil {
return x.Permissions
}
return nil
}
type QueryGetPermissionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *QueryGetPermissionRequest) Reset() {
*x = QueryGetPermissionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetPermissionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetPermissionRequest) ProtoMessage() {}
// Deprecated: Use QueryGetPermissionRequest.ProtoReflect.Descriptor instead.
func (*QueryGetPermissionRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{4}
}
func (x *QueryGetPermissionRequest) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type QueryGetPermissionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
}
func (x *QueryGetPermissionResponse) Reset() {
*x = QueryGetPermissionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetPermissionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetPermissionResponse) ProtoMessage() {}
// Deprecated: Use QueryGetPermissionResponse.ProtoReflect.Descriptor instead.
func (*QueryGetPermissionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{5}
}
func (x *QueryGetPermissionResponse) GetPermission() *Permission {
if x != nil {
return x.Permission
}
return nil
}
type QueryGetPermissionSessionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID
}
func (x *QueryGetPermissionSessionRequest) Reset() {
*x = QueryGetPermissionSessionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetPermissionSessionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetPermissionSessionRequest) ProtoMessage() {}
// Deprecated: Use QueryGetPermissionSessionRequest.ProtoReflect.Descriptor instead.
func (*QueryGetPermissionSessionRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{6}
}
func (x *QueryGetPermissionSessionRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type QueryGetPermissionSessionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Session *PermissionSession `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
}
func (x *QueryGetPermissionSessionResponse) Reset() {
*x = QueryGetPermissionSessionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetPermissionSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetPermissionSessionResponse) ProtoMessage() {}
// Deprecated: Use QueryGetPermissionSessionResponse.ProtoReflect.Descriptor instead.
func (*QueryGetPermissionSessionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{7}
}
func (x *QueryGetPermissionSessionResponse) GetSession() *PermissionSession {
if x != nil {
return x.Session
}
return nil
}
type QueryListPermissionSessionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ModifiedAfter *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=modified_after,json=modifiedAfter,proto3" json:"modified_after,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,2,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (x *QueryListPermissionSessionsRequest) Reset() {
*x = QueryListPermissionSessionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListPermissionSessionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListPermissionSessionsRequest) ProtoMessage() {}
// Deprecated: Use QueryListPermissionSessionsRequest.ProtoReflect.Descriptor instead.
func (*QueryListPermissionSessionsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{8}
}
func (x *QueryListPermissionSessionsRequest) GetModifiedAfter() *timestamppb.Timestamp {
if x != nil {
return x.ModifiedAfter
}
return nil
}
func (x *QueryListPermissionSessionsRequest) GetResponseMaxSize() uint32 {
if x != nil {
return x.ResponseMaxSize
}
return 0
}
type QueryListPermissionSessionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Sessions []*PermissionSession `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
}
func (x *QueryListPermissionSessionsResponse) Reset() {
*x = QueryListPermissionSessionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListPermissionSessionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListPermissionSessionsResponse) ProtoMessage() {}
// Deprecated: Use QueryListPermissionSessionsResponse.ProtoReflect.Descriptor instead.
func (*QueryListPermissionSessionsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{9}
}
func (x *QueryListPermissionSessionsResponse) GetSessions() []*PermissionSession {
if x != nil {
return x.Sessions
}
return nil
}
type QueryFindPermissionsWithDIDRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
Type_ uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
SchemaId uint64 `protobuf:"varint,3,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
When *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=when,proto3" json:"when,omitempty"`
}
func (x *QueryFindPermissionsWithDIDRequest) Reset() {
*x = QueryFindPermissionsWithDIDRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryFindPermissionsWithDIDRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryFindPermissionsWithDIDRequest) ProtoMessage() {}
// Deprecated: Use QueryFindPermissionsWithDIDRequest.ProtoReflect.Descriptor instead.
func (*QueryFindPermissionsWithDIDRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{10}
}
func (x *QueryFindPermissionsWithDIDRequest) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *QueryFindPermissionsWithDIDRequest) GetType_() uint32 {
if x != nil {
return x.Type_
}
return 0
}
func (x *QueryFindPermissionsWithDIDRequest) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *QueryFindPermissionsWithDIDRequest) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *QueryFindPermissionsWithDIDRequest) GetWhen() *timestamppb.Timestamp {
if x != nil {
return x.When
}
return nil
}
type QueryFindPermissionsWithDIDResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
}
func (x *QueryFindPermissionsWithDIDResponse) Reset() {
*x = QueryFindPermissionsWithDIDResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryFindPermissionsWithDIDResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryFindPermissionsWithDIDResponse) ProtoMessage() {}
// Deprecated: Use QueryFindPermissionsWithDIDResponse.ProtoReflect.Descriptor instead.
func (*QueryFindPermissionsWithDIDResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{11}
}
func (x *QueryFindPermissionsWithDIDResponse) GetPermissions() []*Permission {
if x != nil {
return x.Permissions
}
return nil
}
type QueryFindBeneficiariesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IssuerPermId uint64 `protobuf:"varint,1,opt,name=issuer_perm_id,json=issuerPermId,proto3" json:"issuer_perm_id,omitempty"`
VerifierPermId uint64 `protobuf:"varint,2,opt,name=verifier_perm_id,json=verifierPermId,proto3" json:"verifier_perm_id,omitempty"`
}
func (x *QueryFindBeneficiariesRequest) Reset() {
*x = QueryFindBeneficiariesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryFindBeneficiariesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryFindBeneficiariesRequest) ProtoMessage() {}
// Deprecated: Use QueryFindBeneficiariesRequest.ProtoReflect.Descriptor instead.
func (*QueryFindBeneficiariesRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{12}
}
func (x *QueryFindBeneficiariesRequest) GetIssuerPermId() uint64 {
if x != nil {
return x.IssuerPermId
}
return 0
}
func (x *QueryFindBeneficiariesRequest) GetVerifierPermId() uint64 {
if x != nil {
return x.VerifierPermId
}
return 0
}
type QueryFindBeneficiariesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
}
func (x *QueryFindBeneficiariesResponse) Reset() {
*x = QueryFindBeneficiariesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_query_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryFindBeneficiariesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryFindBeneficiariesResponse) ProtoMessage() {}
// Deprecated: Use QueryFindBeneficiariesResponse.ProtoReflect.Descriptor instead.
func (*QueryFindBeneficiariesResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_query_proto_rawDescGZIP(), []int{13}
}
func (x *QueryFindBeneficiariesResponse) GetPermissions() []*Permission {
if x != nil {
return x.Permissions
}
return nil
}
var File_veranablockchain_permission_query_proto protoreflect.FileDescriptor
var file_veranablockchain_permission_query_proto_rawDesc = []byte{
0x0a, 0x27, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x71, 0x75,
0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79,
0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a,
0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x22, 0x5d, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42,
0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x22, 0x96, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61,
0x66, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01,
0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12,
0x2a, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x6f, 0x0a, 0x1c, 0x51,
0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0b, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x27, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52,
0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2b, 0x0a, 0x19,
0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x6b, 0x0a, 0x1a, 0x51, 0x75, 0x65,
0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x32, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47,
0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x6d, 0x0a, 0x21, 0x51, 0x75,
0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x48, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x2e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x22, 0x51, 0x75,
0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x4b, 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74,
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d,
0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a,
0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x77, 0x0a, 0x23, 0x51, 0x75, 0x65,
0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x50, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6e, 0x64,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44,
0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74,
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x04, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x07,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8,
0xde, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x04,
0x77, 0x68, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01,
0x52, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x22, 0x76, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46,
0x69, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x57, 0x69,
0x74, 0x68, 0x44, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a,
0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x00, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x6f,
0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x65, 0x6e, 0x65, 0x66,
0x69, 0x63, 0x69, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x24, 0x0a, 0x0e, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50,
0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65,
0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x22,
0x71, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x65, 0x6e, 0x65,
0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x4f, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42,
0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x73, 0x32, 0xb1, 0x09, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x84, 0x01, 0x0a,
0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x11, 0x12, 0x0f, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x12, 0x9d, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x39, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c,
0x69, 0x73, 0x74, 0x12, 0x9b, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11,
0x2f, 0x70, 0x72, 0x65, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x64,
0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65,
0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x1b, 0x12, 0x19, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x74, 0x5f,
0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xba, 0x01, 0x0a,
0x16, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53,
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x17, 0x12, 0x15, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x73,
0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0xbb, 0x01, 0x0a, 0x16, 0x46, 0x69,
0x6e, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x57, 0x69, 0x74,
0x68, 0x44, 0x49, 0x44, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x49, 0x44, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x49, 0x44, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12,
0x16, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x5f, 0x77,
0x69, 0x74, 0x68, 0x5f, 0x64, 0x69, 0x64, 0x12, 0xac, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64,
0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3a, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x79, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x69,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x69, 0x6e,
0x64, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16,
0x2f, 0x70, 0x65, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63,
0x69, 0x61, 0x72, 0x69, 0x65, 0x73, 0x42, 0x84, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72,
0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x50, 0x58, 0xaa, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x27, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02,
0x1c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x3a, 0x3a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_permission_query_proto_rawDescOnce sync.Once
file_veranablockchain_permission_query_proto_rawDescData = file_veranablockchain_permission_query_proto_rawDesc
)
func file_veranablockchain_permission_query_proto_rawDescGZIP() []byte {
file_veranablockchain_permission_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_permission_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_permission_query_proto_rawDescData)
})
return file_veranablockchain_permission_query_proto_rawDescData
}
var file_veranablockchain_permission_query_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_veranablockchain_permission_query_proto_goTypes = []interface{}{
(*QueryParamsRequest)(nil), // 0: veranablockchain.permission.QueryParamsRequest
(*QueryParamsResponse)(nil), // 1: veranablockchain.permission.QueryParamsResponse
(*QueryListPermissionsRequest)(nil), // 2: veranablockchain.permission.QueryListPermissionsRequest
(*QueryListPermissionsResponse)(nil), // 3: veranablockchain.permission.QueryListPermissionsResponse
(*QueryGetPermissionRequest)(nil), // 4: veranablockchain.permission.QueryGetPermissionRequest
(*QueryGetPermissionResponse)(nil), // 5: veranablockchain.permission.QueryGetPermissionResponse
(*QueryGetPermissionSessionRequest)(nil), // 6: veranablockchain.permission.QueryGetPermissionSessionRequest
(*QueryGetPermissionSessionResponse)(nil), // 7: veranablockchain.permission.QueryGetPermissionSessionResponse
(*QueryListPermissionSessionsRequest)(nil), // 8: veranablockchain.permission.QueryListPermissionSessionsRequest
(*QueryListPermissionSessionsResponse)(nil), // 9: veranablockchain.permission.QueryListPermissionSessionsResponse
(*QueryFindPermissionsWithDIDRequest)(nil), // 10: veranablockchain.permission.QueryFindPermissionsWithDIDRequest
(*QueryFindPermissionsWithDIDResponse)(nil), // 11: veranablockchain.permission.QueryFindPermissionsWithDIDResponse
(*QueryFindBeneficiariesRequest)(nil), // 12: veranablockchain.permission.QueryFindBeneficiariesRequest
(*QueryFindBeneficiariesResponse)(nil), // 13: veranablockchain.permission.QueryFindBeneficiariesResponse
(*Params)(nil), // 14: veranablockchain.permission.Params
(*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp
(*Permission)(nil), // 16: veranablockchain.permission.Permission
(*PermissionSession)(nil), // 17: veranablockchain.permission.PermissionSession
}
var file_veranablockchain_permission_query_proto_depIdxs = []int32{
14, // 0: veranablockchain.permission.QueryParamsResponse.params:type_name -> veranablockchain.permission.Params
15, // 1: veranablockchain.permission.QueryListPermissionsRequest.modified_after:type_name -> google.protobuf.Timestamp
16, // 2: veranablockchain.permission.QueryListPermissionsResponse.permissions:type_name -> veranablockchain.permission.Permission
16, // 3: veranablockchain.permission.QueryGetPermissionResponse.permission:type_name -> veranablockchain.permission.Permission
17, // 4: veranablockchain.permission.QueryGetPermissionSessionResponse.session:type_name -> veranablockchain.permission.PermissionSession
15, // 5: veranablockchain.permission.QueryListPermissionSessionsRequest.modified_after:type_name -> google.protobuf.Timestamp
17, // 6: veranablockchain.permission.QueryListPermissionSessionsResponse.sessions:type_name -> veranablockchain.permission.PermissionSession
15, // 7: veranablockchain.permission.QueryFindPermissionsWithDIDRequest.when:type_name -> google.protobuf.Timestamp
16, // 8: veranablockchain.permission.QueryFindPermissionsWithDIDResponse.permissions:type_name -> veranablockchain.permission.Permission
16, // 9: veranablockchain.permission.QueryFindBeneficiariesResponse.permissions:type_name -> veranablockchain.permission.Permission
0, // 10: veranablockchain.permission.Query.Params:input_type -> veranablockchain.permission.QueryParamsRequest
2, // 11: veranablockchain.permission.Query.ListPermissions:input_type -> veranablockchain.permission.QueryListPermissionsRequest
4, // 12: veranablockchain.permission.Query.GetPermission:input_type -> veranablockchain.permission.QueryGetPermissionRequest
6, // 13: veranablockchain.permission.Query.GetPermissionSession:input_type -> veranablockchain.permission.QueryGetPermissionSessionRequest
8, // 14: veranablockchain.permission.Query.ListPermissionSessions:input_type -> veranablockchain.permission.QueryListPermissionSessionsRequest
10, // 15: veranablockchain.permission.Query.FindPermissionsWithDID:input_type -> veranablockchain.permission.QueryFindPermissionsWithDIDRequest
12, // 16: veranablockchain.permission.Query.FindBeneficiaries:input_type -> veranablockchain.permission.QueryFindBeneficiariesRequest
1, // 17: veranablockchain.permission.Query.Params:output_type -> veranablockchain.permission.QueryParamsResponse
3, // 18: veranablockchain.permission.Query.ListPermissions:output_type -> veranablockchain.permission.QueryListPermissionsResponse
5, // 19: veranablockchain.permission.Query.GetPermission:output_type -> veranablockchain.permission.QueryGetPermissionResponse
7, // 20: veranablockchain.permission.Query.GetPermissionSession:output_type -> veranablockchain.permission.QueryGetPermissionSessionResponse
9, // 21: veranablockchain.permission.Query.ListPermissionSessions:output_type -> veranablockchain.permission.QueryListPermissionSessionsResponse
11, // 22: veranablockchain.permission.Query.FindPermissionsWithDID:output_type -> veranablockchain.permission.QueryFindPermissionsWithDIDResponse
13, // 23: veranablockchain.permission.Query.FindBeneficiaries:output_type -> veranablockchain.permission.QueryFindBeneficiariesResponse
17, // [17:24] is the sub-list for method output_type
10, // [10:17] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
}
func init() { file_veranablockchain_permission_query_proto_init() }
func file_veranablockchain_permission_query_proto_init() {
if File_veranablockchain_permission_query_proto != nil {
return
}
file_veranablockchain_permission_params_proto_init()
file_veranablockchain_permission_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_permission_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListPermissionsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListPermissionsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetPermissionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetPermissionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetPermissionSessionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetPermissionSessionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListPermissionSessionsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListPermissionSessionsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryFindPermissionsWithDIDRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryFindPermissionsWithDIDResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryFindBeneficiariesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryFindBeneficiariesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_permission_query_proto_rawDesc,
NumEnums: 0,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_permission_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_permission_query_proto_depIdxs,
MessageInfos: file_veranablockchain_permission_query_proto_msgTypes,
}.Build()
File_veranablockchain_permission_query_proto = out.File
file_veranablockchain_permission_query_proto_rawDesc = nil
file_veranablockchain_permission_query_proto_goTypes = nil
file_veranablockchain_permission_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/permission/query.proto
package permission
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.permission.Query/Params"
Query_ListPermissions_FullMethodName = "/veranablockchain.permission.Query/ListPermissions"
Query_GetPermission_FullMethodName = "/veranablockchain.permission.Query/GetPermission"
Query_GetPermissionSession_FullMethodName = "/veranablockchain.permission.Query/GetPermissionSession"
Query_ListPermissionSessions_FullMethodName = "/veranablockchain.permission.Query/ListPermissionSessions"
Query_FindPermissionsWithDID_FullMethodName = "/veranablockchain.permission.Query/FindPermissionsWithDID"
Query_FindBeneficiaries_FullMethodName = "/veranablockchain.permission.Query/FindBeneficiaries"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
ListPermissions(ctx context.Context, in *QueryListPermissionsRequest, opts ...grpc.CallOption) (*QueryListPermissionsResponse, error)
GetPermission(ctx context.Context, in *QueryGetPermissionRequest, opts ...grpc.CallOption) (*QueryGetPermissionResponse, error)
GetPermissionSession(ctx context.Context, in *QueryGetPermissionSessionRequest, opts ...grpc.CallOption) (*QueryGetPermissionSessionResponse, error)
ListPermissionSessions(ctx context.Context, in *QueryListPermissionSessionsRequest, opts ...grpc.CallOption) (*QueryListPermissionSessionsResponse, error)
FindPermissionsWithDID(ctx context.Context, in *QueryFindPermissionsWithDIDRequest, opts ...grpc.CallOption) (*QueryFindPermissionsWithDIDResponse, error)
FindBeneficiaries(ctx context.Context, in *QueryFindBeneficiariesRequest, opts ...grpc.CallOption) (*QueryFindBeneficiariesResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListPermissions(ctx context.Context, in *QueryListPermissionsRequest, opts ...grpc.CallOption) (*QueryListPermissionsResponse, error) {
out := new(QueryListPermissionsResponse)
err := c.cc.Invoke(ctx, Query_ListPermissions_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetPermission(ctx context.Context, in *QueryGetPermissionRequest, opts ...grpc.CallOption) (*QueryGetPermissionResponse, error) {
out := new(QueryGetPermissionResponse)
err := c.cc.Invoke(ctx, Query_GetPermission_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetPermissionSession(ctx context.Context, in *QueryGetPermissionSessionRequest, opts ...grpc.CallOption) (*QueryGetPermissionSessionResponse, error) {
out := new(QueryGetPermissionSessionResponse)
err := c.cc.Invoke(ctx, Query_GetPermissionSession_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListPermissionSessions(ctx context.Context, in *QueryListPermissionSessionsRequest, opts ...grpc.CallOption) (*QueryListPermissionSessionsResponse, error) {
out := new(QueryListPermissionSessionsResponse)
err := c.cc.Invoke(ctx, Query_ListPermissionSessions_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) FindPermissionsWithDID(ctx context.Context, in *QueryFindPermissionsWithDIDRequest, opts ...grpc.CallOption) (*QueryFindPermissionsWithDIDResponse, error) {
out := new(QueryFindPermissionsWithDIDResponse)
err := c.cc.Invoke(ctx, Query_FindPermissionsWithDID_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) FindBeneficiaries(ctx context.Context, in *QueryFindBeneficiariesRequest, opts ...grpc.CallOption) (*QueryFindBeneficiariesResponse, error) {
out := new(QueryFindBeneficiariesResponse)
err := c.cc.Invoke(ctx, Query_FindBeneficiaries_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
ListPermissions(context.Context, *QueryListPermissionsRequest) (*QueryListPermissionsResponse, error)
GetPermission(context.Context, *QueryGetPermissionRequest) (*QueryGetPermissionResponse, error)
GetPermissionSession(context.Context, *QueryGetPermissionSessionRequest) (*QueryGetPermissionSessionResponse, error)
ListPermissionSessions(context.Context, *QueryListPermissionSessionsRequest) (*QueryListPermissionSessionsResponse, error)
FindPermissionsWithDID(context.Context, *QueryFindPermissionsWithDIDRequest) (*QueryFindPermissionsWithDIDResponse, error)
FindBeneficiaries(context.Context, *QueryFindBeneficiariesRequest) (*QueryFindBeneficiariesResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) ListPermissions(context.Context, *QueryListPermissionsRequest) (*QueryListPermissionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPermissions not implemented")
}
func (UnimplementedQueryServer) GetPermission(context.Context, *QueryGetPermissionRequest) (*QueryGetPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPermission not implemented")
}
func (UnimplementedQueryServer) GetPermissionSession(context.Context, *QueryGetPermissionSessionRequest) (*QueryGetPermissionSessionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPermissionSession not implemented")
}
func (UnimplementedQueryServer) ListPermissionSessions(context.Context, *QueryListPermissionSessionsRequest) (*QueryListPermissionSessionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPermissionSessions not implemented")
}
func (UnimplementedQueryServer) FindPermissionsWithDID(context.Context, *QueryFindPermissionsWithDIDRequest) (*QueryFindPermissionsWithDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindPermissionsWithDID not implemented")
}
func (UnimplementedQueryServer) FindBeneficiaries(context.Context, *QueryFindBeneficiariesRequest) (*QueryFindBeneficiariesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindBeneficiaries not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListPermissions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_ListPermissions_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListPermissions(ctx, req.(*QueryListPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetPermissionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetPermission_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetPermission(ctx, req.(*QueryGetPermissionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetPermissionSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetPermissionSessionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetPermissionSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetPermissionSession_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetPermissionSession(ctx, req.(*QueryGetPermissionSessionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListPermissionSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListPermissionSessionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListPermissionSessions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_ListPermissionSessions_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListPermissionSessions(ctx, req.(*QueryListPermissionSessionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_FindPermissionsWithDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryFindPermissionsWithDIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).FindPermissionsWithDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_FindPermissionsWithDID_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).FindPermissionsWithDID(ctx, req.(*QueryFindPermissionsWithDIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_FindBeneficiaries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryFindBeneficiariesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).FindBeneficiaries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_FindBeneficiaries_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).FindBeneficiaries(ctx, req.(*QueryFindBeneficiariesRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.permission.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListPermissions",
Handler: _Query_ListPermissions_Handler,
},
{
MethodName: "GetPermission",
Handler: _Query_GetPermission_Handler,
},
{
MethodName: "GetPermissionSession",
Handler: _Query_GetPermissionSession_Handler,
},
{
MethodName: "ListPermissionSessions",
Handler: _Query_ListPermissionSessions_Handler,
},
{
MethodName: "FindPermissionsWithDID",
Handler: _Query_FindPermissionsWithDID_Handler,
},
{
MethodName: "FindBeneficiaries",
Handler: _Query_FindBeneficiaries_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/permission/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package permission
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.permission.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.permission.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.permission.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.permission.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.permission.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgStartPermissionVP protoreflect.MessageDescriptor
fd_MsgStartPermissionVP_creator protoreflect.FieldDescriptor
fd_MsgStartPermissionVP_type protoreflect.FieldDescriptor
fd_MsgStartPermissionVP_validator_perm_id protoreflect.FieldDescriptor
fd_MsgStartPermissionVP_country protoreflect.FieldDescriptor
fd_MsgStartPermissionVP_did protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgStartPermissionVP = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgStartPermissionVP")
fd_MsgStartPermissionVP_creator = md_MsgStartPermissionVP.Fields().ByName("creator")
fd_MsgStartPermissionVP_type = md_MsgStartPermissionVP.Fields().ByName("type")
fd_MsgStartPermissionVP_validator_perm_id = md_MsgStartPermissionVP.Fields().ByName("validator_perm_id")
fd_MsgStartPermissionVP_country = md_MsgStartPermissionVP.Fields().ByName("country")
fd_MsgStartPermissionVP_did = md_MsgStartPermissionVP.Fields().ByName("did")
}
var _ protoreflect.Message = (*fastReflection_MsgStartPermissionVP)(nil)
type fastReflection_MsgStartPermissionVP MsgStartPermissionVP
func (x *MsgStartPermissionVP) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgStartPermissionVP)(x)
}
func (x *MsgStartPermissionVP) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgStartPermissionVP_messageType fastReflection_MsgStartPermissionVP_messageType
var _ protoreflect.MessageType = fastReflection_MsgStartPermissionVP_messageType{}
type fastReflection_MsgStartPermissionVP_messageType struct{}
func (x fastReflection_MsgStartPermissionVP_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgStartPermissionVP)(nil)
}
func (x fastReflection_MsgStartPermissionVP_messageType) New() protoreflect.Message {
return new(fastReflection_MsgStartPermissionVP)
}
func (x fastReflection_MsgStartPermissionVP_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgStartPermissionVP
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgStartPermissionVP) Descriptor() protoreflect.MessageDescriptor {
return md_MsgStartPermissionVP
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgStartPermissionVP) Type() protoreflect.MessageType {
return _fastReflection_MsgStartPermissionVP_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgStartPermissionVP) New() protoreflect.Message {
return new(fastReflection_MsgStartPermissionVP)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgStartPermissionVP) Interface() protoreflect.ProtoMessage {
return (*MsgStartPermissionVP)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgStartPermissionVP) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgStartPermissionVP_creator, value) {
return
}
}
if x.Type_ != uint32(0) {
value := protoreflect.ValueOfUint32(x.Type_)
if !f(fd_MsgStartPermissionVP_type, value) {
return
}
}
if x.ValidatorPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidatorPermId)
if !f(fd_MsgStartPermissionVP_validator_perm_id, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_MsgStartPermissionVP_country, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgStartPermissionVP_did, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgStartPermissionVP) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVP.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgStartPermissionVP.type":
return x.Type_ != uint32(0)
case "veranablockchain.permission.MsgStartPermissionVP.validator_perm_id":
return x.ValidatorPermId != uint64(0)
case "veranablockchain.permission.MsgStartPermissionVP.country":
return x.Country != ""
case "veranablockchain.permission.MsgStartPermissionVP.did":
return x.Did != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVP does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVP) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVP.creator":
x.Creator = ""
case "veranablockchain.permission.MsgStartPermissionVP.type":
x.Type_ = uint32(0)
case "veranablockchain.permission.MsgStartPermissionVP.validator_perm_id":
x.ValidatorPermId = uint64(0)
case "veranablockchain.permission.MsgStartPermissionVP.country":
x.Country = ""
case "veranablockchain.permission.MsgStartPermissionVP.did":
x.Did = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVP does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgStartPermissionVP) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgStartPermissionVP.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgStartPermissionVP.type":
value := x.Type_
return protoreflect.ValueOfUint32(value)
case "veranablockchain.permission.MsgStartPermissionVP.validator_perm_id":
value := x.ValidatorPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgStartPermissionVP.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgStartPermissionVP.did":
value := x.Did
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVP does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVP) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVP.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgStartPermissionVP.type":
x.Type_ = uint32(value.Uint())
case "veranablockchain.permission.MsgStartPermissionVP.validator_perm_id":
x.ValidatorPermId = value.Uint()
case "veranablockchain.permission.MsgStartPermissionVP.country":
x.Country = value.Interface().(string)
case "veranablockchain.permission.MsgStartPermissionVP.did":
x.Did = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVP does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVP) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVP.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgStartPermissionVP is not mutable"))
case "veranablockchain.permission.MsgStartPermissionVP.type":
panic(fmt.Errorf("field type of message veranablockchain.permission.MsgStartPermissionVP is not mutable"))
case "veranablockchain.permission.MsgStartPermissionVP.validator_perm_id":
panic(fmt.Errorf("field validator_perm_id of message veranablockchain.permission.MsgStartPermissionVP is not mutable"))
case "veranablockchain.permission.MsgStartPermissionVP.country":
panic(fmt.Errorf("field country of message veranablockchain.permission.MsgStartPermissionVP is not mutable"))
case "veranablockchain.permission.MsgStartPermissionVP.did":
panic(fmt.Errorf("field did of message veranablockchain.permission.MsgStartPermissionVP is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVP does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgStartPermissionVP) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVP.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgStartPermissionVP.type":
return protoreflect.ValueOfUint32(uint32(0))
case "veranablockchain.permission.MsgStartPermissionVP.validator_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgStartPermissionVP.country":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgStartPermissionVP.did":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVP does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgStartPermissionVP) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgStartPermissionVP", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgStartPermissionVP) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVP) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgStartPermissionVP) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgStartPermissionVP) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgStartPermissionVP)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Type_ != 0 {
n += 1 + runtime.Sov(uint64(x.Type_))
}
if x.ValidatorPermId != 0 {
n += 1 + runtime.Sov(uint64(x.ValidatorPermId))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgStartPermissionVP)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x2a
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x22
}
if x.ValidatorPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidatorPermId))
i--
dAtA[i] = 0x18
}
if x.Type_ != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgStartPermissionVP)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStartPermissionVP: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStartPermissionVP: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
}
x.Type_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Type_ |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidatorPermId", wireType)
}
x.ValidatorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidatorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgStartPermissionVPResponse protoreflect.MessageDescriptor
fd_MsgStartPermissionVPResponse_permission_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgStartPermissionVPResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgStartPermissionVPResponse")
fd_MsgStartPermissionVPResponse_permission_id = md_MsgStartPermissionVPResponse.Fields().ByName("permission_id")
}
var _ protoreflect.Message = (*fastReflection_MsgStartPermissionVPResponse)(nil)
type fastReflection_MsgStartPermissionVPResponse MsgStartPermissionVPResponse
func (x *MsgStartPermissionVPResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgStartPermissionVPResponse)(x)
}
func (x *MsgStartPermissionVPResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgStartPermissionVPResponse_messageType fastReflection_MsgStartPermissionVPResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgStartPermissionVPResponse_messageType{}
type fastReflection_MsgStartPermissionVPResponse_messageType struct{}
func (x fastReflection_MsgStartPermissionVPResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgStartPermissionVPResponse)(nil)
}
func (x fastReflection_MsgStartPermissionVPResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgStartPermissionVPResponse)
}
func (x fastReflection_MsgStartPermissionVPResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgStartPermissionVPResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgStartPermissionVPResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgStartPermissionVPResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgStartPermissionVPResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgStartPermissionVPResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgStartPermissionVPResponse) New() protoreflect.Message {
return new(fastReflection_MsgStartPermissionVPResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgStartPermissionVPResponse) Interface() protoreflect.ProtoMessage {
return (*MsgStartPermissionVPResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgStartPermissionVPResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.PermissionId != uint64(0) {
value := protoreflect.ValueOfUint64(x.PermissionId)
if !f(fd_MsgStartPermissionVPResponse_permission_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgStartPermissionVPResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVPResponse.permission_id":
return x.PermissionId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVPResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVPResponse.permission_id":
x.PermissionId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgStartPermissionVPResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgStartPermissionVPResponse.permission_id":
value := x.PermissionId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVPResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVPResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVPResponse.permission_id":
x.PermissionId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVPResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVPResponse.permission_id":
panic(fmt.Errorf("field permission_id of message veranablockchain.permission.MsgStartPermissionVPResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgStartPermissionVPResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgStartPermissionVPResponse.permission_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgStartPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgStartPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgStartPermissionVPResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgStartPermissionVPResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgStartPermissionVPResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgStartPermissionVPResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgStartPermissionVPResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgStartPermissionVPResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgStartPermissionVPResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.PermissionId != 0 {
n += 1 + runtime.Sov(uint64(x.PermissionId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgStartPermissionVPResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.PermissionId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.PermissionId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgStartPermissionVPResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStartPermissionVPResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStartPermissionVPResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermissionId", wireType)
}
x.PermissionId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.PermissionId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRenewPermissionVP protoreflect.MessageDescriptor
fd_MsgRenewPermissionVP_creator protoreflect.FieldDescriptor
fd_MsgRenewPermissionVP_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgRenewPermissionVP = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgRenewPermissionVP")
fd_MsgRenewPermissionVP_creator = md_MsgRenewPermissionVP.Fields().ByName("creator")
fd_MsgRenewPermissionVP_id = md_MsgRenewPermissionVP.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgRenewPermissionVP)(nil)
type fastReflection_MsgRenewPermissionVP MsgRenewPermissionVP
func (x *MsgRenewPermissionVP) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRenewPermissionVP)(x)
}
func (x *MsgRenewPermissionVP) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRenewPermissionVP_messageType fastReflection_MsgRenewPermissionVP_messageType
var _ protoreflect.MessageType = fastReflection_MsgRenewPermissionVP_messageType{}
type fastReflection_MsgRenewPermissionVP_messageType struct{}
func (x fastReflection_MsgRenewPermissionVP_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRenewPermissionVP)(nil)
}
func (x fastReflection_MsgRenewPermissionVP_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRenewPermissionVP)
}
func (x fastReflection_MsgRenewPermissionVP_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewPermissionVP
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRenewPermissionVP) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewPermissionVP
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRenewPermissionVP) Type() protoreflect.MessageType {
return _fastReflection_MsgRenewPermissionVP_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRenewPermissionVP) New() protoreflect.Message {
return new(fastReflection_MsgRenewPermissionVP)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRenewPermissionVP) Interface() protoreflect.ProtoMessage {
return (*MsgRenewPermissionVP)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRenewPermissionVP) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgRenewPermissionVP_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgRenewPermissionVP_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRenewPermissionVP) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgRenewPermissionVP.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgRenewPermissionVP.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVP does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVP) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgRenewPermissionVP.creator":
x.Creator = ""
case "veranablockchain.permission.MsgRenewPermissionVP.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVP does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRenewPermissionVP) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgRenewPermissionVP.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgRenewPermissionVP.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVP does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVP) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgRenewPermissionVP.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgRenewPermissionVP.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVP does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVP) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgRenewPermissionVP.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgRenewPermissionVP is not mutable"))
case "veranablockchain.permission.MsgRenewPermissionVP.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgRenewPermissionVP is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVP does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRenewPermissionVP) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgRenewPermissionVP.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgRenewPermissionVP.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVP"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVP does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRenewPermissionVP) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgRenewPermissionVP", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRenewPermissionVP) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVP) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRenewPermissionVP) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRenewPermissionVP) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRenewPermissionVP)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewPermissionVP)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewPermissionVP)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewPermissionVP: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewPermissionVP: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRenewPermissionVPResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgRenewPermissionVPResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgRenewPermissionVPResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgRenewPermissionVPResponse)(nil)
type fastReflection_MsgRenewPermissionVPResponse MsgRenewPermissionVPResponse
func (x *MsgRenewPermissionVPResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRenewPermissionVPResponse)(x)
}
func (x *MsgRenewPermissionVPResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRenewPermissionVPResponse_messageType fastReflection_MsgRenewPermissionVPResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgRenewPermissionVPResponse_messageType{}
type fastReflection_MsgRenewPermissionVPResponse_messageType struct{}
func (x fastReflection_MsgRenewPermissionVPResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRenewPermissionVPResponse)(nil)
}
func (x fastReflection_MsgRenewPermissionVPResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRenewPermissionVPResponse)
}
func (x fastReflection_MsgRenewPermissionVPResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewPermissionVPResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRenewPermissionVPResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRenewPermissionVPResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRenewPermissionVPResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgRenewPermissionVPResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRenewPermissionVPResponse) New() protoreflect.Message {
return new(fastReflection_MsgRenewPermissionVPResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRenewPermissionVPResponse) Interface() protoreflect.ProtoMessage {
return (*MsgRenewPermissionVPResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRenewPermissionVPResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRenewPermissionVPResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVPResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRenewPermissionVPResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVPResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVPResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVPResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRenewPermissionVPResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRenewPermissionVPResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRenewPermissionVPResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRenewPermissionVPResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgRenewPermissionVPResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRenewPermissionVPResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRenewPermissionVPResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRenewPermissionVPResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRenewPermissionVPResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRenewPermissionVPResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewPermissionVPResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRenewPermissionVPResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewPermissionVPResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRenewPermissionVPResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgSetPermissionVPToValidated protoreflect.MessageDescriptor
fd_MsgSetPermissionVPToValidated_creator protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_id protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_effective_until protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_validation_fees protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_issuance_fees protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_verification_fees protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_country protoreflect.FieldDescriptor
fd_MsgSetPermissionVPToValidated_vp_summary_digest_sri protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgSetPermissionVPToValidated = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgSetPermissionVPToValidated")
fd_MsgSetPermissionVPToValidated_creator = md_MsgSetPermissionVPToValidated.Fields().ByName("creator")
fd_MsgSetPermissionVPToValidated_id = md_MsgSetPermissionVPToValidated.Fields().ByName("id")
fd_MsgSetPermissionVPToValidated_effective_until = md_MsgSetPermissionVPToValidated.Fields().ByName("effective_until")
fd_MsgSetPermissionVPToValidated_validation_fees = md_MsgSetPermissionVPToValidated.Fields().ByName("validation_fees")
fd_MsgSetPermissionVPToValidated_issuance_fees = md_MsgSetPermissionVPToValidated.Fields().ByName("issuance_fees")
fd_MsgSetPermissionVPToValidated_verification_fees = md_MsgSetPermissionVPToValidated.Fields().ByName("verification_fees")
fd_MsgSetPermissionVPToValidated_country = md_MsgSetPermissionVPToValidated.Fields().ByName("country")
fd_MsgSetPermissionVPToValidated_vp_summary_digest_sri = md_MsgSetPermissionVPToValidated.Fields().ByName("vp_summary_digest_sri")
}
var _ protoreflect.Message = (*fastReflection_MsgSetPermissionVPToValidated)(nil)
type fastReflection_MsgSetPermissionVPToValidated MsgSetPermissionVPToValidated
func (x *MsgSetPermissionVPToValidated) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgSetPermissionVPToValidated)(x)
}
func (x *MsgSetPermissionVPToValidated) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgSetPermissionVPToValidated_messageType fastReflection_MsgSetPermissionVPToValidated_messageType
var _ protoreflect.MessageType = fastReflection_MsgSetPermissionVPToValidated_messageType{}
type fastReflection_MsgSetPermissionVPToValidated_messageType struct{}
func (x fastReflection_MsgSetPermissionVPToValidated_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgSetPermissionVPToValidated)(nil)
}
func (x fastReflection_MsgSetPermissionVPToValidated_messageType) New() protoreflect.Message {
return new(fastReflection_MsgSetPermissionVPToValidated)
}
func (x fastReflection_MsgSetPermissionVPToValidated_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgSetPermissionVPToValidated
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgSetPermissionVPToValidated) Descriptor() protoreflect.MessageDescriptor {
return md_MsgSetPermissionVPToValidated
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgSetPermissionVPToValidated) Type() protoreflect.MessageType {
return _fastReflection_MsgSetPermissionVPToValidated_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgSetPermissionVPToValidated) New() protoreflect.Message {
return new(fastReflection_MsgSetPermissionVPToValidated)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgSetPermissionVPToValidated) Interface() protoreflect.ProtoMessage {
return (*MsgSetPermissionVPToValidated)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgSetPermissionVPToValidated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgSetPermissionVPToValidated_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgSetPermissionVPToValidated_id, value) {
return
}
}
if x.EffectiveUntil != nil {
value := protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
if !f(fd_MsgSetPermissionVPToValidated_effective_until, value) {
return
}
}
if x.ValidationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationFees)
if !f(fd_MsgSetPermissionVPToValidated_validation_fees, value) {
return
}
}
if x.IssuanceFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuanceFees)
if !f(fd_MsgSetPermissionVPToValidated_issuance_fees, value) {
return
}
}
if x.VerificationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerificationFees)
if !f(fd_MsgSetPermissionVPToValidated_verification_fees, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_MsgSetPermissionVPToValidated_country, value) {
return
}
}
if x.VpSummaryDigestSri != "" {
value := protoreflect.ValueOfString(x.VpSummaryDigestSri)
if !f(fd_MsgSetPermissionVPToValidated_vp_summary_digest_sri, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgSetPermissionVPToValidated) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgSetPermissionVPToValidated.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgSetPermissionVPToValidated.id":
return x.Id != uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until":
return x.EffectiveUntil != nil
case "veranablockchain.permission.MsgSetPermissionVPToValidated.validation_fees":
return x.ValidationFees != uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.issuance_fees":
return x.IssuanceFees != uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.verification_fees":
return x.VerificationFees != uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.country":
return x.Country != ""
case "veranablockchain.permission.MsgSetPermissionVPToValidated.vp_summary_digest_sri":
return x.VpSummaryDigestSri != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidated"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidated does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidated) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgSetPermissionVPToValidated.creator":
x.Creator = ""
case "veranablockchain.permission.MsgSetPermissionVPToValidated.id":
x.Id = uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until":
x.EffectiveUntil = nil
case "veranablockchain.permission.MsgSetPermissionVPToValidated.validation_fees":
x.ValidationFees = uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.issuance_fees":
x.IssuanceFees = uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.verification_fees":
x.VerificationFees = uint64(0)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.country":
x.Country = ""
case "veranablockchain.permission.MsgSetPermissionVPToValidated.vp_summary_digest_sri":
x.VpSummaryDigestSri = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidated"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidated does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgSetPermissionVPToValidated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgSetPermissionVPToValidated.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until":
value := x.EffectiveUntil
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.MsgSetPermissionVPToValidated.validation_fees":
value := x.ValidationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.issuance_fees":
value := x.IssuanceFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.verification_fees":
value := x.VerificationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.vp_summary_digest_sri":
value := x.VpSummaryDigestSri
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidated"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidated does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgSetPermissionVPToValidated.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.id":
x.Id = value.Uint()
case "veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until":
x.EffectiveUntil = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.validation_fees":
x.ValidationFees = value.Uint()
case "veranablockchain.permission.MsgSetPermissionVPToValidated.issuance_fees":
x.IssuanceFees = value.Uint()
case "veranablockchain.permission.MsgSetPermissionVPToValidated.verification_fees":
x.VerificationFees = value.Uint()
case "veranablockchain.permission.MsgSetPermissionVPToValidated.country":
x.Country = value.Interface().(string)
case "veranablockchain.permission.MsgSetPermissionVPToValidated.vp_summary_digest_sri":
x.VpSummaryDigestSri = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidated"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidated does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until":
if x.EffectiveUntil == nil {
x.EffectiveUntil = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
case "veranablockchain.permission.MsgSetPermissionVPToValidated.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.validation_fees":
panic(fmt.Errorf("field validation_fees of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.issuance_fees":
panic(fmt.Errorf("field issuance_fees of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.verification_fees":
panic(fmt.Errorf("field verification_fees of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.country":
panic(fmt.Errorf("field country of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.vp_summary_digest_sri":
panic(fmt.Errorf("field vp_summary_digest_sri of message veranablockchain.permission.MsgSetPermissionVPToValidated is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidated"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidated does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgSetPermissionVPToValidated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgSetPermissionVPToValidated.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgSetPermissionVPToValidated.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.MsgSetPermissionVPToValidated.validation_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.issuance_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.verification_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgSetPermissionVPToValidated.country":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgSetPermissionVPToValidated.vp_summary_digest_sri":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidated"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidated does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgSetPermissionVPToValidated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgSetPermissionVPToValidated", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgSetPermissionVPToValidated) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidated) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgSetPermissionVPToValidated) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgSetPermissionVPToValidated) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgSetPermissionVPToValidated)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.EffectiveUntil != nil {
l = options.Size(x.EffectiveUntil)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ValidationFees != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationFees))
}
if x.IssuanceFees != 0 {
n += 1 + runtime.Sov(uint64(x.IssuanceFees))
}
if x.VerificationFees != 0 {
n += 1 + runtime.Sov(uint64(x.VerificationFees))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.VpSummaryDigestSri)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgSetPermissionVPToValidated)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.VpSummaryDigestSri) > 0 {
i -= len(x.VpSummaryDigestSri)
copy(dAtA[i:], x.VpSummaryDigestSri)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VpSummaryDigestSri)))
i--
dAtA[i] = 0x42
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x3a
}
if x.VerificationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerificationFees))
i--
dAtA[i] = 0x30
}
if x.IssuanceFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuanceFees))
i--
dAtA[i] = 0x28
}
if x.ValidationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationFees))
i--
dAtA[i] = 0x20
}
if x.EffectiveUntil != nil {
encoded, err := options.Marshal(x.EffectiveUntil)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgSetPermissionVPToValidated)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetPermissionVPToValidated: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetPermissionVPToValidated: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveUntil == nil {
x.EffectiveUntil = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveUntil); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
x.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
x.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
x.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpSummaryDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.VpSummaryDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgSetPermissionVPToValidatedResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgSetPermissionVPToValidatedResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgSetPermissionVPToValidatedResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgSetPermissionVPToValidatedResponse)(nil)
type fastReflection_MsgSetPermissionVPToValidatedResponse MsgSetPermissionVPToValidatedResponse
func (x *MsgSetPermissionVPToValidatedResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgSetPermissionVPToValidatedResponse)(x)
}
func (x *MsgSetPermissionVPToValidatedResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgSetPermissionVPToValidatedResponse_messageType fastReflection_MsgSetPermissionVPToValidatedResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgSetPermissionVPToValidatedResponse_messageType{}
type fastReflection_MsgSetPermissionVPToValidatedResponse_messageType struct{}
func (x fastReflection_MsgSetPermissionVPToValidatedResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgSetPermissionVPToValidatedResponse)(nil)
}
func (x fastReflection_MsgSetPermissionVPToValidatedResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgSetPermissionVPToValidatedResponse)
}
func (x fastReflection_MsgSetPermissionVPToValidatedResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgSetPermissionVPToValidatedResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgSetPermissionVPToValidatedResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgSetPermissionVPToValidatedResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) New() protoreflect.Message {
return new(fastReflection_MsgSetPermissionVPToValidatedResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Interface() protoreflect.ProtoMessage {
return (*MsgSetPermissionVPToValidatedResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidatedResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidatedResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidatedResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidatedResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidatedResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgSetPermissionVPToValidatedResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgSetPermissionVPToValidatedResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgSetPermissionVPToValidatedResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgSetPermissionVPToValidatedResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgSetPermissionVPToValidatedResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgSetPermissionVPToValidatedResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetPermissionVPToValidatedResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetPermissionVPToValidatedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRequestPermissionVPTermination protoreflect.MessageDescriptor
fd_MsgRequestPermissionVPTermination_creator protoreflect.FieldDescriptor
fd_MsgRequestPermissionVPTermination_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgRequestPermissionVPTermination = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgRequestPermissionVPTermination")
fd_MsgRequestPermissionVPTermination_creator = md_MsgRequestPermissionVPTermination.Fields().ByName("creator")
fd_MsgRequestPermissionVPTermination_id = md_MsgRequestPermissionVPTermination.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgRequestPermissionVPTermination)(nil)
type fastReflection_MsgRequestPermissionVPTermination MsgRequestPermissionVPTermination
func (x *MsgRequestPermissionVPTermination) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRequestPermissionVPTermination)(x)
}
func (x *MsgRequestPermissionVPTermination) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRequestPermissionVPTermination_messageType fastReflection_MsgRequestPermissionVPTermination_messageType
var _ protoreflect.MessageType = fastReflection_MsgRequestPermissionVPTermination_messageType{}
type fastReflection_MsgRequestPermissionVPTermination_messageType struct{}
func (x fastReflection_MsgRequestPermissionVPTermination_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRequestPermissionVPTermination)(nil)
}
func (x fastReflection_MsgRequestPermissionVPTermination_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRequestPermissionVPTermination)
}
func (x fastReflection_MsgRequestPermissionVPTermination_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRequestPermissionVPTermination
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRequestPermissionVPTermination) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRequestPermissionVPTermination
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRequestPermissionVPTermination) Type() protoreflect.MessageType {
return _fastReflection_MsgRequestPermissionVPTermination_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRequestPermissionVPTermination) New() protoreflect.Message {
return new(fastReflection_MsgRequestPermissionVPTermination)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRequestPermissionVPTermination) Interface() protoreflect.ProtoMessage {
return (*MsgRequestPermissionVPTermination)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRequestPermissionVPTermination) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgRequestPermissionVPTermination_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgRequestPermissionVPTermination_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRequestPermissionVPTermination) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgRequestPermissionVPTermination.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgRequestPermissionVPTermination.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTermination) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgRequestPermissionVPTermination.creator":
x.Creator = ""
case "veranablockchain.permission.MsgRequestPermissionVPTermination.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRequestPermissionVPTermination) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgRequestPermissionVPTermination.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgRequestPermissionVPTermination.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTermination does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTermination) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgRequestPermissionVPTermination.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgRequestPermissionVPTermination.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTermination) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgRequestPermissionVPTermination.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgRequestPermissionVPTermination is not mutable"))
case "veranablockchain.permission.MsgRequestPermissionVPTermination.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgRequestPermissionVPTermination is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRequestPermissionVPTermination) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgRequestPermissionVPTermination.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgRequestPermissionVPTermination.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRequestPermissionVPTermination) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgRequestPermissionVPTermination", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRequestPermissionVPTermination) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTermination) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRequestPermissionVPTermination) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRequestPermissionVPTermination) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRequestPermissionVPTermination)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRequestPermissionVPTermination)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRequestPermissionVPTermination)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPermissionVPTermination: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPermissionVPTermination: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRequestPermissionVPTerminationResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgRequestPermissionVPTerminationResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgRequestPermissionVPTerminationResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgRequestPermissionVPTerminationResponse)(nil)
type fastReflection_MsgRequestPermissionVPTerminationResponse MsgRequestPermissionVPTerminationResponse
func (x *MsgRequestPermissionVPTerminationResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRequestPermissionVPTerminationResponse)(x)
}
func (x *MsgRequestPermissionVPTerminationResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRequestPermissionVPTerminationResponse_messageType fastReflection_MsgRequestPermissionVPTerminationResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgRequestPermissionVPTerminationResponse_messageType{}
type fastReflection_MsgRequestPermissionVPTerminationResponse_messageType struct{}
func (x fastReflection_MsgRequestPermissionVPTerminationResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRequestPermissionVPTerminationResponse)(nil)
}
func (x fastReflection_MsgRequestPermissionVPTerminationResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRequestPermissionVPTerminationResponse)
}
func (x fastReflection_MsgRequestPermissionVPTerminationResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRequestPermissionVPTerminationResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRequestPermissionVPTerminationResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgRequestPermissionVPTerminationResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) New() protoreflect.Message {
return new(fastReflection_MsgRequestPermissionVPTerminationResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Interface() protoreflect.ProtoMessage {
return (*MsgRequestPermissionVPTerminationResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTerminationResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRequestPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgRequestPermissionVPTerminationResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRequestPermissionVPTerminationResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRequestPermissionVPTerminationResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRequestPermissionVPTerminationResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRequestPermissionVPTerminationResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPermissionVPTerminationResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPermissionVPTerminationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgConfirmPermissionVPTermination protoreflect.MessageDescriptor
fd_MsgConfirmPermissionVPTermination_creator protoreflect.FieldDescriptor
fd_MsgConfirmPermissionVPTermination_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgConfirmPermissionVPTermination = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgConfirmPermissionVPTermination")
fd_MsgConfirmPermissionVPTermination_creator = md_MsgConfirmPermissionVPTermination.Fields().ByName("creator")
fd_MsgConfirmPermissionVPTermination_id = md_MsgConfirmPermissionVPTermination.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgConfirmPermissionVPTermination)(nil)
type fastReflection_MsgConfirmPermissionVPTermination MsgConfirmPermissionVPTermination
func (x *MsgConfirmPermissionVPTermination) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgConfirmPermissionVPTermination)(x)
}
func (x *MsgConfirmPermissionVPTermination) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgConfirmPermissionVPTermination_messageType fastReflection_MsgConfirmPermissionVPTermination_messageType
var _ protoreflect.MessageType = fastReflection_MsgConfirmPermissionVPTermination_messageType{}
type fastReflection_MsgConfirmPermissionVPTermination_messageType struct{}
func (x fastReflection_MsgConfirmPermissionVPTermination_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgConfirmPermissionVPTermination)(nil)
}
func (x fastReflection_MsgConfirmPermissionVPTermination_messageType) New() protoreflect.Message {
return new(fastReflection_MsgConfirmPermissionVPTermination)
}
func (x fastReflection_MsgConfirmPermissionVPTermination_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgConfirmPermissionVPTermination
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Descriptor() protoreflect.MessageDescriptor {
return md_MsgConfirmPermissionVPTermination
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Type() protoreflect.MessageType {
return _fastReflection_MsgConfirmPermissionVPTermination_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgConfirmPermissionVPTermination) New() protoreflect.Message {
return new(fastReflection_MsgConfirmPermissionVPTermination)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Interface() protoreflect.ProtoMessage {
return (*MsgConfirmPermissionVPTermination)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgConfirmPermissionVPTermination_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgConfirmPermissionVPTermination_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.creator":
x.Creator = ""
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTermination does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTermination) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgConfirmPermissionVPTermination is not mutable"))
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgConfirmPermissionVPTermination is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgConfirmPermissionVPTermination) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgConfirmPermissionVPTermination.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTermination"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTermination does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgConfirmPermissionVPTermination) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgConfirmPermissionVPTermination", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgConfirmPermissionVPTermination) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTermination) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgConfirmPermissionVPTermination) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgConfirmPermissionVPTermination) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgConfirmPermissionVPTermination)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgConfirmPermissionVPTermination)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgConfirmPermissionVPTermination)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgConfirmPermissionVPTermination: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgConfirmPermissionVPTermination: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgConfirmPermissionVPTerminationResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgConfirmPermissionVPTerminationResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgConfirmPermissionVPTerminationResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgConfirmPermissionVPTerminationResponse)(nil)
type fastReflection_MsgConfirmPermissionVPTerminationResponse MsgConfirmPermissionVPTerminationResponse
func (x *MsgConfirmPermissionVPTerminationResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgConfirmPermissionVPTerminationResponse)(x)
}
func (x *MsgConfirmPermissionVPTerminationResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType{}
type fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType struct{}
func (x fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgConfirmPermissionVPTerminationResponse)(nil)
}
func (x fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgConfirmPermissionVPTerminationResponse)
}
func (x fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgConfirmPermissionVPTerminationResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgConfirmPermissionVPTerminationResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgConfirmPermissionVPTerminationResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) New() protoreflect.Message {
return new(fastReflection_MsgConfirmPermissionVPTerminationResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Interface() protoreflect.ProtoMessage {
return (*MsgConfirmPermissionVPTerminationResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgConfirmPermissionVPTerminationResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgConfirmPermissionVPTerminationResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgConfirmPermissionVPTerminationResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgConfirmPermissionVPTerminationResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgConfirmPermissionVPTerminationResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgConfirmPermissionVPTerminationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCancelPermissionVPLastRequest protoreflect.MessageDescriptor
fd_MsgCancelPermissionVPLastRequest_creator protoreflect.FieldDescriptor
fd_MsgCancelPermissionVPLastRequest_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgCancelPermissionVPLastRequest = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgCancelPermissionVPLastRequest")
fd_MsgCancelPermissionVPLastRequest_creator = md_MsgCancelPermissionVPLastRequest.Fields().ByName("creator")
fd_MsgCancelPermissionVPLastRequest_id = md_MsgCancelPermissionVPLastRequest.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgCancelPermissionVPLastRequest)(nil)
type fastReflection_MsgCancelPermissionVPLastRequest MsgCancelPermissionVPLastRequest
func (x *MsgCancelPermissionVPLastRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCancelPermissionVPLastRequest)(x)
}
func (x *MsgCancelPermissionVPLastRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCancelPermissionVPLastRequest_messageType fastReflection_MsgCancelPermissionVPLastRequest_messageType
var _ protoreflect.MessageType = fastReflection_MsgCancelPermissionVPLastRequest_messageType{}
type fastReflection_MsgCancelPermissionVPLastRequest_messageType struct{}
func (x fastReflection_MsgCancelPermissionVPLastRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCancelPermissionVPLastRequest)(nil)
}
func (x fastReflection_MsgCancelPermissionVPLastRequest_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCancelPermissionVPLastRequest)
}
func (x fastReflection_MsgCancelPermissionVPLastRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCancelPermissionVPLastRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCancelPermissionVPLastRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Type() protoreflect.MessageType {
return _fastReflection_MsgCancelPermissionVPLastRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) New() protoreflect.Message {
return new(fastReflection_MsgCancelPermissionVPLastRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Interface() protoreflect.ProtoMessage {
return (*MsgCancelPermissionVPLastRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCancelPermissionVPLastRequest_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgCancelPermissionVPLastRequest_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.creator":
x.Creator = ""
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgCancelPermissionVPLastRequest is not mutable"))
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgCancelPermissionVPLastRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgCancelPermissionVPLastRequest.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequest"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgCancelPermissionVPLastRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCancelPermissionVPLastRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCancelPermissionVPLastRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCancelPermissionVPLastRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCancelPermissionVPLastRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelPermissionVPLastRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelPermissionVPLastRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCancelPermissionVPLastRequestResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgCancelPermissionVPLastRequestResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgCancelPermissionVPLastRequestResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgCancelPermissionVPLastRequestResponse)(nil)
type fastReflection_MsgCancelPermissionVPLastRequestResponse MsgCancelPermissionVPLastRequestResponse
func (x *MsgCancelPermissionVPLastRequestResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCancelPermissionVPLastRequestResponse)(x)
}
func (x *MsgCancelPermissionVPLastRequestResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType{}
type fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType struct{}
func (x fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCancelPermissionVPLastRequestResponse)(nil)
}
func (x fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCancelPermissionVPLastRequestResponse)
}
func (x fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCancelPermissionVPLastRequestResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCancelPermissionVPLastRequestResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCancelPermissionVPLastRequestResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) New() protoreflect.Message {
return new(fastReflection_MsgCancelPermissionVPLastRequestResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCancelPermissionVPLastRequestResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCancelPermissionVPLastRequestResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCancelPermissionVPLastRequestResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCancelPermissionVPLastRequestResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCancelPermissionVPLastRequestResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelPermissionVPLastRequestResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCancelPermissionVPLastRequestResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateRootPermission protoreflect.MessageDescriptor
fd_MsgCreateRootPermission_creator protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_schema_id protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_did protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_country protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_effective_from protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_effective_until protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_validation_fees protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_issuance_fees protoreflect.FieldDescriptor
fd_MsgCreateRootPermission_verification_fees protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgCreateRootPermission = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgCreateRootPermission")
fd_MsgCreateRootPermission_creator = md_MsgCreateRootPermission.Fields().ByName("creator")
fd_MsgCreateRootPermission_schema_id = md_MsgCreateRootPermission.Fields().ByName("schema_id")
fd_MsgCreateRootPermission_did = md_MsgCreateRootPermission.Fields().ByName("did")
fd_MsgCreateRootPermission_country = md_MsgCreateRootPermission.Fields().ByName("country")
fd_MsgCreateRootPermission_effective_from = md_MsgCreateRootPermission.Fields().ByName("effective_from")
fd_MsgCreateRootPermission_effective_until = md_MsgCreateRootPermission.Fields().ByName("effective_until")
fd_MsgCreateRootPermission_validation_fees = md_MsgCreateRootPermission.Fields().ByName("validation_fees")
fd_MsgCreateRootPermission_issuance_fees = md_MsgCreateRootPermission.Fields().ByName("issuance_fees")
fd_MsgCreateRootPermission_verification_fees = md_MsgCreateRootPermission.Fields().ByName("verification_fees")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateRootPermission)(nil)
type fastReflection_MsgCreateRootPermission MsgCreateRootPermission
func (x *MsgCreateRootPermission) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateRootPermission)(x)
}
func (x *MsgCreateRootPermission) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateRootPermission_messageType fastReflection_MsgCreateRootPermission_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateRootPermission_messageType{}
type fastReflection_MsgCreateRootPermission_messageType struct{}
func (x fastReflection_MsgCreateRootPermission_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateRootPermission)(nil)
}
func (x fastReflection_MsgCreateRootPermission_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateRootPermission)
}
func (x fastReflection_MsgCreateRootPermission_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateRootPermission
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateRootPermission) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateRootPermission
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateRootPermission) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateRootPermission_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateRootPermission) New() protoreflect.Message {
return new(fastReflection_MsgCreateRootPermission)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateRootPermission) Interface() protoreflect.ProtoMessage {
return (*MsgCreateRootPermission)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateRootPermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCreateRootPermission_creator, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_MsgCreateRootPermission_schema_id, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgCreateRootPermission_did, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_MsgCreateRootPermission_country, value) {
return
}
}
if x.EffectiveFrom != nil {
value := protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
if !f(fd_MsgCreateRootPermission_effective_from, value) {
return
}
}
if x.EffectiveUntil != nil {
value := protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
if !f(fd_MsgCreateRootPermission_effective_until, value) {
return
}
}
if x.ValidationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationFees)
if !f(fd_MsgCreateRootPermission_validation_fees, value) {
return
}
}
if x.IssuanceFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuanceFees)
if !f(fd_MsgCreateRootPermission_issuance_fees, value) {
return
}
}
if x.VerificationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerificationFees)
if !f(fd_MsgCreateRootPermission_verification_fees, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateRootPermission) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermission.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgCreateRootPermission.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.permission.MsgCreateRootPermission.did":
return x.Did != ""
case "veranablockchain.permission.MsgCreateRootPermission.country":
return x.Country != ""
case "veranablockchain.permission.MsgCreateRootPermission.effective_from":
return x.EffectiveFrom != nil
case "veranablockchain.permission.MsgCreateRootPermission.effective_until":
return x.EffectiveUntil != nil
case "veranablockchain.permission.MsgCreateRootPermission.validation_fees":
return x.ValidationFees != uint64(0)
case "veranablockchain.permission.MsgCreateRootPermission.issuance_fees":
return x.IssuanceFees != uint64(0)
case "veranablockchain.permission.MsgCreateRootPermission.verification_fees":
return x.VerificationFees != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermission does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermission) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermission.creator":
x.Creator = ""
case "veranablockchain.permission.MsgCreateRootPermission.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.permission.MsgCreateRootPermission.did":
x.Did = ""
case "veranablockchain.permission.MsgCreateRootPermission.country":
x.Country = ""
case "veranablockchain.permission.MsgCreateRootPermission.effective_from":
x.EffectiveFrom = nil
case "veranablockchain.permission.MsgCreateRootPermission.effective_until":
x.EffectiveUntil = nil
case "veranablockchain.permission.MsgCreateRootPermission.validation_fees":
x.ValidationFees = uint64(0)
case "veranablockchain.permission.MsgCreateRootPermission.issuance_fees":
x.IssuanceFees = uint64(0)
case "veranablockchain.permission.MsgCreateRootPermission.verification_fees":
x.VerificationFees = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermission does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateRootPermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgCreateRootPermission.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgCreateRootPermission.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgCreateRootPermission.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgCreateRootPermission.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgCreateRootPermission.effective_from":
value := x.EffectiveFrom
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.MsgCreateRootPermission.effective_until":
value := x.EffectiveUntil
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.MsgCreateRootPermission.validation_fees":
value := x.ValidationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgCreateRootPermission.issuance_fees":
value := x.IssuanceFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgCreateRootPermission.verification_fees":
value := x.VerificationFees
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermission does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermission.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgCreateRootPermission.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.permission.MsgCreateRootPermission.did":
x.Did = value.Interface().(string)
case "veranablockchain.permission.MsgCreateRootPermission.country":
x.Country = value.Interface().(string)
case "veranablockchain.permission.MsgCreateRootPermission.effective_from":
x.EffectiveFrom = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.MsgCreateRootPermission.effective_until":
x.EffectiveUntil = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.MsgCreateRootPermission.validation_fees":
x.ValidationFees = value.Uint()
case "veranablockchain.permission.MsgCreateRootPermission.issuance_fees":
x.IssuanceFees = value.Uint()
case "veranablockchain.permission.MsgCreateRootPermission.verification_fees":
x.VerificationFees = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermission does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermission.effective_from":
if x.EffectiveFrom == nil {
x.EffectiveFrom = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
case "veranablockchain.permission.MsgCreateRootPermission.effective_until":
if x.EffectiveUntil == nil {
x.EffectiveUntil = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
case "veranablockchain.permission.MsgCreateRootPermission.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
case "veranablockchain.permission.MsgCreateRootPermission.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
case "veranablockchain.permission.MsgCreateRootPermission.did":
panic(fmt.Errorf("field did of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
case "veranablockchain.permission.MsgCreateRootPermission.country":
panic(fmt.Errorf("field country of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
case "veranablockchain.permission.MsgCreateRootPermission.validation_fees":
panic(fmt.Errorf("field validation_fees of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
case "veranablockchain.permission.MsgCreateRootPermission.issuance_fees":
panic(fmt.Errorf("field issuance_fees of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
case "veranablockchain.permission.MsgCreateRootPermission.verification_fees":
panic(fmt.Errorf("field verification_fees of message veranablockchain.permission.MsgCreateRootPermission is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermission does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateRootPermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermission.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgCreateRootPermission.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgCreateRootPermission.did":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgCreateRootPermission.country":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgCreateRootPermission.effective_from":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.MsgCreateRootPermission.effective_until":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.MsgCreateRootPermission.validation_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgCreateRootPermission.issuance_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgCreateRootPermission.verification_fees":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermission does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateRootPermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgCreateRootPermission", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateRootPermission) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermission) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateRootPermission) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateRootPermission) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateRootPermission)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Country)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveFrom != nil {
l = options.Size(x.EffectiveFrom)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveUntil != nil {
l = options.Size(x.EffectiveUntil)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ValidationFees != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationFees))
}
if x.IssuanceFees != 0 {
n += 1 + runtime.Sov(uint64(x.IssuanceFees))
}
if x.VerificationFees != 0 {
n += 1 + runtime.Sov(uint64(x.VerificationFees))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateRootPermission)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.VerificationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerificationFees))
i--
dAtA[i] = 0x48
}
if x.IssuanceFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuanceFees))
i--
dAtA[i] = 0x40
}
if x.ValidationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationFees))
i--
dAtA[i] = 0x38
}
if x.EffectiveUntil != nil {
encoded, err := options.Marshal(x.EffectiveUntil)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if x.EffectiveFrom != nil {
encoded, err := options.Marshal(x.EffectiveFrom)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x22
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x1a
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateRootPermission)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateRootPermission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateRootPermission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveFrom", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveFrom == nil {
x.EffectiveFrom = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveFrom); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveUntil == nil {
x.EffectiveUntil = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveUntil); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
x.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
x.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
x.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateRootPermissionResponse protoreflect.MessageDescriptor
fd_MsgCreateRootPermissionResponse_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgCreateRootPermissionResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgCreateRootPermissionResponse")
fd_MsgCreateRootPermissionResponse_id = md_MsgCreateRootPermissionResponse.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateRootPermissionResponse)(nil)
type fastReflection_MsgCreateRootPermissionResponse MsgCreateRootPermissionResponse
func (x *MsgCreateRootPermissionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateRootPermissionResponse)(x)
}
func (x *MsgCreateRootPermissionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateRootPermissionResponse_messageType fastReflection_MsgCreateRootPermissionResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateRootPermissionResponse_messageType{}
type fastReflection_MsgCreateRootPermissionResponse_messageType struct{}
func (x fastReflection_MsgCreateRootPermissionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateRootPermissionResponse)(nil)
}
func (x fastReflection_MsgCreateRootPermissionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateRootPermissionResponse)
}
func (x fastReflection_MsgCreateRootPermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateRootPermissionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateRootPermissionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateRootPermissionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateRootPermissionResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateRootPermissionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateRootPermissionResponse) New() protoreflect.Message {
return new(fastReflection_MsgCreateRootPermissionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateRootPermissionResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCreateRootPermissionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateRootPermissionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgCreateRootPermissionResponse_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateRootPermissionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermissionResponse.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermissionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermissionResponse.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateRootPermissionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgCreateRootPermissionResponse.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermissionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermissionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermissionResponse.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermissionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermissionResponse.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgCreateRootPermissionResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermissionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateRootPermissionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateRootPermissionResponse.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateRootPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateRootPermissionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateRootPermissionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgCreateRootPermissionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateRootPermissionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateRootPermissionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateRootPermissionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateRootPermissionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateRootPermissionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateRootPermissionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateRootPermissionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateRootPermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateRootPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgExtendPermission protoreflect.MessageDescriptor
fd_MsgExtendPermission_creator protoreflect.FieldDescriptor
fd_MsgExtendPermission_id protoreflect.FieldDescriptor
fd_MsgExtendPermission_effective_until protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgExtendPermission = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgExtendPermission")
fd_MsgExtendPermission_creator = md_MsgExtendPermission.Fields().ByName("creator")
fd_MsgExtendPermission_id = md_MsgExtendPermission.Fields().ByName("id")
fd_MsgExtendPermission_effective_until = md_MsgExtendPermission.Fields().ByName("effective_until")
}
var _ protoreflect.Message = (*fastReflection_MsgExtendPermission)(nil)
type fastReflection_MsgExtendPermission MsgExtendPermission
func (x *MsgExtendPermission) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgExtendPermission)(x)
}
func (x *MsgExtendPermission) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgExtendPermission_messageType fastReflection_MsgExtendPermission_messageType
var _ protoreflect.MessageType = fastReflection_MsgExtendPermission_messageType{}
type fastReflection_MsgExtendPermission_messageType struct{}
func (x fastReflection_MsgExtendPermission_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgExtendPermission)(nil)
}
func (x fastReflection_MsgExtendPermission_messageType) New() protoreflect.Message {
return new(fastReflection_MsgExtendPermission)
}
func (x fastReflection_MsgExtendPermission_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgExtendPermission
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgExtendPermission) Descriptor() protoreflect.MessageDescriptor {
return md_MsgExtendPermission
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgExtendPermission) Type() protoreflect.MessageType {
return _fastReflection_MsgExtendPermission_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgExtendPermission) New() protoreflect.Message {
return new(fastReflection_MsgExtendPermission)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgExtendPermission) Interface() protoreflect.ProtoMessage {
return (*MsgExtendPermission)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgExtendPermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgExtendPermission_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgExtendPermission_id, value) {
return
}
}
if x.EffectiveUntil != nil {
value := protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
if !f(fd_MsgExtendPermission_effective_until, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgExtendPermission) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgExtendPermission.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgExtendPermission.id":
return x.Id != uint64(0)
case "veranablockchain.permission.MsgExtendPermission.effective_until":
return x.EffectiveUntil != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermission does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermission) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgExtendPermission.creator":
x.Creator = ""
case "veranablockchain.permission.MsgExtendPermission.id":
x.Id = uint64(0)
case "veranablockchain.permission.MsgExtendPermission.effective_until":
x.EffectiveUntil = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermission does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgExtendPermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgExtendPermission.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgExtendPermission.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgExtendPermission.effective_until":
value := x.EffectiveUntil
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermission does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgExtendPermission.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgExtendPermission.id":
x.Id = value.Uint()
case "veranablockchain.permission.MsgExtendPermission.effective_until":
x.EffectiveUntil = value.Message().Interface().(*timestamppb.Timestamp)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermission does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgExtendPermission.effective_until":
if x.EffectiveUntil == nil {
x.EffectiveUntil = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
case "veranablockchain.permission.MsgExtendPermission.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgExtendPermission is not mutable"))
case "veranablockchain.permission.MsgExtendPermission.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgExtendPermission is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermission does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgExtendPermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgExtendPermission.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgExtendPermission.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgExtendPermission.effective_until":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermission does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgExtendPermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgExtendPermission", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgExtendPermission) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermission) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgExtendPermission) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgExtendPermission) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgExtendPermission)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.EffectiveUntil != nil {
l = options.Size(x.EffectiveUntil)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgExtendPermission)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.EffectiveUntil != nil {
encoded, err := options.Marshal(x.EffectiveUntil)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgExtendPermission)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExtendPermission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExtendPermission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveUntil == nil {
x.EffectiveUntil = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveUntil); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgExtendPermissionResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgExtendPermissionResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgExtendPermissionResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgExtendPermissionResponse)(nil)
type fastReflection_MsgExtendPermissionResponse MsgExtendPermissionResponse
func (x *MsgExtendPermissionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgExtendPermissionResponse)(x)
}
func (x *MsgExtendPermissionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgExtendPermissionResponse_messageType fastReflection_MsgExtendPermissionResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgExtendPermissionResponse_messageType{}
type fastReflection_MsgExtendPermissionResponse_messageType struct{}
func (x fastReflection_MsgExtendPermissionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgExtendPermissionResponse)(nil)
}
func (x fastReflection_MsgExtendPermissionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgExtendPermissionResponse)
}
func (x fastReflection_MsgExtendPermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgExtendPermissionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgExtendPermissionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgExtendPermissionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgExtendPermissionResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgExtendPermissionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgExtendPermissionResponse) New() protoreflect.Message {
return new(fastReflection_MsgExtendPermissionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgExtendPermissionResponse) Interface() protoreflect.ProtoMessage {
return (*MsgExtendPermissionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgExtendPermissionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgExtendPermissionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermissionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgExtendPermissionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermissionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermissionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermissionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermissionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermissionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgExtendPermissionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgExtendPermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgExtendPermissionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgExtendPermissionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgExtendPermissionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgExtendPermissionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgExtendPermissionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgExtendPermissionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgExtendPermissionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgExtendPermissionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgExtendPermissionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgExtendPermissionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExtendPermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgExtendPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRevokePermission protoreflect.MessageDescriptor
fd_MsgRevokePermission_creator protoreflect.FieldDescriptor
fd_MsgRevokePermission_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgRevokePermission = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgRevokePermission")
fd_MsgRevokePermission_creator = md_MsgRevokePermission.Fields().ByName("creator")
fd_MsgRevokePermission_id = md_MsgRevokePermission.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgRevokePermission)(nil)
type fastReflection_MsgRevokePermission MsgRevokePermission
func (x *MsgRevokePermission) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRevokePermission)(x)
}
func (x *MsgRevokePermission) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRevokePermission_messageType fastReflection_MsgRevokePermission_messageType
var _ protoreflect.MessageType = fastReflection_MsgRevokePermission_messageType{}
type fastReflection_MsgRevokePermission_messageType struct{}
func (x fastReflection_MsgRevokePermission_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRevokePermission)(nil)
}
func (x fastReflection_MsgRevokePermission_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRevokePermission)
}
func (x fastReflection_MsgRevokePermission_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokePermission
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRevokePermission) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokePermission
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRevokePermission) Type() protoreflect.MessageType {
return _fastReflection_MsgRevokePermission_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRevokePermission) New() protoreflect.Message {
return new(fastReflection_MsgRevokePermission)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRevokePermission) Interface() protoreflect.ProtoMessage {
return (*MsgRevokePermission)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRevokePermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgRevokePermission_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgRevokePermission_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRevokePermission) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgRevokePermission.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgRevokePermission.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermission does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermission) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgRevokePermission.creator":
x.Creator = ""
case "veranablockchain.permission.MsgRevokePermission.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermission does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRevokePermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgRevokePermission.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgRevokePermission.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermission does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgRevokePermission.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgRevokePermission.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermission does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgRevokePermission.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgRevokePermission is not mutable"))
case "veranablockchain.permission.MsgRevokePermission.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgRevokePermission is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermission does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRevokePermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgRevokePermission.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgRevokePermission.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermission"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermission does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRevokePermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgRevokePermission", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRevokePermission) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermission) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRevokePermission) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRevokePermission) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRevokePermission)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokePermission)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokePermission)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgRevokePermissionResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgRevokePermissionResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgRevokePermissionResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgRevokePermissionResponse)(nil)
type fastReflection_MsgRevokePermissionResponse MsgRevokePermissionResponse
func (x *MsgRevokePermissionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgRevokePermissionResponse)(x)
}
func (x *MsgRevokePermissionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgRevokePermissionResponse_messageType fastReflection_MsgRevokePermissionResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgRevokePermissionResponse_messageType{}
type fastReflection_MsgRevokePermissionResponse_messageType struct{}
func (x fastReflection_MsgRevokePermissionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgRevokePermissionResponse)(nil)
}
func (x fastReflection_MsgRevokePermissionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgRevokePermissionResponse)
}
func (x fastReflection_MsgRevokePermissionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokePermissionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgRevokePermissionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgRevokePermissionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgRevokePermissionResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgRevokePermissionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgRevokePermissionResponse) New() protoreflect.Message {
return new(fastReflection_MsgRevokePermissionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgRevokePermissionResponse) Interface() protoreflect.ProtoMessage {
return (*MsgRevokePermissionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgRevokePermissionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgRevokePermissionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermissionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermissionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermissionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgRevokePermissionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermissionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermissionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermissionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermissionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermissionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgRevokePermissionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgRevokePermissionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgRevokePermissionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgRevokePermissionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgRevokePermissionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgRevokePermissionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgRevokePermissionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgRevokePermissionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgRevokePermissionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgRevokePermissionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokePermissionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgRevokePermissionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateOrUpdatePermissionSession protoreflect.MessageDescriptor
fd_MsgCreateOrUpdatePermissionSession_creator protoreflect.FieldDescriptor
fd_MsgCreateOrUpdatePermissionSession_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdatePermissionSession_issuer_perm_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdatePermissionSession_verifier_perm_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdatePermissionSession_agent_perm_id protoreflect.FieldDescriptor
fd_MsgCreateOrUpdatePermissionSession_wallet_agent_perm_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgCreateOrUpdatePermissionSession = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgCreateOrUpdatePermissionSession")
fd_MsgCreateOrUpdatePermissionSession_creator = md_MsgCreateOrUpdatePermissionSession.Fields().ByName("creator")
fd_MsgCreateOrUpdatePermissionSession_id = md_MsgCreateOrUpdatePermissionSession.Fields().ByName("id")
fd_MsgCreateOrUpdatePermissionSession_issuer_perm_id = md_MsgCreateOrUpdatePermissionSession.Fields().ByName("issuer_perm_id")
fd_MsgCreateOrUpdatePermissionSession_verifier_perm_id = md_MsgCreateOrUpdatePermissionSession.Fields().ByName("verifier_perm_id")
fd_MsgCreateOrUpdatePermissionSession_agent_perm_id = md_MsgCreateOrUpdatePermissionSession.Fields().ByName("agent_perm_id")
fd_MsgCreateOrUpdatePermissionSession_wallet_agent_perm_id = md_MsgCreateOrUpdatePermissionSession.Fields().ByName("wallet_agent_perm_id")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateOrUpdatePermissionSession)(nil)
type fastReflection_MsgCreateOrUpdatePermissionSession MsgCreateOrUpdatePermissionSession
func (x *MsgCreateOrUpdatePermissionSession) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdatePermissionSession)(x)
}
func (x *MsgCreateOrUpdatePermissionSession) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateOrUpdatePermissionSession_messageType fastReflection_MsgCreateOrUpdatePermissionSession_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateOrUpdatePermissionSession_messageType{}
type fastReflection_MsgCreateOrUpdatePermissionSession_messageType struct{}
func (x fastReflection_MsgCreateOrUpdatePermissionSession_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdatePermissionSession)(nil)
}
func (x fastReflection_MsgCreateOrUpdatePermissionSession_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdatePermissionSession)
}
func (x fastReflection_MsgCreateOrUpdatePermissionSession_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdatePermissionSession
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdatePermissionSession
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateOrUpdatePermissionSession_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdatePermissionSession)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Interface() protoreflect.ProtoMessage {
return (*MsgCreateOrUpdatePermissionSession)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCreateOrUpdatePermissionSession_creator, value) {
return
}
}
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_MsgCreateOrUpdatePermissionSession_id, value) {
return
}
}
if x.IssuerPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuerPermId)
if !f(fd_MsgCreateOrUpdatePermissionSession_issuer_perm_id, value) {
return
}
}
if x.VerifierPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerifierPermId)
if !f(fd_MsgCreateOrUpdatePermissionSession_verifier_perm_id, value) {
return
}
}
if x.AgentPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.AgentPermId)
if !f(fd_MsgCreateOrUpdatePermissionSession_agent_perm_id, value) {
return
}
}
if x.WalletAgentPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.WalletAgentPermId)
if !f(fd_MsgCreateOrUpdatePermissionSession_wallet_agent_perm_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.creator":
return x.Creator != ""
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.id":
return x.Id != ""
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.issuer_perm_id":
return x.IssuerPermId != uint64(0)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.verifier_perm_id":
return x.VerifierPermId != uint64(0)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.agent_perm_id":
return x.AgentPermId != uint64(0)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.wallet_agent_perm_id":
return x.WalletAgentPermId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSession does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.creator":
x.Creator = ""
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.id":
x.Id = ""
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.issuer_perm_id":
x.IssuerPermId = uint64(0)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.verifier_perm_id":
x.VerifierPermId = uint64(0)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.agent_perm_id":
x.AgentPermId = uint64(0)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.wallet_agent_perm_id":
x.WalletAgentPermId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSession does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.id":
value := x.Id
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.issuer_perm_id":
value := x.IssuerPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.verifier_perm_id":
value := x.VerifierPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.agent_perm_id":
value := x.AgentPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.wallet_agent_perm_id":
value := x.WalletAgentPermId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSession does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.id":
x.Id = value.Interface().(string)
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.issuer_perm_id":
x.IssuerPermId = value.Uint()
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.verifier_perm_id":
x.VerifierPermId = value.Uint()
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.agent_perm_id":
x.AgentPermId = value.Uint()
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.wallet_agent_perm_id":
x.WalletAgentPermId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSession does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.creator":
panic(fmt.Errorf("field creator of message veranablockchain.permission.MsgCreateOrUpdatePermissionSession is not mutable"))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgCreateOrUpdatePermissionSession is not mutable"))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.issuer_perm_id":
panic(fmt.Errorf("field issuer_perm_id of message veranablockchain.permission.MsgCreateOrUpdatePermissionSession is not mutable"))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.verifier_perm_id":
panic(fmt.Errorf("field verifier_perm_id of message veranablockchain.permission.MsgCreateOrUpdatePermissionSession is not mutable"))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.agent_perm_id":
panic(fmt.Errorf("field agent_perm_id of message veranablockchain.permission.MsgCreateOrUpdatePermissionSession is not mutable"))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.wallet_agent_perm_id":
panic(fmt.Errorf("field wallet_agent_perm_id of message veranablockchain.permission.MsgCreateOrUpdatePermissionSession is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSession does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.id":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.issuer_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.verifier_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.agent_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSession.wallet_agent_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSession does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgCreateOrUpdatePermissionSession", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateOrUpdatePermissionSession) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateOrUpdatePermissionSession)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.IssuerPermId != 0 {
n += 1 + runtime.Sov(uint64(x.IssuerPermId))
}
if x.VerifierPermId != 0 {
n += 1 + runtime.Sov(uint64(x.VerifierPermId))
}
if x.AgentPermId != 0 {
n += 1 + runtime.Sov(uint64(x.AgentPermId))
}
if x.WalletAgentPermId != 0 {
n += 1 + runtime.Sov(uint64(x.WalletAgentPermId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdatePermissionSession)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.WalletAgentPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.WalletAgentPermId))
i--
dAtA[i] = 0x30
}
if x.AgentPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.AgentPermId))
i--
dAtA[i] = 0x28
}
if x.VerifierPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerifierPermId))
i--
dAtA[i] = 0x20
}
if x.IssuerPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuerPermId))
i--
dAtA[i] = 0x18
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdatePermissionSession)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdatePermissionSession: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdatePermissionSession: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuerPermId", wireType)
}
x.IssuerPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuerPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerifierPermId", wireType)
}
x.VerifierPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerifierPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AgentPermId", wireType)
}
x.AgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.AgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletAgentPermId", wireType)
}
x.WalletAgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.WalletAgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateOrUpdatePermissionSessionResponse protoreflect.MessageDescriptor
fd_MsgCreateOrUpdatePermissionSessionResponse_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_tx_proto_init()
md_MsgCreateOrUpdatePermissionSessionResponse = File_veranablockchain_permission_tx_proto.Messages().ByName("MsgCreateOrUpdatePermissionSessionResponse")
fd_MsgCreateOrUpdatePermissionSessionResponse_id = md_MsgCreateOrUpdatePermissionSessionResponse.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateOrUpdatePermissionSessionResponse)(nil)
type fastReflection_MsgCreateOrUpdatePermissionSessionResponse MsgCreateOrUpdatePermissionSessionResponse
func (x *MsgCreateOrUpdatePermissionSessionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdatePermissionSessionResponse)(x)
}
func (x *MsgCreateOrUpdatePermissionSessionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType{}
type fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType struct{}
func (x fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateOrUpdatePermissionSessionResponse)(nil)
}
func (x fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdatePermissionSessionResponse)
}
func (x fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdatePermissionSessionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateOrUpdatePermissionSessionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateOrUpdatePermissionSessionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) New() protoreflect.Message {
return new(fastReflection_MsgCreateOrUpdatePermissionSessionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCreateOrUpdatePermissionSessionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_MsgCreateOrUpdatePermissionSessionResponse_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse.id":
return x.Id != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse.id":
x.Id = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse.id":
value := x.Id
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse.id":
x.Id = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse.id":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse"))
}
panic(fmt.Errorf("message veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateOrUpdatePermissionSessionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateOrUpdatePermissionSessionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdatePermissionSessionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateOrUpdatePermissionSessionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdatePermissionSessionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateOrUpdatePermissionSessionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/permission/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{1}
}
// MsgStartPermissionVP represents a message to start a permission validation process
type MsgStartPermissionVP struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Type_ uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
ValidatorPermId uint64 `protobuf:"varint,3,opt,name=validator_perm_id,json=validatorPermId,proto3" json:"validator_perm_id,omitempty"`
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
Did string `protobuf:"bytes,5,opt,name=did,proto3" json:"did,omitempty"` // optional
}
func (x *MsgStartPermissionVP) Reset() {
*x = MsgStartPermissionVP{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgStartPermissionVP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgStartPermissionVP) ProtoMessage() {}
// Deprecated: Use MsgStartPermissionVP.ProtoReflect.Descriptor instead.
func (*MsgStartPermissionVP) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{2}
}
func (x *MsgStartPermissionVP) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgStartPermissionVP) GetType_() uint32 {
if x != nil {
return x.Type_
}
return 0
}
func (x *MsgStartPermissionVP) GetValidatorPermId() uint64 {
if x != nil {
return x.ValidatorPermId
}
return 0
}
func (x *MsgStartPermissionVP) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *MsgStartPermissionVP) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
// MsgStartPermissionVPResponse defines the Msg/StartPermissionVP response type
type MsgStartPermissionVPResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PermissionId uint64 `protobuf:"varint,1,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"`
}
func (x *MsgStartPermissionVPResponse) Reset() {
*x = MsgStartPermissionVPResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgStartPermissionVPResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgStartPermissionVPResponse) ProtoMessage() {}
// Deprecated: Use MsgStartPermissionVPResponse.ProtoReflect.Descriptor instead.
func (*MsgStartPermissionVPResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{3}
}
func (x *MsgStartPermissionVPResponse) GetPermissionId() uint64 {
if x != nil {
return x.PermissionId
}
return 0
}
// MsgRenewPermissionVP represents a message to renew a permission validation process
type MsgRenewPermissionVP struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // ID of the permission to renew
}
func (x *MsgRenewPermissionVP) Reset() {
*x = MsgRenewPermissionVP{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRenewPermissionVP) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRenewPermissionVP) ProtoMessage() {}
// Deprecated: Use MsgRenewPermissionVP.ProtoReflect.Descriptor instead.
func (*MsgRenewPermissionVP) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{4}
}
func (x *MsgRenewPermissionVP) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgRenewPermissionVP) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
// MsgRenewPermissionVPResponse defines the Msg/RenewPermissionVP response type
type MsgRenewPermissionVPResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgRenewPermissionVPResponse) Reset() {
*x = MsgRenewPermissionVPResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRenewPermissionVPResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRenewPermissionVPResponse) ProtoMessage() {}
// Deprecated: Use MsgRenewPermissionVPResponse.ProtoReflect.Descriptor instead.
func (*MsgRenewPermissionVPResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{5}
}
// MsgSetPermissionVPToValidated represents a message to set a permission validation process to validated state
type MsgSetPermissionVPToValidated struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
EffectiveUntil *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=effective_until,json=effectiveUntil,proto3" json:"effective_until,omitempty"`
ValidationFees uint64 `protobuf:"varint,4,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,5,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,6,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"`
VpSummaryDigestSri string `protobuf:"bytes,8,opt,name=vp_summary_digest_sri,json=vpSummaryDigestSri,proto3" json:"vp_summary_digest_sri,omitempty"`
}
func (x *MsgSetPermissionVPToValidated) Reset() {
*x = MsgSetPermissionVPToValidated{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgSetPermissionVPToValidated) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgSetPermissionVPToValidated) ProtoMessage() {}
// Deprecated: Use MsgSetPermissionVPToValidated.ProtoReflect.Descriptor instead.
func (*MsgSetPermissionVPToValidated) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{6}
}
func (x *MsgSetPermissionVPToValidated) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgSetPermissionVPToValidated) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgSetPermissionVPToValidated) GetEffectiveUntil() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveUntil
}
return nil
}
func (x *MsgSetPermissionVPToValidated) GetValidationFees() uint64 {
if x != nil {
return x.ValidationFees
}
return 0
}
func (x *MsgSetPermissionVPToValidated) GetIssuanceFees() uint64 {
if x != nil {
return x.IssuanceFees
}
return 0
}
func (x *MsgSetPermissionVPToValidated) GetVerificationFees() uint64 {
if x != nil {
return x.VerificationFees
}
return 0
}
func (x *MsgSetPermissionVPToValidated) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *MsgSetPermissionVPToValidated) GetVpSummaryDigestSri() string {
if x != nil {
return x.VpSummaryDigestSri
}
return ""
}
// MsgSetPermissionVPToValidatedResponse defines the Msg/SetPermissionVPToValidated response type
type MsgSetPermissionVPToValidatedResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgSetPermissionVPToValidatedResponse) Reset() {
*x = MsgSetPermissionVPToValidatedResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgSetPermissionVPToValidatedResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgSetPermissionVPToValidatedResponse) ProtoMessage() {}
// Deprecated: Use MsgSetPermissionVPToValidatedResponse.ProtoReflect.Descriptor instead.
func (*MsgSetPermissionVPToValidatedResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{7}
}
// MsgRequestPermissionVPTermination represents a message to request termination of a permission validation process
type MsgRequestPermissionVPTermination struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // id of the validation process
}
func (x *MsgRequestPermissionVPTermination) Reset() {
*x = MsgRequestPermissionVPTermination{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRequestPermissionVPTermination) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRequestPermissionVPTermination) ProtoMessage() {}
// Deprecated: Use MsgRequestPermissionVPTermination.ProtoReflect.Descriptor instead.
func (*MsgRequestPermissionVPTermination) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{8}
}
func (x *MsgRequestPermissionVPTermination) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgRequestPermissionVPTermination) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
// MsgRequestPermissionVPTerminationResponse defines the Msg/RequestPermissionVPTermination response type
type MsgRequestPermissionVPTerminationResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgRequestPermissionVPTerminationResponse) Reset() {
*x = MsgRequestPermissionVPTerminationResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRequestPermissionVPTerminationResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRequestPermissionVPTerminationResponse) ProtoMessage() {}
// Deprecated: Use MsgRequestPermissionVPTerminationResponse.ProtoReflect.Descriptor instead.
func (*MsgRequestPermissionVPTerminationResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{9}
}
type MsgConfirmPermissionVPTermination struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Permission ID
}
func (x *MsgConfirmPermissionVPTermination) Reset() {
*x = MsgConfirmPermissionVPTermination{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgConfirmPermissionVPTermination) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgConfirmPermissionVPTermination) ProtoMessage() {}
// Deprecated: Use MsgConfirmPermissionVPTermination.ProtoReflect.Descriptor instead.
func (*MsgConfirmPermissionVPTermination) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{10}
}
func (x *MsgConfirmPermissionVPTermination) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgConfirmPermissionVPTermination) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgConfirmPermissionVPTerminationResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgConfirmPermissionVPTerminationResponse) Reset() {
*x = MsgConfirmPermissionVPTerminationResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgConfirmPermissionVPTerminationResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgConfirmPermissionVPTerminationResponse) ProtoMessage() {}
// Deprecated: Use MsgConfirmPermissionVPTerminationResponse.ProtoReflect.Descriptor instead.
func (*MsgConfirmPermissionVPTerminationResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{11}
}
type MsgCancelPermissionVPLastRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Permission ID
}
func (x *MsgCancelPermissionVPLastRequest) Reset() {
*x = MsgCancelPermissionVPLastRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCancelPermissionVPLastRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCancelPermissionVPLastRequest) ProtoMessage() {}
// Deprecated: Use MsgCancelPermissionVPLastRequest.ProtoReflect.Descriptor instead.
func (*MsgCancelPermissionVPLastRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{12}
}
func (x *MsgCancelPermissionVPLastRequest) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCancelPermissionVPLastRequest) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgCancelPermissionVPLastRequestResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgCancelPermissionVPLastRequestResponse) Reset() {
*x = MsgCancelPermissionVPLastRequestResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCancelPermissionVPLastRequestResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCancelPermissionVPLastRequestResponse) ProtoMessage() {}
// Deprecated: Use MsgCancelPermissionVPLastRequestResponse.ProtoReflect.Descriptor instead.
func (*MsgCancelPermissionVPLastRequestResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{13}
}
type MsgCreateRootPermission struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
SchemaId uint64 `protobuf:"varint,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"`
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
EffectiveFrom *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=effective_from,json=effectiveFrom,proto3" json:"effective_from,omitempty"`
EffectiveUntil *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=effective_until,json=effectiveUntil,proto3" json:"effective_until,omitempty"`
ValidationFees uint64 `protobuf:"varint,7,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,8,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,9,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
}
func (x *MsgCreateRootPermission) Reset() {
*x = MsgCreateRootPermission{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateRootPermission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateRootPermission) ProtoMessage() {}
// Deprecated: Use MsgCreateRootPermission.ProtoReflect.Descriptor instead.
func (*MsgCreateRootPermission) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{14}
}
func (x *MsgCreateRootPermission) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCreateRootPermission) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *MsgCreateRootPermission) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *MsgCreateRootPermission) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *MsgCreateRootPermission) GetEffectiveFrom() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveFrom
}
return nil
}
func (x *MsgCreateRootPermission) GetEffectiveUntil() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveUntil
}
return nil
}
func (x *MsgCreateRootPermission) GetValidationFees() uint64 {
if x != nil {
return x.ValidationFees
}
return 0
}
func (x *MsgCreateRootPermission) GetIssuanceFees() uint64 {
if x != nil {
return x.IssuanceFees
}
return 0
}
func (x *MsgCreateRootPermission) GetVerificationFees() uint64 {
if x != nil {
return x.VerificationFees
}
return 0
}
type MsgCreateRootPermissionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the created permission
}
func (x *MsgCreateRootPermissionResponse) Reset() {
*x = MsgCreateRootPermissionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateRootPermissionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateRootPermissionResponse) ProtoMessage() {}
// Deprecated: Use MsgCreateRootPermissionResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateRootPermissionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{15}
}
func (x *MsgCreateRootPermissionResponse) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgExtendPermission struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Permission ID
EffectiveUntil *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=effective_until,json=effectiveUntil,proto3" json:"effective_until,omitempty"`
}
func (x *MsgExtendPermission) Reset() {
*x = MsgExtendPermission{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgExtendPermission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgExtendPermission) ProtoMessage() {}
// Deprecated: Use MsgExtendPermission.ProtoReflect.Descriptor instead.
func (*MsgExtendPermission) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{16}
}
func (x *MsgExtendPermission) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgExtendPermission) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgExtendPermission) GetEffectiveUntil() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveUntil
}
return nil
}
type MsgExtendPermissionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgExtendPermissionResponse) Reset() {
*x = MsgExtendPermissionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgExtendPermissionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgExtendPermissionResponse) ProtoMessage() {}
// Deprecated: Use MsgExtendPermissionResponse.ProtoReflect.Descriptor instead.
func (*MsgExtendPermissionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{17}
}
type MsgRevokePermission struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Permission ID
}
func (x *MsgRevokePermission) Reset() {
*x = MsgRevokePermission{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRevokePermission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRevokePermission) ProtoMessage() {}
// Deprecated: Use MsgRevokePermission.ProtoReflect.Descriptor instead.
func (*MsgRevokePermission) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{18}
}
func (x *MsgRevokePermission) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgRevokePermission) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
type MsgRevokePermissionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgRevokePermissionResponse) Reset() {
*x = MsgRevokePermissionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgRevokePermissionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgRevokePermissionResponse) ProtoMessage() {}
// Deprecated: Use MsgRevokePermissionResponse.ProtoReflect.Descriptor instead.
func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{19}
}
type MsgCreateOrUpdatePermissionSession struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // UUID
IssuerPermId uint64 `protobuf:"varint,3,opt,name=issuer_perm_id,json=issuerPermId,proto3" json:"issuer_perm_id,omitempty"`
VerifierPermId uint64 `protobuf:"varint,4,opt,name=verifier_perm_id,json=verifierPermId,proto3" json:"verifier_perm_id,omitempty"`
AgentPermId uint64 `protobuf:"varint,5,opt,name=agent_perm_id,json=agentPermId,proto3" json:"agent_perm_id,omitempty"`
WalletAgentPermId uint64 `protobuf:"varint,6,opt,name=wallet_agent_perm_id,json=walletAgentPermId,proto3" json:"wallet_agent_perm_id,omitempty"`
}
func (x *MsgCreateOrUpdatePermissionSession) Reset() {
*x = MsgCreateOrUpdatePermissionSession{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateOrUpdatePermissionSession) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateOrUpdatePermissionSession) ProtoMessage() {}
// Deprecated: Use MsgCreateOrUpdatePermissionSession.ProtoReflect.Descriptor instead.
func (*MsgCreateOrUpdatePermissionSession) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{20}
}
func (x *MsgCreateOrUpdatePermissionSession) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCreateOrUpdatePermissionSession) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *MsgCreateOrUpdatePermissionSession) GetIssuerPermId() uint64 {
if x != nil {
return x.IssuerPermId
}
return 0
}
func (x *MsgCreateOrUpdatePermissionSession) GetVerifierPermId() uint64 {
if x != nil {
return x.VerifierPermId
}
return 0
}
func (x *MsgCreateOrUpdatePermissionSession) GetAgentPermId() uint64 {
if x != nil {
return x.AgentPermId
}
return 0
}
func (x *MsgCreateOrUpdatePermissionSession) GetWalletAgentPermId() uint64 {
if x != nil {
return x.WalletAgentPermId
}
return 0
}
type MsgCreateOrUpdatePermissionSessionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *MsgCreateOrUpdatePermissionSessionResponse) Reset() {
*x = MsgCreateOrUpdatePermissionSessionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_tx_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateOrUpdatePermissionSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateOrUpdatePermissionSessionResponse) ProtoMessage() {}
// Deprecated: Use MsgCreateOrUpdatePermissionSessionResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateOrUpdatePermissionSessionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_tx_proto_rawDescGZIP(), []int{21}
}
func (x *MsgCreateOrUpdatePermissionSessionResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
var File_veranablockchain_permission_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_permission_tx_proto_rawDesc = []byte{
0x0a, 0x24, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x78,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d,
0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x28, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x23, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01,
0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x40, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x2d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73,
0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61,
0x72, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x12, 0x32,
0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x6f, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
0x04, 0x52, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x6d,
0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x03,
0x64, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52,
0x03, 0x64, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x22, 0x43, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65,
0x6e, 0x65, 0x77, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x12,
0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
0x02, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x50, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x88, 0x03, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x6f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63,
0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde,
0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76,
0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52,
0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12,
0x23, 0x0a, 0x0d, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x73,
0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65,
0x46, 0x65, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52,
0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65,
0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x15, 0x76,
0x70, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74,
0x5f, 0x73, 0x72, 0x69, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x76, 0x70, 0x53, 0x75,
0x6d, 0x6d, 0x61, 0x72, 0x79, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x53, 0x72, 0x69, 0x3a, 0x0c,
0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x25,
0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x56, 0x50, 0x54, 0x6f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54,
0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x0c,
0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x2b, 0x0a, 0x29,
0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x75, 0x0a, 0x21, 0x4d, 0x73, 0x67,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x56, 0x50, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32,
0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x22, 0x2b, 0x0a, 0x29, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x74, 0x0a,
0x20, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41,
0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72,
0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x04, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x22, 0x2a, 0x0a, 0x28, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x4c, 0x61, 0x73, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0xbb, 0x03, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f,
0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x63,
0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4,
0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12,
0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x04, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03,
0x64, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x18,
0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x4b, 0x0a, 0x0e, 0x65, 0x66, 0x66, 0x65,
0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde,
0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76,
0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x4d, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69,
0x76, 0x65, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01,
0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55,
0x6e, 0x74, 0x69, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x23, 0x0a,
0x0d, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x08,
0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x65,
0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x76,
0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x3a,
0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x31, 0x0a,
0x1f, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
0x22, 0xb6, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4d, 0x0a, 0x0f,
0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x66, 0x66,
0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x3a, 0x0c, 0x82, 0xe7, 0xb0,
0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67,
0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52,
0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64,
0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
0x02, 0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0xa1, 0x02, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69,
0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x69,
0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
0x01, 0x28, 0x04, 0x52, 0x0c, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x49,
0x64, 0x12, 0x28, 0x0a, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x70, 0x65,
0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x76, 0x65, 0x72,
0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61,
0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01,
0x28, 0x04, 0x52, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12,
0x35, 0x0a, 0x14, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f,
0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x42, 0x04, 0xc8,
0xde, 0x1f, 0x01, 0x52, 0x11, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74,
0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x6f, 0x72, 0x22, 0x3c, 0x0a, 0x2a, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x69, 0x64, 0x32, 0xe0, 0x0c, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x72, 0x0a, 0x0c, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2c, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x34, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81,
0x01, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x56, 0x50, 0x12, 0x31, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x1a, 0x39, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x12, 0x31, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x1a, 0x39, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6e,
0x65, 0x77, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9c, 0x01, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x6f, 0x56, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x6f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
0x64, 0x1a, 0x42, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x56, 0x50, 0x54, 0x6f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x46, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0xa8, 0x01, 0x0a, 0x1e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x1a, 0x46, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xa5, 0x01, 0x0a, 0x1d,
0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x56, 0x50, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43,
0x61, 0x6e, 0x63, 0x65, 0x6c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56,
0x50, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x45, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61,
0x6e, 0x63, 0x65, 0x6c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x50,
0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f,
0x6f, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x1a, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x7e, 0x0a, 0x10, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x38, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x7e, 0x0a, 0x10, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x38, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x50, 0x65,
0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0xab, 0x01, 0x0a, 0x1f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x47, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53,
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05,
0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x81, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa2, 0x02,
0x03, 0x56, 0x50, 0x58, 0xaa, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
0x6f, 0x6e, 0xca, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
0xe2, 0x02, 0x27, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x50,
0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_veranablockchain_permission_tx_proto_rawDescOnce sync.Once
file_veranablockchain_permission_tx_proto_rawDescData = file_veranablockchain_permission_tx_proto_rawDesc
)
func file_veranablockchain_permission_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_permission_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_permission_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_permission_tx_proto_rawDescData)
})
return file_veranablockchain_permission_tx_proto_rawDescData
}
var file_veranablockchain_permission_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_veranablockchain_permission_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.permission.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.permission.MsgUpdateParamsResponse
(*MsgStartPermissionVP)(nil), // 2: veranablockchain.permission.MsgStartPermissionVP
(*MsgStartPermissionVPResponse)(nil), // 3: veranablockchain.permission.MsgStartPermissionVPResponse
(*MsgRenewPermissionVP)(nil), // 4: veranablockchain.permission.MsgRenewPermissionVP
(*MsgRenewPermissionVPResponse)(nil), // 5: veranablockchain.permission.MsgRenewPermissionVPResponse
(*MsgSetPermissionVPToValidated)(nil), // 6: veranablockchain.permission.MsgSetPermissionVPToValidated
(*MsgSetPermissionVPToValidatedResponse)(nil), // 7: veranablockchain.permission.MsgSetPermissionVPToValidatedResponse
(*MsgRequestPermissionVPTermination)(nil), // 8: veranablockchain.permission.MsgRequestPermissionVPTermination
(*MsgRequestPermissionVPTerminationResponse)(nil), // 9: veranablockchain.permission.MsgRequestPermissionVPTerminationResponse
(*MsgConfirmPermissionVPTermination)(nil), // 10: veranablockchain.permission.MsgConfirmPermissionVPTermination
(*MsgConfirmPermissionVPTerminationResponse)(nil), // 11: veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse
(*MsgCancelPermissionVPLastRequest)(nil), // 12: veranablockchain.permission.MsgCancelPermissionVPLastRequest
(*MsgCancelPermissionVPLastRequestResponse)(nil), // 13: veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse
(*MsgCreateRootPermission)(nil), // 14: veranablockchain.permission.MsgCreateRootPermission
(*MsgCreateRootPermissionResponse)(nil), // 15: veranablockchain.permission.MsgCreateRootPermissionResponse
(*MsgExtendPermission)(nil), // 16: veranablockchain.permission.MsgExtendPermission
(*MsgExtendPermissionResponse)(nil), // 17: veranablockchain.permission.MsgExtendPermissionResponse
(*MsgRevokePermission)(nil), // 18: veranablockchain.permission.MsgRevokePermission
(*MsgRevokePermissionResponse)(nil), // 19: veranablockchain.permission.MsgRevokePermissionResponse
(*MsgCreateOrUpdatePermissionSession)(nil), // 20: veranablockchain.permission.MsgCreateOrUpdatePermissionSession
(*MsgCreateOrUpdatePermissionSessionResponse)(nil), // 21: veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse
(*Params)(nil), // 22: veranablockchain.permission.Params
(*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp
}
var file_veranablockchain_permission_tx_proto_depIdxs = []int32{
22, // 0: veranablockchain.permission.MsgUpdateParams.params:type_name -> veranablockchain.permission.Params
23, // 1: veranablockchain.permission.MsgSetPermissionVPToValidated.effective_until:type_name -> google.protobuf.Timestamp
23, // 2: veranablockchain.permission.MsgCreateRootPermission.effective_from:type_name -> google.protobuf.Timestamp
23, // 3: veranablockchain.permission.MsgCreateRootPermission.effective_until:type_name -> google.protobuf.Timestamp
23, // 4: veranablockchain.permission.MsgExtendPermission.effective_until:type_name -> google.protobuf.Timestamp
0, // 5: veranablockchain.permission.Msg.UpdateParams:input_type -> veranablockchain.permission.MsgUpdateParams
2, // 6: veranablockchain.permission.Msg.StartPermissionVP:input_type -> veranablockchain.permission.MsgStartPermissionVP
4, // 7: veranablockchain.permission.Msg.RenewPermissionVP:input_type -> veranablockchain.permission.MsgRenewPermissionVP
6, // 8: veranablockchain.permission.Msg.SetPermissionVPToValidated:input_type -> veranablockchain.permission.MsgSetPermissionVPToValidated
8, // 9: veranablockchain.permission.Msg.RequestPermissionVPTermination:input_type -> veranablockchain.permission.MsgRequestPermissionVPTermination
10, // 10: veranablockchain.permission.Msg.ConfirmPermissionVPTermination:input_type -> veranablockchain.permission.MsgConfirmPermissionVPTermination
12, // 11: veranablockchain.permission.Msg.CancelPermissionVPLastRequest:input_type -> veranablockchain.permission.MsgCancelPermissionVPLastRequest
14, // 12: veranablockchain.permission.Msg.CreateRootPermission:input_type -> veranablockchain.permission.MsgCreateRootPermission
16, // 13: veranablockchain.permission.Msg.ExtendPermission:input_type -> veranablockchain.permission.MsgExtendPermission
18, // 14: veranablockchain.permission.Msg.RevokePermission:input_type -> veranablockchain.permission.MsgRevokePermission
20, // 15: veranablockchain.permission.Msg.CreateOrUpdatePermissionSession:input_type -> veranablockchain.permission.MsgCreateOrUpdatePermissionSession
1, // 16: veranablockchain.permission.Msg.UpdateParams:output_type -> veranablockchain.permission.MsgUpdateParamsResponse
3, // 17: veranablockchain.permission.Msg.StartPermissionVP:output_type -> veranablockchain.permission.MsgStartPermissionVPResponse
5, // 18: veranablockchain.permission.Msg.RenewPermissionVP:output_type -> veranablockchain.permission.MsgRenewPermissionVPResponse
7, // 19: veranablockchain.permission.Msg.SetPermissionVPToValidated:output_type -> veranablockchain.permission.MsgSetPermissionVPToValidatedResponse
9, // 20: veranablockchain.permission.Msg.RequestPermissionVPTermination:output_type -> veranablockchain.permission.MsgRequestPermissionVPTerminationResponse
11, // 21: veranablockchain.permission.Msg.ConfirmPermissionVPTermination:output_type -> veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse
13, // 22: veranablockchain.permission.Msg.CancelPermissionVPLastRequest:output_type -> veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse
15, // 23: veranablockchain.permission.Msg.CreateRootPermission:output_type -> veranablockchain.permission.MsgCreateRootPermissionResponse
17, // 24: veranablockchain.permission.Msg.ExtendPermission:output_type -> veranablockchain.permission.MsgExtendPermissionResponse
19, // 25: veranablockchain.permission.Msg.RevokePermission:output_type -> veranablockchain.permission.MsgRevokePermissionResponse
21, // 26: veranablockchain.permission.Msg.CreateOrUpdatePermissionSession:output_type -> veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse
16, // [16:27] is the sub-list for method output_type
5, // [5:16] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_veranablockchain_permission_tx_proto_init() }
func file_veranablockchain_permission_tx_proto_init() {
if File_veranablockchain_permission_tx_proto != nil {
return
}
file_veranablockchain_permission_params_proto_init()
file_veranablockchain_permission_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_permission_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgStartPermissionVP); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgStartPermissionVPResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRenewPermissionVP); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRenewPermissionVPResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgSetPermissionVPToValidated); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgSetPermissionVPToValidatedResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRequestPermissionVPTermination); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRequestPermissionVPTerminationResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgConfirmPermissionVPTermination); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgConfirmPermissionVPTerminationResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCancelPermissionVPLastRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCancelPermissionVPLastRequestResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateRootPermission); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateRootPermissionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgExtendPermission); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgExtendPermissionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRevokePermission); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgRevokePermissionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateOrUpdatePermissionSession); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateOrUpdatePermissionSessionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_permission_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 22,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_permission_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_permission_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_permission_tx_proto_msgTypes,
}.Build()
File_veranablockchain_permission_tx_proto = out.File
file_veranablockchain_permission_tx_proto_rawDesc = nil
file_veranablockchain_permission_tx_proto_goTypes = nil
file_veranablockchain_permission_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/permission/tx.proto
package permission
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.permission.Msg/UpdateParams"
Msg_StartPermissionVP_FullMethodName = "/veranablockchain.permission.Msg/StartPermissionVP"
Msg_RenewPermissionVP_FullMethodName = "/veranablockchain.permission.Msg/RenewPermissionVP"
Msg_SetPermissionVPToValidated_FullMethodName = "/veranablockchain.permission.Msg/SetPermissionVPToValidated"
Msg_RequestPermissionVPTermination_FullMethodName = "/veranablockchain.permission.Msg/RequestPermissionVPTermination"
Msg_ConfirmPermissionVPTermination_FullMethodName = "/veranablockchain.permission.Msg/ConfirmPermissionVPTermination"
Msg_CancelPermissionVPLastRequest_FullMethodName = "/veranablockchain.permission.Msg/CancelPermissionVPLastRequest"
Msg_CreateRootPermission_FullMethodName = "/veranablockchain.permission.Msg/CreateRootPermission"
Msg_ExtendPermission_FullMethodName = "/veranablockchain.permission.Msg/ExtendPermission"
Msg_RevokePermission_FullMethodName = "/veranablockchain.permission.Msg/RevokePermission"
Msg_CreateOrUpdatePermissionSession_FullMethodName = "/veranablockchain.permission.Msg/CreateOrUpdatePermissionSession"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
StartPermissionVP(ctx context.Context, in *MsgStartPermissionVP, opts ...grpc.CallOption) (*MsgStartPermissionVPResponse, error)
RenewPermissionVP(ctx context.Context, in *MsgRenewPermissionVP, opts ...grpc.CallOption) (*MsgRenewPermissionVPResponse, error)
SetPermissionVPToValidated(ctx context.Context, in *MsgSetPermissionVPToValidated, opts ...grpc.CallOption) (*MsgSetPermissionVPToValidatedResponse, error)
RequestPermissionVPTermination(ctx context.Context, in *MsgRequestPermissionVPTermination, opts ...grpc.CallOption) (*MsgRequestPermissionVPTerminationResponse, error)
ConfirmPermissionVPTermination(ctx context.Context, in *MsgConfirmPermissionVPTermination, opts ...grpc.CallOption) (*MsgConfirmPermissionVPTerminationResponse, error)
CancelPermissionVPLastRequest(ctx context.Context, in *MsgCancelPermissionVPLastRequest, opts ...grpc.CallOption) (*MsgCancelPermissionVPLastRequestResponse, error)
CreateRootPermission(ctx context.Context, in *MsgCreateRootPermission, opts ...grpc.CallOption) (*MsgCreateRootPermissionResponse, error)
ExtendPermission(ctx context.Context, in *MsgExtendPermission, opts ...grpc.CallOption) (*MsgExtendPermissionResponse, error)
RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error)
CreateOrUpdatePermissionSession(ctx context.Context, in *MsgCreateOrUpdatePermissionSession, opts ...grpc.CallOption) (*MsgCreateOrUpdatePermissionSessionResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) StartPermissionVP(ctx context.Context, in *MsgStartPermissionVP, opts ...grpc.CallOption) (*MsgStartPermissionVPResponse, error) {
out := new(MsgStartPermissionVPResponse)
err := c.cc.Invoke(ctx, Msg_StartPermissionVP_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RenewPermissionVP(ctx context.Context, in *MsgRenewPermissionVP, opts ...grpc.CallOption) (*MsgRenewPermissionVPResponse, error) {
out := new(MsgRenewPermissionVPResponse)
err := c.cc.Invoke(ctx, Msg_RenewPermissionVP_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) SetPermissionVPToValidated(ctx context.Context, in *MsgSetPermissionVPToValidated, opts ...grpc.CallOption) (*MsgSetPermissionVPToValidatedResponse, error) {
out := new(MsgSetPermissionVPToValidatedResponse)
err := c.cc.Invoke(ctx, Msg_SetPermissionVPToValidated_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RequestPermissionVPTermination(ctx context.Context, in *MsgRequestPermissionVPTermination, opts ...grpc.CallOption) (*MsgRequestPermissionVPTerminationResponse, error) {
out := new(MsgRequestPermissionVPTerminationResponse)
err := c.cc.Invoke(ctx, Msg_RequestPermissionVPTermination_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ConfirmPermissionVPTermination(ctx context.Context, in *MsgConfirmPermissionVPTermination, opts ...grpc.CallOption) (*MsgConfirmPermissionVPTerminationResponse, error) {
out := new(MsgConfirmPermissionVPTerminationResponse)
err := c.cc.Invoke(ctx, Msg_ConfirmPermissionVPTermination_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CancelPermissionVPLastRequest(ctx context.Context, in *MsgCancelPermissionVPLastRequest, opts ...grpc.CallOption) (*MsgCancelPermissionVPLastRequestResponse, error) {
out := new(MsgCancelPermissionVPLastRequestResponse)
err := c.cc.Invoke(ctx, Msg_CancelPermissionVPLastRequest_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateRootPermission(ctx context.Context, in *MsgCreateRootPermission, opts ...grpc.CallOption) (*MsgCreateRootPermissionResponse, error) {
out := new(MsgCreateRootPermissionResponse)
err := c.cc.Invoke(ctx, Msg_CreateRootPermission_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ExtendPermission(ctx context.Context, in *MsgExtendPermission, opts ...grpc.CallOption) (*MsgExtendPermissionResponse, error) {
out := new(MsgExtendPermissionResponse)
err := c.cc.Invoke(ctx, Msg_ExtendPermission_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) {
out := new(MsgRevokePermissionResponse)
err := c.cc.Invoke(ctx, Msg_RevokePermission_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateOrUpdatePermissionSession(ctx context.Context, in *MsgCreateOrUpdatePermissionSession, opts ...grpc.CallOption) (*MsgCreateOrUpdatePermissionSessionResponse, error) {
out := new(MsgCreateOrUpdatePermissionSessionResponse)
err := c.cc.Invoke(ctx, Msg_CreateOrUpdatePermissionSession_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
StartPermissionVP(context.Context, *MsgStartPermissionVP) (*MsgStartPermissionVPResponse, error)
RenewPermissionVP(context.Context, *MsgRenewPermissionVP) (*MsgRenewPermissionVPResponse, error)
SetPermissionVPToValidated(context.Context, *MsgSetPermissionVPToValidated) (*MsgSetPermissionVPToValidatedResponse, error)
RequestPermissionVPTermination(context.Context, *MsgRequestPermissionVPTermination) (*MsgRequestPermissionVPTerminationResponse, error)
ConfirmPermissionVPTermination(context.Context, *MsgConfirmPermissionVPTermination) (*MsgConfirmPermissionVPTerminationResponse, error)
CancelPermissionVPLastRequest(context.Context, *MsgCancelPermissionVPLastRequest) (*MsgCancelPermissionVPLastRequestResponse, error)
CreateRootPermission(context.Context, *MsgCreateRootPermission) (*MsgCreateRootPermissionResponse, error)
ExtendPermission(context.Context, *MsgExtendPermission) (*MsgExtendPermissionResponse, error)
RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error)
CreateOrUpdatePermissionSession(context.Context, *MsgCreateOrUpdatePermissionSession) (*MsgCreateOrUpdatePermissionSessionResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) StartPermissionVP(context.Context, *MsgStartPermissionVP) (*MsgStartPermissionVPResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartPermissionVP not implemented")
}
func (UnimplementedMsgServer) RenewPermissionVP(context.Context, *MsgRenewPermissionVP) (*MsgRenewPermissionVPResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenewPermissionVP not implemented")
}
func (UnimplementedMsgServer) SetPermissionVPToValidated(context.Context, *MsgSetPermissionVPToValidated) (*MsgSetPermissionVPToValidatedResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetPermissionVPToValidated not implemented")
}
func (UnimplementedMsgServer) RequestPermissionVPTermination(context.Context, *MsgRequestPermissionVPTermination) (*MsgRequestPermissionVPTerminationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RequestPermissionVPTermination not implemented")
}
func (UnimplementedMsgServer) ConfirmPermissionVPTermination(context.Context, *MsgConfirmPermissionVPTermination) (*MsgConfirmPermissionVPTerminationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ConfirmPermissionVPTermination not implemented")
}
func (UnimplementedMsgServer) CancelPermissionVPLastRequest(context.Context, *MsgCancelPermissionVPLastRequest) (*MsgCancelPermissionVPLastRequestResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelPermissionVPLastRequest not implemented")
}
func (UnimplementedMsgServer) CreateRootPermission(context.Context, *MsgCreateRootPermission) (*MsgCreateRootPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateRootPermission not implemented")
}
func (UnimplementedMsgServer) ExtendPermission(context.Context, *MsgExtendPermission) (*MsgExtendPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ExtendPermission not implemented")
}
func (UnimplementedMsgServer) RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented")
}
func (UnimplementedMsgServer) CreateOrUpdatePermissionSession(context.Context, *MsgCreateOrUpdatePermissionSession) (*MsgCreateOrUpdatePermissionSessionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdatePermissionSession not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_StartPermissionVP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgStartPermissionVP)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).StartPermissionVP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_StartPermissionVP_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).StartPermissionVP(ctx, req.(*MsgStartPermissionVP))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RenewPermissionVP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRenewPermissionVP)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RenewPermissionVP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_RenewPermissionVP_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RenewPermissionVP(ctx, req.(*MsgRenewPermissionVP))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_SetPermissionVPToValidated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgSetPermissionVPToValidated)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).SetPermissionVPToValidated(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_SetPermissionVPToValidated_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).SetPermissionVPToValidated(ctx, req.(*MsgSetPermissionVPToValidated))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RequestPermissionVPTermination_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRequestPermissionVPTermination)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RequestPermissionVPTermination(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_RequestPermissionVPTermination_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RequestPermissionVPTermination(ctx, req.(*MsgRequestPermissionVPTermination))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ConfirmPermissionVPTermination_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgConfirmPermissionVPTermination)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ConfirmPermissionVPTermination(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_ConfirmPermissionVPTermination_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ConfirmPermissionVPTermination(ctx, req.(*MsgConfirmPermissionVPTermination))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CancelPermissionVPLastRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCancelPermissionVPLastRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CancelPermissionVPLastRequest(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CancelPermissionVPLastRequest_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CancelPermissionVPLastRequest(ctx, req.(*MsgCancelPermissionVPLastRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateRootPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateRootPermission)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateRootPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CreateRootPermission_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateRootPermission(ctx, req.(*MsgCreateRootPermission))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ExtendPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgExtendPermission)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ExtendPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_ExtendPermission_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ExtendPermission(ctx, req.(*MsgExtendPermission))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRevokePermission)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RevokePermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_RevokePermission_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RevokePermission(ctx, req.(*MsgRevokePermission))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateOrUpdatePermissionSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateOrUpdatePermissionSession)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateOrUpdatePermissionSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CreateOrUpdatePermissionSession_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateOrUpdatePermissionSession(ctx, req.(*MsgCreateOrUpdatePermissionSession))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.permission.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "StartPermissionVP",
Handler: _Msg_StartPermissionVP_Handler,
},
{
MethodName: "RenewPermissionVP",
Handler: _Msg_RenewPermissionVP_Handler,
},
{
MethodName: "SetPermissionVPToValidated",
Handler: _Msg_SetPermissionVPToValidated_Handler,
},
{
MethodName: "RequestPermissionVPTermination",
Handler: _Msg_RequestPermissionVPTermination_Handler,
},
{
MethodName: "ConfirmPermissionVPTermination",
Handler: _Msg_ConfirmPermissionVPTermination_Handler,
},
{
MethodName: "CancelPermissionVPLastRequest",
Handler: _Msg_CancelPermissionVPLastRequest_Handler,
},
{
MethodName: "CreateRootPermission",
Handler: _Msg_CreateRootPermission_Handler,
},
{
MethodName: "ExtendPermission",
Handler: _Msg_ExtendPermission_Handler,
},
{
MethodName: "RevokePermission",
Handler: _Msg_RevokePermission_Handler,
},
{
MethodName: "CreateOrUpdatePermissionSession",
Handler: _Msg_CreateOrUpdatePermissionSession_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/permission/tx.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package permission
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Permission protoreflect.MessageDescriptor
fd_Permission_id protoreflect.FieldDescriptor
fd_Permission_schema_id protoreflect.FieldDescriptor
fd_Permission_type protoreflect.FieldDescriptor
fd_Permission_did protoreflect.FieldDescriptor
fd_Permission_grantee protoreflect.FieldDescriptor
fd_Permission_created protoreflect.FieldDescriptor
fd_Permission_created_by protoreflect.FieldDescriptor
fd_Permission_extended protoreflect.FieldDescriptor
fd_Permission_extended_by protoreflect.FieldDescriptor
fd_Permission_effective_from protoreflect.FieldDescriptor
fd_Permission_effective_until protoreflect.FieldDescriptor
fd_Permission_modified protoreflect.FieldDescriptor
fd_Permission_validation_fees protoreflect.FieldDescriptor
fd_Permission_issuance_fees protoreflect.FieldDescriptor
fd_Permission_verification_fees protoreflect.FieldDescriptor
fd_Permission_deposit protoreflect.FieldDescriptor
fd_Permission_revoked protoreflect.FieldDescriptor
fd_Permission_revoked_by protoreflect.FieldDescriptor
fd_Permission_terminated protoreflect.FieldDescriptor
fd_Permission_terminated_by protoreflect.FieldDescriptor
fd_Permission_country protoreflect.FieldDescriptor
fd_Permission_validator_perm_id protoreflect.FieldDescriptor
fd_Permission_vp_state protoreflect.FieldDescriptor
fd_Permission_vp_exp protoreflect.FieldDescriptor
fd_Permission_vp_last_state_change protoreflect.FieldDescriptor
fd_Permission_vp_validator_deposit protoreflect.FieldDescriptor
fd_Permission_vp_current_fees protoreflect.FieldDescriptor
fd_Permission_vp_current_deposit protoreflect.FieldDescriptor
fd_Permission_vp_summary_digest_sri protoreflect.FieldDescriptor
fd_Permission_vp_term_requested protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_types_proto_init()
md_Permission = File_veranablockchain_permission_types_proto.Messages().ByName("Permission")
fd_Permission_id = md_Permission.Fields().ByName("id")
fd_Permission_schema_id = md_Permission.Fields().ByName("schema_id")
fd_Permission_type = md_Permission.Fields().ByName("type")
fd_Permission_did = md_Permission.Fields().ByName("did")
fd_Permission_grantee = md_Permission.Fields().ByName("grantee")
fd_Permission_created = md_Permission.Fields().ByName("created")
fd_Permission_created_by = md_Permission.Fields().ByName("created_by")
fd_Permission_extended = md_Permission.Fields().ByName("extended")
fd_Permission_extended_by = md_Permission.Fields().ByName("extended_by")
fd_Permission_effective_from = md_Permission.Fields().ByName("effective_from")
fd_Permission_effective_until = md_Permission.Fields().ByName("effective_until")
fd_Permission_modified = md_Permission.Fields().ByName("modified")
fd_Permission_validation_fees = md_Permission.Fields().ByName("validation_fees")
fd_Permission_issuance_fees = md_Permission.Fields().ByName("issuance_fees")
fd_Permission_verification_fees = md_Permission.Fields().ByName("verification_fees")
fd_Permission_deposit = md_Permission.Fields().ByName("deposit")
fd_Permission_revoked = md_Permission.Fields().ByName("revoked")
fd_Permission_revoked_by = md_Permission.Fields().ByName("revoked_by")
fd_Permission_terminated = md_Permission.Fields().ByName("terminated")
fd_Permission_terminated_by = md_Permission.Fields().ByName("terminated_by")
fd_Permission_country = md_Permission.Fields().ByName("country")
fd_Permission_validator_perm_id = md_Permission.Fields().ByName("validator_perm_id")
fd_Permission_vp_state = md_Permission.Fields().ByName("vp_state")
fd_Permission_vp_exp = md_Permission.Fields().ByName("vp_exp")
fd_Permission_vp_last_state_change = md_Permission.Fields().ByName("vp_last_state_change")
fd_Permission_vp_validator_deposit = md_Permission.Fields().ByName("vp_validator_deposit")
fd_Permission_vp_current_fees = md_Permission.Fields().ByName("vp_current_fees")
fd_Permission_vp_current_deposit = md_Permission.Fields().ByName("vp_current_deposit")
fd_Permission_vp_summary_digest_sri = md_Permission.Fields().ByName("vp_summary_digest_sri")
fd_Permission_vp_term_requested = md_Permission.Fields().ByName("vp_term_requested")
}
var _ protoreflect.Message = (*fastReflection_Permission)(nil)
type fastReflection_Permission Permission
func (x *Permission) ProtoReflect() protoreflect.Message {
return (*fastReflection_Permission)(x)
}
func (x *Permission) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Permission_messageType fastReflection_Permission_messageType
var _ protoreflect.MessageType = fastReflection_Permission_messageType{}
type fastReflection_Permission_messageType struct{}
func (x fastReflection_Permission_messageType) Zero() protoreflect.Message {
return (*fastReflection_Permission)(nil)
}
func (x fastReflection_Permission_messageType) New() protoreflect.Message {
return new(fastReflection_Permission)
}
func (x fastReflection_Permission_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Permission
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Permission) Descriptor() protoreflect.MessageDescriptor {
return md_Permission
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Permission) Type() protoreflect.MessageType {
return _fastReflection_Permission_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Permission) New() protoreflect.Message {
return new(fastReflection_Permission)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Permission) Interface() protoreflect.ProtoMessage {
return (*Permission)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Permission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_Permission_id, value) {
return
}
}
if x.SchemaId != uint64(0) {
value := protoreflect.ValueOfUint64(x.SchemaId)
if !f(fd_Permission_schema_id, value) {
return
}
}
if x.Type_ != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_))
if !f(fd_Permission_type, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_Permission_did, value) {
return
}
}
if x.Grantee != "" {
value := protoreflect.ValueOfString(x.Grantee)
if !f(fd_Permission_grantee, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_Permission_created, value) {
return
}
}
if x.CreatedBy != "" {
value := protoreflect.ValueOfString(x.CreatedBy)
if !f(fd_Permission_created_by, value) {
return
}
}
if x.Extended != nil {
value := protoreflect.ValueOfMessage(x.Extended.ProtoReflect())
if !f(fd_Permission_extended, value) {
return
}
}
if x.ExtendedBy != "" {
value := protoreflect.ValueOfString(x.ExtendedBy)
if !f(fd_Permission_extended_by, value) {
return
}
}
if x.EffectiveFrom != nil {
value := protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
if !f(fd_Permission_effective_from, value) {
return
}
}
if x.EffectiveUntil != nil {
value := protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
if !f(fd_Permission_effective_until, value) {
return
}
}
if x.Modified != nil {
value := protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
if !f(fd_Permission_modified, value) {
return
}
}
if x.ValidationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidationFees)
if !f(fd_Permission_validation_fees, value) {
return
}
}
if x.IssuanceFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.IssuanceFees)
if !f(fd_Permission_issuance_fees, value) {
return
}
}
if x.VerificationFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.VerificationFees)
if !f(fd_Permission_verification_fees, value) {
return
}
}
if x.Deposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.Deposit)
if !f(fd_Permission_deposit, value) {
return
}
}
if x.Revoked != nil {
value := protoreflect.ValueOfMessage(x.Revoked.ProtoReflect())
if !f(fd_Permission_revoked, value) {
return
}
}
if x.RevokedBy != "" {
value := protoreflect.ValueOfString(x.RevokedBy)
if !f(fd_Permission_revoked_by, value) {
return
}
}
if x.Terminated != nil {
value := protoreflect.ValueOfMessage(x.Terminated.ProtoReflect())
if !f(fd_Permission_terminated, value) {
return
}
}
if x.TerminatedBy != "" {
value := protoreflect.ValueOfString(x.TerminatedBy)
if !f(fd_Permission_terminated_by, value) {
return
}
}
if x.Country != "" {
value := protoreflect.ValueOfString(x.Country)
if !f(fd_Permission_country, value) {
return
}
}
if x.ValidatorPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ValidatorPermId)
if !f(fd_Permission_validator_perm_id, value) {
return
}
}
if x.VpState != 0 {
value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.VpState))
if !f(fd_Permission_vp_state, value) {
return
}
}
if x.VpExp != nil {
value := protoreflect.ValueOfMessage(x.VpExp.ProtoReflect())
if !f(fd_Permission_vp_exp, value) {
return
}
}
if x.VpLastStateChange != nil {
value := protoreflect.ValueOfMessage(x.VpLastStateChange.ProtoReflect())
if !f(fd_Permission_vp_last_state_change, value) {
return
}
}
if x.VpValidatorDeposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.VpValidatorDeposit)
if !f(fd_Permission_vp_validator_deposit, value) {
return
}
}
if x.VpCurrentFees != uint64(0) {
value := protoreflect.ValueOfUint64(x.VpCurrentFees)
if !f(fd_Permission_vp_current_fees, value) {
return
}
}
if x.VpCurrentDeposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.VpCurrentDeposit)
if !f(fd_Permission_vp_current_deposit, value) {
return
}
}
if x.VpSummaryDigestSri != "" {
value := protoreflect.ValueOfString(x.VpSummaryDigestSri)
if !f(fd_Permission_vp_summary_digest_sri, value) {
return
}
}
if x.VpTermRequested != nil {
value := protoreflect.ValueOfMessage(x.VpTermRequested.ProtoReflect())
if !f(fd_Permission_vp_term_requested, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Permission) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.Permission.id":
return x.Id != uint64(0)
case "veranablockchain.permission.Permission.schema_id":
return x.SchemaId != uint64(0)
case "veranablockchain.permission.Permission.type":
return x.Type_ != 0
case "veranablockchain.permission.Permission.did":
return x.Did != ""
case "veranablockchain.permission.Permission.grantee":
return x.Grantee != ""
case "veranablockchain.permission.Permission.created":
return x.Created != nil
case "veranablockchain.permission.Permission.created_by":
return x.CreatedBy != ""
case "veranablockchain.permission.Permission.extended":
return x.Extended != nil
case "veranablockchain.permission.Permission.extended_by":
return x.ExtendedBy != ""
case "veranablockchain.permission.Permission.effective_from":
return x.EffectiveFrom != nil
case "veranablockchain.permission.Permission.effective_until":
return x.EffectiveUntil != nil
case "veranablockchain.permission.Permission.modified":
return x.Modified != nil
case "veranablockchain.permission.Permission.validation_fees":
return x.ValidationFees != uint64(0)
case "veranablockchain.permission.Permission.issuance_fees":
return x.IssuanceFees != uint64(0)
case "veranablockchain.permission.Permission.verification_fees":
return x.VerificationFees != uint64(0)
case "veranablockchain.permission.Permission.deposit":
return x.Deposit != uint64(0)
case "veranablockchain.permission.Permission.revoked":
return x.Revoked != nil
case "veranablockchain.permission.Permission.revoked_by":
return x.RevokedBy != ""
case "veranablockchain.permission.Permission.terminated":
return x.Terminated != nil
case "veranablockchain.permission.Permission.terminated_by":
return x.TerminatedBy != ""
case "veranablockchain.permission.Permission.country":
return x.Country != ""
case "veranablockchain.permission.Permission.validator_perm_id":
return x.ValidatorPermId != uint64(0)
case "veranablockchain.permission.Permission.vp_state":
return x.VpState != 0
case "veranablockchain.permission.Permission.vp_exp":
return x.VpExp != nil
case "veranablockchain.permission.Permission.vp_last_state_change":
return x.VpLastStateChange != nil
case "veranablockchain.permission.Permission.vp_validator_deposit":
return x.VpValidatorDeposit != uint64(0)
case "veranablockchain.permission.Permission.vp_current_fees":
return x.VpCurrentFees != uint64(0)
case "veranablockchain.permission.Permission.vp_current_deposit":
return x.VpCurrentDeposit != uint64(0)
case "veranablockchain.permission.Permission.vp_summary_digest_sri":
return x.VpSummaryDigestSri != ""
case "veranablockchain.permission.Permission.vp_term_requested":
return x.VpTermRequested != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Permission"))
}
panic(fmt.Errorf("message veranablockchain.permission.Permission does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Permission) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.Permission.id":
x.Id = uint64(0)
case "veranablockchain.permission.Permission.schema_id":
x.SchemaId = uint64(0)
case "veranablockchain.permission.Permission.type":
x.Type_ = 0
case "veranablockchain.permission.Permission.did":
x.Did = ""
case "veranablockchain.permission.Permission.grantee":
x.Grantee = ""
case "veranablockchain.permission.Permission.created":
x.Created = nil
case "veranablockchain.permission.Permission.created_by":
x.CreatedBy = ""
case "veranablockchain.permission.Permission.extended":
x.Extended = nil
case "veranablockchain.permission.Permission.extended_by":
x.ExtendedBy = ""
case "veranablockchain.permission.Permission.effective_from":
x.EffectiveFrom = nil
case "veranablockchain.permission.Permission.effective_until":
x.EffectiveUntil = nil
case "veranablockchain.permission.Permission.modified":
x.Modified = nil
case "veranablockchain.permission.Permission.validation_fees":
x.ValidationFees = uint64(0)
case "veranablockchain.permission.Permission.issuance_fees":
x.IssuanceFees = uint64(0)
case "veranablockchain.permission.Permission.verification_fees":
x.VerificationFees = uint64(0)
case "veranablockchain.permission.Permission.deposit":
x.Deposit = uint64(0)
case "veranablockchain.permission.Permission.revoked":
x.Revoked = nil
case "veranablockchain.permission.Permission.revoked_by":
x.RevokedBy = ""
case "veranablockchain.permission.Permission.terminated":
x.Terminated = nil
case "veranablockchain.permission.Permission.terminated_by":
x.TerminatedBy = ""
case "veranablockchain.permission.Permission.country":
x.Country = ""
case "veranablockchain.permission.Permission.validator_perm_id":
x.ValidatorPermId = uint64(0)
case "veranablockchain.permission.Permission.vp_state":
x.VpState = 0
case "veranablockchain.permission.Permission.vp_exp":
x.VpExp = nil
case "veranablockchain.permission.Permission.vp_last_state_change":
x.VpLastStateChange = nil
case "veranablockchain.permission.Permission.vp_validator_deposit":
x.VpValidatorDeposit = uint64(0)
case "veranablockchain.permission.Permission.vp_current_fees":
x.VpCurrentFees = uint64(0)
case "veranablockchain.permission.Permission.vp_current_deposit":
x.VpCurrentDeposit = uint64(0)
case "veranablockchain.permission.Permission.vp_summary_digest_sri":
x.VpSummaryDigestSri = ""
case "veranablockchain.permission.Permission.vp_term_requested":
x.VpTermRequested = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Permission"))
}
panic(fmt.Errorf("message veranablockchain.permission.Permission does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Permission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.Permission.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.schema_id":
value := x.SchemaId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.type":
value := x.Type_
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
case "veranablockchain.permission.Permission.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.grantee":
value := x.Grantee
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.created_by":
value := x.CreatedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.extended":
value := x.Extended
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.extended_by":
value := x.ExtendedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.effective_from":
value := x.EffectiveFrom
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.effective_until":
value := x.EffectiveUntil
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.modified":
value := x.Modified
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.validation_fees":
value := x.ValidationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.issuance_fees":
value := x.IssuanceFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.verification_fees":
value := x.VerificationFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.deposit":
value := x.Deposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.revoked":
value := x.Revoked
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.revoked_by":
value := x.RevokedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.terminated":
value := x.Terminated
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.terminated_by":
value := x.TerminatedBy
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.country":
value := x.Country
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.validator_perm_id":
value := x.ValidatorPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.vp_state":
value := x.VpState
return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value))
case "veranablockchain.permission.Permission.vp_exp":
value := x.VpExp
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.vp_last_state_change":
value := x.VpLastStateChange
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.Permission.vp_validator_deposit":
value := x.VpValidatorDeposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.vp_current_fees":
value := x.VpCurrentFees
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.vp_current_deposit":
value := x.VpCurrentDeposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.Permission.vp_summary_digest_sri":
value := x.VpSummaryDigestSri
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.Permission.vp_term_requested":
value := x.VpTermRequested
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Permission"))
}
panic(fmt.Errorf("message veranablockchain.permission.Permission does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Permission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.Permission.id":
x.Id = value.Uint()
case "veranablockchain.permission.Permission.schema_id":
x.SchemaId = value.Uint()
case "veranablockchain.permission.Permission.type":
x.Type_ = (PermissionType)(value.Enum())
case "veranablockchain.permission.Permission.did":
x.Did = value.Interface().(string)
case "veranablockchain.permission.Permission.grantee":
x.Grantee = value.Interface().(string)
case "veranablockchain.permission.Permission.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.created_by":
x.CreatedBy = value.Interface().(string)
case "veranablockchain.permission.Permission.extended":
x.Extended = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.extended_by":
x.ExtendedBy = value.Interface().(string)
case "veranablockchain.permission.Permission.effective_from":
x.EffectiveFrom = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.effective_until":
x.EffectiveUntil = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.modified":
x.Modified = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.validation_fees":
x.ValidationFees = value.Uint()
case "veranablockchain.permission.Permission.issuance_fees":
x.IssuanceFees = value.Uint()
case "veranablockchain.permission.Permission.verification_fees":
x.VerificationFees = value.Uint()
case "veranablockchain.permission.Permission.deposit":
x.Deposit = value.Uint()
case "veranablockchain.permission.Permission.revoked":
x.Revoked = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.revoked_by":
x.RevokedBy = value.Interface().(string)
case "veranablockchain.permission.Permission.terminated":
x.Terminated = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.terminated_by":
x.TerminatedBy = value.Interface().(string)
case "veranablockchain.permission.Permission.country":
x.Country = value.Interface().(string)
case "veranablockchain.permission.Permission.validator_perm_id":
x.ValidatorPermId = value.Uint()
case "veranablockchain.permission.Permission.vp_state":
x.VpState = (ValidationState)(value.Enum())
case "veranablockchain.permission.Permission.vp_exp":
x.VpExp = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.vp_last_state_change":
x.VpLastStateChange = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.Permission.vp_validator_deposit":
x.VpValidatorDeposit = value.Uint()
case "veranablockchain.permission.Permission.vp_current_fees":
x.VpCurrentFees = value.Uint()
case "veranablockchain.permission.Permission.vp_current_deposit":
x.VpCurrentDeposit = value.Uint()
case "veranablockchain.permission.Permission.vp_summary_digest_sri":
x.VpSummaryDigestSri = value.Interface().(string)
case "veranablockchain.permission.Permission.vp_term_requested":
x.VpTermRequested = value.Message().Interface().(*timestamppb.Timestamp)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Permission"))
}
panic(fmt.Errorf("message veranablockchain.permission.Permission does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Permission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.Permission.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.permission.Permission.extended":
if x.Extended == nil {
x.Extended = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Extended.ProtoReflect())
case "veranablockchain.permission.Permission.effective_from":
if x.EffectiveFrom == nil {
x.EffectiveFrom = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveFrom.ProtoReflect())
case "veranablockchain.permission.Permission.effective_until":
if x.EffectiveUntil == nil {
x.EffectiveUntil = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.EffectiveUntil.ProtoReflect())
case "veranablockchain.permission.Permission.modified":
if x.Modified == nil {
x.Modified = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
case "veranablockchain.permission.Permission.revoked":
if x.Revoked == nil {
x.Revoked = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Revoked.ProtoReflect())
case "veranablockchain.permission.Permission.terminated":
if x.Terminated == nil {
x.Terminated = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Terminated.ProtoReflect())
case "veranablockchain.permission.Permission.vp_exp":
if x.VpExp == nil {
x.VpExp = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.VpExp.ProtoReflect())
case "veranablockchain.permission.Permission.vp_last_state_change":
if x.VpLastStateChange == nil {
x.VpLastStateChange = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.VpLastStateChange.ProtoReflect())
case "veranablockchain.permission.Permission.vp_term_requested":
if x.VpTermRequested == nil {
x.VpTermRequested = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.VpTermRequested.ProtoReflect())
case "veranablockchain.permission.Permission.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.schema_id":
panic(fmt.Errorf("field schema_id of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.type":
panic(fmt.Errorf("field type of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.did":
panic(fmt.Errorf("field did of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.grantee":
panic(fmt.Errorf("field grantee of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.created_by":
panic(fmt.Errorf("field created_by of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.extended_by":
panic(fmt.Errorf("field extended_by of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.validation_fees":
panic(fmt.Errorf("field validation_fees of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.issuance_fees":
panic(fmt.Errorf("field issuance_fees of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.verification_fees":
panic(fmt.Errorf("field verification_fees of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.deposit":
panic(fmt.Errorf("field deposit of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.revoked_by":
panic(fmt.Errorf("field revoked_by of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.terminated_by":
panic(fmt.Errorf("field terminated_by of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.country":
panic(fmt.Errorf("field country of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.validator_perm_id":
panic(fmt.Errorf("field validator_perm_id of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.vp_state":
panic(fmt.Errorf("field vp_state of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.vp_validator_deposit":
panic(fmt.Errorf("field vp_validator_deposit of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.vp_current_fees":
panic(fmt.Errorf("field vp_current_fees of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.vp_current_deposit":
panic(fmt.Errorf("field vp_current_deposit of message veranablockchain.permission.Permission is not mutable"))
case "veranablockchain.permission.Permission.vp_summary_digest_sri":
panic(fmt.Errorf("field vp_summary_digest_sri of message veranablockchain.permission.Permission is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Permission"))
}
panic(fmt.Errorf("message veranablockchain.permission.Permission does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Permission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.Permission.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.schema_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.type":
return protoreflect.ValueOfEnum(0)
case "veranablockchain.permission.Permission.did":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.grantee":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.created_by":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.extended":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.extended_by":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.effective_from":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.effective_until":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.modified":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.validation_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.issuance_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.verification_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.revoked":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.revoked_by":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.terminated":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.terminated_by":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.country":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.validator_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.vp_state":
return protoreflect.ValueOfEnum(0)
case "veranablockchain.permission.Permission.vp_exp":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.vp_last_state_change":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.Permission.vp_validator_deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.vp_current_fees":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.vp_current_deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.Permission.vp_summary_digest_sri":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.Permission.vp_term_requested":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.Permission"))
}
panic(fmt.Errorf("message veranablockchain.permission.Permission does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Permission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.Permission", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Permission) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Permission) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Permission) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Permission) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Permission)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.SchemaId != 0 {
n += 1 + runtime.Sov(uint64(x.SchemaId))
}
if x.Type_ != 0 {
n += 1 + runtime.Sov(uint64(x.Type_))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Grantee)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.CreatedBy)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Extended != nil {
l = options.Size(x.Extended)
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.ExtendedBy)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveFrom != nil {
l = options.Size(x.EffectiveFrom)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.EffectiveUntil != nil {
l = options.Size(x.EffectiveUntil)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Modified != nil {
l = options.Size(x.Modified)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ValidationFees != 0 {
n += 1 + runtime.Sov(uint64(x.ValidationFees))
}
if x.IssuanceFees != 0 {
n += 1 + runtime.Sov(uint64(x.IssuanceFees))
}
if x.VerificationFees != 0 {
n += 1 + runtime.Sov(uint64(x.VerificationFees))
}
if x.Deposit != 0 {
n += 2 + runtime.Sov(uint64(x.Deposit))
}
if x.Revoked != nil {
l = options.Size(x.Revoked)
n += 2 + l + runtime.Sov(uint64(l))
}
l = len(x.RevokedBy)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
if x.Terminated != nil {
l = options.Size(x.Terminated)
n += 2 + l + runtime.Sov(uint64(l))
}
l = len(x.TerminatedBy)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
l = len(x.Country)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
if x.ValidatorPermId != 0 {
n += 2 + runtime.Sov(uint64(x.ValidatorPermId))
}
if x.VpState != 0 {
n += 2 + runtime.Sov(uint64(x.VpState))
}
if x.VpExp != nil {
l = options.Size(x.VpExp)
n += 2 + l + runtime.Sov(uint64(l))
}
if x.VpLastStateChange != nil {
l = options.Size(x.VpLastStateChange)
n += 2 + l + runtime.Sov(uint64(l))
}
if x.VpValidatorDeposit != 0 {
n += 2 + runtime.Sov(uint64(x.VpValidatorDeposit))
}
if x.VpCurrentFees != 0 {
n += 2 + runtime.Sov(uint64(x.VpCurrentFees))
}
if x.VpCurrentDeposit != 0 {
n += 2 + runtime.Sov(uint64(x.VpCurrentDeposit))
}
l = len(x.VpSummaryDigestSri)
if l > 0 {
n += 2 + l + runtime.Sov(uint64(l))
}
if x.VpTermRequested != nil {
l = options.Size(x.VpTermRequested)
n += 2 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Permission)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.VpTermRequested != nil {
encoded, err := options.Marshal(x.VpTermRequested)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xf2
}
if len(x.VpSummaryDigestSri) > 0 {
i -= len(x.VpSummaryDigestSri)
copy(dAtA[i:], x.VpSummaryDigestSri)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.VpSummaryDigestSri)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xea
}
if x.VpCurrentDeposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VpCurrentDeposit))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xe0
}
if x.VpCurrentFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VpCurrentFees))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xd8
}
if x.VpValidatorDeposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VpValidatorDeposit))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xd0
}
if x.VpLastStateChange != nil {
encoded, err := options.Marshal(x.VpLastStateChange)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xca
}
if x.VpExp != nil {
encoded, err := options.Marshal(x.VpExp)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xc2
}
if x.VpState != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VpState))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xb8
}
if x.ValidatorPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidatorPermId))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xb0
}
if len(x.Country) > 0 {
i -= len(x.Country)
copy(dAtA[i:], x.Country)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Country)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xaa
}
if len(x.TerminatedBy) > 0 {
i -= len(x.TerminatedBy)
copy(dAtA[i:], x.TerminatedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TerminatedBy)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xa2
}
if x.Terminated != nil {
encoded, err := options.Marshal(x.Terminated)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x9a
}
if len(x.RevokedBy) > 0 {
i -= len(x.RevokedBy)
copy(dAtA[i:], x.RevokedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RevokedBy)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x92
}
if x.Revoked != nil {
encoded, err := options.Marshal(x.Revoked)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x8a
}
if x.Deposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Deposit))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x80
}
if x.VerificationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.VerificationFees))
i--
dAtA[i] = 0x78
}
if x.IssuanceFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.IssuanceFees))
i--
dAtA[i] = 0x70
}
if x.ValidationFees != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ValidationFees))
i--
dAtA[i] = 0x68
}
if x.Modified != nil {
encoded, err := options.Marshal(x.Modified)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x62
}
if x.EffectiveUntil != nil {
encoded, err := options.Marshal(x.EffectiveUntil)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x5a
}
if x.EffectiveFrom != nil {
encoded, err := options.Marshal(x.EffectiveFrom)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x52
}
if len(x.ExtendedBy) > 0 {
i -= len(x.ExtendedBy)
copy(dAtA[i:], x.ExtendedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExtendedBy)))
i--
dAtA[i] = 0x4a
}
if x.Extended != nil {
encoded, err := options.Marshal(x.Extended)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x42
}
if len(x.CreatedBy) > 0 {
i -= len(x.CreatedBy)
copy(dAtA[i:], x.CreatedBy)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CreatedBy)))
i--
dAtA[i] = 0x3a
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if len(x.Grantee) > 0 {
i -= len(x.Grantee)
copy(dAtA[i:], x.Grantee)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Grantee)))
i--
dAtA[i] = 0x2a
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x22
}
if x.Type_ != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_))
i--
dAtA[i] = 0x18
}
if x.SchemaId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.SchemaId))
i--
dAtA[i] = 0x10
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Permission)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Permission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Permission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
x.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
}
x.Type_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Type_ |= PermissionType(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Grantee = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.CreatedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Extended", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Extended == nil {
x.Extended = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Extended); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 9:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExtendedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.ExtendedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 10:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveFrom", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveFrom == nil {
x.EffectiveFrom = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveFrom); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 11:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.EffectiveUntil == nil {
x.EffectiveUntil = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EffectiveUntil); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 12:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Modified == nil {
x.Modified = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Modified); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 13:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
x.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 14:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
x.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 15:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
x.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 16:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
x.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Deposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 17:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Revoked", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Revoked == nil {
x.Revoked = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Revoked); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 18:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RevokedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.RevokedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 19:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Terminated", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Terminated == nil {
x.Terminated = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Terminated); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 20:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TerminatedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TerminatedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 21:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 22:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValidatorPermId", wireType)
}
x.ValidatorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ValidatorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 23:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpState", wireType)
}
x.VpState = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VpState |= ValidationState(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 24:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpExp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.VpExp == nil {
x.VpExp = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VpExp); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 25:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpLastStateChange", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.VpLastStateChange == nil {
x.VpLastStateChange = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VpLastStateChange); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 26:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpValidatorDeposit", wireType)
}
x.VpValidatorDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VpValidatorDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 27:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpCurrentFees", wireType)
}
x.VpCurrentFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VpCurrentFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 28:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpCurrentDeposit", wireType)
}
x.VpCurrentDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.VpCurrentDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 29:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpSummaryDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.VpSummaryDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 30:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field VpTermRequested", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.VpTermRequested == nil {
x.VpTermRequested = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.VpTermRequested); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_PermissionSession_4_list)(nil)
type _PermissionSession_4_list struct {
list *[]*SessionAuthz
}
func (x *_PermissionSession_4_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_PermissionSession_4_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_PermissionSession_4_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*SessionAuthz)
(*x.list)[i] = concreteValue
}
func (x *_PermissionSession_4_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*SessionAuthz)
*x.list = append(*x.list, concreteValue)
}
func (x *_PermissionSession_4_list) AppendMutable() protoreflect.Value {
v := new(SessionAuthz)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_PermissionSession_4_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_PermissionSession_4_list) NewElement() protoreflect.Value {
v := new(SessionAuthz)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_PermissionSession_4_list) IsValid() bool {
return x.list != nil
}
var (
md_PermissionSession protoreflect.MessageDescriptor
fd_PermissionSession_id protoreflect.FieldDescriptor
fd_PermissionSession_controller protoreflect.FieldDescriptor
fd_PermissionSession_agent_perm_id protoreflect.FieldDescriptor
fd_PermissionSession_authz protoreflect.FieldDescriptor
fd_PermissionSession_created protoreflect.FieldDescriptor
fd_PermissionSession_modified protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_types_proto_init()
md_PermissionSession = File_veranablockchain_permission_types_proto.Messages().ByName("PermissionSession")
fd_PermissionSession_id = md_PermissionSession.Fields().ByName("id")
fd_PermissionSession_controller = md_PermissionSession.Fields().ByName("controller")
fd_PermissionSession_agent_perm_id = md_PermissionSession.Fields().ByName("agent_perm_id")
fd_PermissionSession_authz = md_PermissionSession.Fields().ByName("authz")
fd_PermissionSession_created = md_PermissionSession.Fields().ByName("created")
fd_PermissionSession_modified = md_PermissionSession.Fields().ByName("modified")
}
var _ protoreflect.Message = (*fastReflection_PermissionSession)(nil)
type fastReflection_PermissionSession PermissionSession
func (x *PermissionSession) ProtoReflect() protoreflect.Message {
return (*fastReflection_PermissionSession)(x)
}
func (x *PermissionSession) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_PermissionSession_messageType fastReflection_PermissionSession_messageType
var _ protoreflect.MessageType = fastReflection_PermissionSession_messageType{}
type fastReflection_PermissionSession_messageType struct{}
func (x fastReflection_PermissionSession_messageType) Zero() protoreflect.Message {
return (*fastReflection_PermissionSession)(nil)
}
func (x fastReflection_PermissionSession_messageType) New() protoreflect.Message {
return new(fastReflection_PermissionSession)
}
func (x fastReflection_PermissionSession_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_PermissionSession
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_PermissionSession) Descriptor() protoreflect.MessageDescriptor {
return md_PermissionSession
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_PermissionSession) Type() protoreflect.MessageType {
return _fastReflection_PermissionSession_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_PermissionSession) New() protoreflect.Message {
return new(fastReflection_PermissionSession)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_PermissionSession) Interface() protoreflect.ProtoMessage {
return (*PermissionSession)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_PermissionSession) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != "" {
value := protoreflect.ValueOfString(x.Id)
if !f(fd_PermissionSession_id, value) {
return
}
}
if x.Controller != "" {
value := protoreflect.ValueOfString(x.Controller)
if !f(fd_PermissionSession_controller, value) {
return
}
}
if x.AgentPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.AgentPermId)
if !f(fd_PermissionSession_agent_perm_id, value) {
return
}
}
if len(x.Authz) != 0 {
value := protoreflect.ValueOfList(&_PermissionSession_4_list{list: &x.Authz})
if !f(fd_PermissionSession_authz, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_PermissionSession_created, value) {
return
}
}
if x.Modified != nil {
value := protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
if !f(fd_PermissionSession_modified, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_PermissionSession) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.PermissionSession.id":
return x.Id != ""
case "veranablockchain.permission.PermissionSession.controller":
return x.Controller != ""
case "veranablockchain.permission.PermissionSession.agent_perm_id":
return x.AgentPermId != uint64(0)
case "veranablockchain.permission.PermissionSession.authz":
return len(x.Authz) != 0
case "veranablockchain.permission.PermissionSession.created":
return x.Created != nil
case "veranablockchain.permission.PermissionSession.modified":
return x.Modified != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.PermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.PermissionSession does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PermissionSession) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.PermissionSession.id":
x.Id = ""
case "veranablockchain.permission.PermissionSession.controller":
x.Controller = ""
case "veranablockchain.permission.PermissionSession.agent_perm_id":
x.AgentPermId = uint64(0)
case "veranablockchain.permission.PermissionSession.authz":
x.Authz = nil
case "veranablockchain.permission.PermissionSession.created":
x.Created = nil
case "veranablockchain.permission.PermissionSession.modified":
x.Modified = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.PermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.PermissionSession does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_PermissionSession) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.PermissionSession.id":
value := x.Id
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.PermissionSession.controller":
value := x.Controller
return protoreflect.ValueOfString(value)
case "veranablockchain.permission.PermissionSession.agent_perm_id":
value := x.AgentPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.PermissionSession.authz":
if len(x.Authz) == 0 {
return protoreflect.ValueOfList(&_PermissionSession_4_list{})
}
listValue := &_PermissionSession_4_list{list: &x.Authz}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.permission.PermissionSession.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.permission.PermissionSession.modified":
value := x.Modified
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.PermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.PermissionSession does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PermissionSession) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.PermissionSession.id":
x.Id = value.Interface().(string)
case "veranablockchain.permission.PermissionSession.controller":
x.Controller = value.Interface().(string)
case "veranablockchain.permission.PermissionSession.agent_perm_id":
x.AgentPermId = value.Uint()
case "veranablockchain.permission.PermissionSession.authz":
lv := value.List()
clv := lv.(*_PermissionSession_4_list)
x.Authz = *clv.list
case "veranablockchain.permission.PermissionSession.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.permission.PermissionSession.modified":
x.Modified = value.Message().Interface().(*timestamppb.Timestamp)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.PermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.PermissionSession does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PermissionSession) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.PermissionSession.authz":
if x.Authz == nil {
x.Authz = []*SessionAuthz{}
}
value := &_PermissionSession_4_list{list: &x.Authz}
return protoreflect.ValueOfList(value)
case "veranablockchain.permission.PermissionSession.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.permission.PermissionSession.modified":
if x.Modified == nil {
x.Modified = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
case "veranablockchain.permission.PermissionSession.id":
panic(fmt.Errorf("field id of message veranablockchain.permission.PermissionSession is not mutable"))
case "veranablockchain.permission.PermissionSession.controller":
panic(fmt.Errorf("field controller of message veranablockchain.permission.PermissionSession is not mutable"))
case "veranablockchain.permission.PermissionSession.agent_perm_id":
panic(fmt.Errorf("field agent_perm_id of message veranablockchain.permission.PermissionSession is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.PermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.PermissionSession does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_PermissionSession) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.PermissionSession.id":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.PermissionSession.controller":
return protoreflect.ValueOfString("")
case "veranablockchain.permission.PermissionSession.agent_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.PermissionSession.authz":
list := []*SessionAuthz{}
return protoreflect.ValueOfList(&_PermissionSession_4_list{list: &list})
case "veranablockchain.permission.PermissionSession.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.permission.PermissionSession.modified":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.PermissionSession"))
}
panic(fmt.Errorf("message veranablockchain.permission.PermissionSession does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_PermissionSession) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.PermissionSession", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_PermissionSession) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_PermissionSession) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_PermissionSession) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_PermissionSession) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*PermissionSession)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Id)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Controller)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.AgentPermId != 0 {
n += 1 + runtime.Sov(uint64(x.AgentPermId))
}
if len(x.Authz) > 0 {
for _, e := range x.Authz {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Modified != nil {
l = options.Size(x.Modified)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*PermissionSession)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Modified != nil {
encoded, err := options.Marshal(x.Modified)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if len(x.Authz) > 0 {
for iNdEx := len(x.Authz) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Authz[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
}
if x.AgentPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.AgentPermId))
i--
dAtA[i] = 0x18
}
if len(x.Controller) > 0 {
i -= len(x.Controller)
copy(dAtA[i:], x.Controller)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
i--
dAtA[i] = 0x12
}
if len(x.Id) > 0 {
i -= len(x.Id)
copy(dAtA[i:], x.Id)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*PermissionSession)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PermissionSession: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PermissionSession: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AgentPermId", wireType)
}
x.AgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.AgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authz", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authz = append(x.Authz, &SessionAuthz{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Authz[len(x.Authz)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Modified == nil {
x.Modified = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Modified); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_SessionAuthz protoreflect.MessageDescriptor
fd_SessionAuthz_executor_perm_id protoreflect.FieldDescriptor
fd_SessionAuthz_beneficiary_perm_id protoreflect.FieldDescriptor
fd_SessionAuthz_wallet_agent_perm_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_permission_types_proto_init()
md_SessionAuthz = File_veranablockchain_permission_types_proto.Messages().ByName("SessionAuthz")
fd_SessionAuthz_executor_perm_id = md_SessionAuthz.Fields().ByName("executor_perm_id")
fd_SessionAuthz_beneficiary_perm_id = md_SessionAuthz.Fields().ByName("beneficiary_perm_id")
fd_SessionAuthz_wallet_agent_perm_id = md_SessionAuthz.Fields().ByName("wallet_agent_perm_id")
}
var _ protoreflect.Message = (*fastReflection_SessionAuthz)(nil)
type fastReflection_SessionAuthz SessionAuthz
func (x *SessionAuthz) ProtoReflect() protoreflect.Message {
return (*fastReflection_SessionAuthz)(x)
}
func (x *SessionAuthz) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_permission_types_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_SessionAuthz_messageType fastReflection_SessionAuthz_messageType
var _ protoreflect.MessageType = fastReflection_SessionAuthz_messageType{}
type fastReflection_SessionAuthz_messageType struct{}
func (x fastReflection_SessionAuthz_messageType) Zero() protoreflect.Message {
return (*fastReflection_SessionAuthz)(nil)
}
func (x fastReflection_SessionAuthz_messageType) New() protoreflect.Message {
return new(fastReflection_SessionAuthz)
}
func (x fastReflection_SessionAuthz_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_SessionAuthz
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_SessionAuthz) Descriptor() protoreflect.MessageDescriptor {
return md_SessionAuthz
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_SessionAuthz) Type() protoreflect.MessageType {
return _fastReflection_SessionAuthz_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_SessionAuthz) New() protoreflect.Message {
return new(fastReflection_SessionAuthz)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_SessionAuthz) Interface() protoreflect.ProtoMessage {
return (*SessionAuthz)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_SessionAuthz) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ExecutorPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.ExecutorPermId)
if !f(fd_SessionAuthz_executor_perm_id, value) {
return
}
}
if x.BeneficiaryPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.BeneficiaryPermId)
if !f(fd_SessionAuthz_beneficiary_perm_id, value) {
return
}
}
if x.WalletAgentPermId != uint64(0) {
value := protoreflect.ValueOfUint64(x.WalletAgentPermId)
if !f(fd_SessionAuthz_wallet_agent_perm_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_SessionAuthz) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.permission.SessionAuthz.executor_perm_id":
return x.ExecutorPermId != uint64(0)
case "veranablockchain.permission.SessionAuthz.beneficiary_perm_id":
return x.BeneficiaryPermId != uint64(0)
case "veranablockchain.permission.SessionAuthz.wallet_agent_perm_id":
return x.WalletAgentPermId != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.permission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.permission.SessionAuthz.executor_perm_id":
x.ExecutorPermId = uint64(0)
case "veranablockchain.permission.SessionAuthz.beneficiary_perm_id":
x.BeneficiaryPermId = uint64(0)
case "veranablockchain.permission.SessionAuthz.wallet_agent_perm_id":
x.WalletAgentPermId = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.permission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_SessionAuthz) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.permission.SessionAuthz.executor_perm_id":
value := x.ExecutorPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.SessionAuthz.beneficiary_perm_id":
value := x.BeneficiaryPermId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.permission.SessionAuthz.wallet_agent_perm_id":
value := x.WalletAgentPermId
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.permission.SessionAuthz does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.permission.SessionAuthz.executor_perm_id":
x.ExecutorPermId = value.Uint()
case "veranablockchain.permission.SessionAuthz.beneficiary_perm_id":
x.BeneficiaryPermId = value.Uint()
case "veranablockchain.permission.SessionAuthz.wallet_agent_perm_id":
x.WalletAgentPermId = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.permission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.SessionAuthz.executor_perm_id":
panic(fmt.Errorf("field executor_perm_id of message veranablockchain.permission.SessionAuthz is not mutable"))
case "veranablockchain.permission.SessionAuthz.beneficiary_perm_id":
panic(fmt.Errorf("field beneficiary_perm_id of message veranablockchain.permission.SessionAuthz is not mutable"))
case "veranablockchain.permission.SessionAuthz.wallet_agent_perm_id":
panic(fmt.Errorf("field wallet_agent_perm_id of message veranablockchain.permission.SessionAuthz is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.permission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_SessionAuthz) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.permission.SessionAuthz.executor_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.SessionAuthz.beneficiary_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.permission.SessionAuthz.wallet_agent_perm_id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.permission.SessionAuthz"))
}
panic(fmt.Errorf("message veranablockchain.permission.SessionAuthz does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_SessionAuthz) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.permission.SessionAuthz", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_SessionAuthz) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_SessionAuthz) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_SessionAuthz) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_SessionAuthz) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*SessionAuthz)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.ExecutorPermId != 0 {
n += 1 + runtime.Sov(uint64(x.ExecutorPermId))
}
if x.BeneficiaryPermId != 0 {
n += 1 + runtime.Sov(uint64(x.BeneficiaryPermId))
}
if x.WalletAgentPermId != 0 {
n += 1 + runtime.Sov(uint64(x.WalletAgentPermId))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*SessionAuthz)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.WalletAgentPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.WalletAgentPermId))
i--
dAtA[i] = 0x18
}
if x.BeneficiaryPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.BeneficiaryPermId))
i--
dAtA[i] = 0x10
}
if x.ExecutorPermId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ExecutorPermId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*SessionAuthz)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SessionAuthz: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SessionAuthz: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExecutorPermId", wireType)
}
x.ExecutorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ExecutorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryPermId", wireType)
}
x.BeneficiaryPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.BeneficiaryPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletAgentPermId", wireType)
}
x.WalletAgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.WalletAgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/permission/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Permission types
type PermissionType int32
const (
PermissionType_PERMISSION_TYPE_UNSPECIFIED PermissionType = 0
PermissionType_PERMISSION_TYPE_ISSUER PermissionType = 1
PermissionType_PERMISSION_TYPE_VERIFIER PermissionType = 2
PermissionType_PERMISSION_TYPE_ISSUER_GRANTOR PermissionType = 3
PermissionType_PERMISSION_TYPE_VERIFIER_GRANTOR PermissionType = 4
PermissionType_PERMISSION_TYPE_TRUST_REGISTRY PermissionType = 5
PermissionType_PERMISSION_TYPE_HOLDER PermissionType = 6
)
// Enum value maps for PermissionType.
var (
PermissionType_name = map[int32]string{
0: "PERMISSION_TYPE_UNSPECIFIED",
1: "PERMISSION_TYPE_ISSUER",
2: "PERMISSION_TYPE_VERIFIER",
3: "PERMISSION_TYPE_ISSUER_GRANTOR",
4: "PERMISSION_TYPE_VERIFIER_GRANTOR",
5: "PERMISSION_TYPE_TRUST_REGISTRY",
6: "PERMISSION_TYPE_HOLDER",
}
PermissionType_value = map[string]int32{
"PERMISSION_TYPE_UNSPECIFIED": 0,
"PERMISSION_TYPE_ISSUER": 1,
"PERMISSION_TYPE_VERIFIER": 2,
"PERMISSION_TYPE_ISSUER_GRANTOR": 3,
"PERMISSION_TYPE_VERIFIER_GRANTOR": 4,
"PERMISSION_TYPE_TRUST_REGISTRY": 5,
"PERMISSION_TYPE_HOLDER": 6,
}
)
func (x PermissionType) Enum() *PermissionType {
p := new(PermissionType)
*p = x
return p
}
func (x PermissionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PermissionType) Descriptor() protoreflect.EnumDescriptor {
return file_veranablockchain_permission_types_proto_enumTypes[0].Descriptor()
}
func (PermissionType) Type() protoreflect.EnumType {
return &file_veranablockchain_permission_types_proto_enumTypes[0]
}
func (x PermissionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PermissionType.Descriptor instead.
func (PermissionType) EnumDescriptor() ([]byte, []int) {
return file_veranablockchain_permission_types_proto_rawDescGZIP(), []int{0}
}
// Validation process states
type ValidationState int32
const (
ValidationState_VALIDATION_STATE_UNSPECIFIED ValidationState = 0
ValidationState_VALIDATION_STATE_PENDING ValidationState = 1
ValidationState_VALIDATION_STATE_VALIDATED ValidationState = 2
ValidationState_VALIDATION_STATE_TERMINATED ValidationState = 3
ValidationState_VALIDATION_STATE_TERMINATION_REQUESTED ValidationState = 4
)
// Enum value maps for ValidationState.
var (
ValidationState_name = map[int32]string{
0: "VALIDATION_STATE_UNSPECIFIED",
1: "VALIDATION_STATE_PENDING",
2: "VALIDATION_STATE_VALIDATED",
3: "VALIDATION_STATE_TERMINATED",
4: "VALIDATION_STATE_TERMINATION_REQUESTED",
}
ValidationState_value = map[string]int32{
"VALIDATION_STATE_UNSPECIFIED": 0,
"VALIDATION_STATE_PENDING": 1,
"VALIDATION_STATE_VALIDATED": 2,
"VALIDATION_STATE_TERMINATED": 3,
"VALIDATION_STATE_TERMINATION_REQUESTED": 4,
}
)
func (x ValidationState) Enum() *ValidationState {
p := new(ValidationState)
*p = x
return p
}
func (x ValidationState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ValidationState) Descriptor() protoreflect.EnumDescriptor {
return file_veranablockchain_permission_types_proto_enumTypes[1].Descriptor()
}
func (ValidationState) Type() protoreflect.EnumType {
return &file_veranablockchain_permission_types_proto_enumTypes[1]
}
func (x ValidationState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ValidationState.Descriptor instead.
func (ValidationState) EnumDescriptor() ([]byte, []int) {
return file_veranablockchain_permission_types_proto_rawDescGZIP(), []int{1}
}
type Permission struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
SchemaId uint64 `protobuf:"varint,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Type_ PermissionType `protobuf:"varint,3,opt,name=type,proto3,enum=veranablockchain.permission.PermissionType" json:"type,omitempty"`
Did string `protobuf:"bytes,4,opt,name=did,proto3" json:"did,omitempty"`
Grantee string `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
Extended *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=extended,proto3" json:"extended,omitempty"`
ExtendedBy string `protobuf:"bytes,9,opt,name=extended_by,json=extendedBy,proto3" json:"extended_by,omitempty"`
EffectiveFrom *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=effective_from,json=effectiveFrom,proto3" json:"effective_from,omitempty"`
EffectiveUntil *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=effective_until,json=effectiveUntil,proto3" json:"effective_until,omitempty"`
Modified *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=modified,proto3" json:"modified,omitempty"`
ValidationFees uint64 `protobuf:"varint,13,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,14,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,15,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
Deposit uint64 `protobuf:"varint,16,opt,name=deposit,proto3" json:"deposit,omitempty"`
Revoked *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=revoked,proto3" json:"revoked,omitempty"`
RevokedBy string `protobuf:"bytes,18,opt,name=revoked_by,json=revokedBy,proto3" json:"revoked_by,omitempty"`
Terminated *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=terminated,proto3" json:"terminated,omitempty"`
TerminatedBy string `protobuf:"bytes,20,opt,name=terminated_by,json=terminatedBy,proto3" json:"terminated_by,omitempty"`
Country string `protobuf:"bytes,21,opt,name=country,proto3" json:"country,omitempty"`
ValidatorPermId uint64 `protobuf:"varint,22,opt,name=validator_perm_id,json=validatorPermId,proto3" json:"validator_perm_id,omitempty"`
VpState ValidationState `protobuf:"varint,23,opt,name=vp_state,json=vpState,proto3,enum=veranablockchain.permission.ValidationState" json:"vp_state,omitempty"`
VpExp *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=vp_exp,json=vpExp,proto3" json:"vp_exp,omitempty"`
VpLastStateChange *timestamppb.Timestamp `protobuf:"bytes,25,opt,name=vp_last_state_change,json=vpLastStateChange,proto3" json:"vp_last_state_change,omitempty"`
VpValidatorDeposit uint64 `protobuf:"varint,26,opt,name=vp_validator_deposit,json=vpValidatorDeposit,proto3" json:"vp_validator_deposit,omitempty"`
VpCurrentFees uint64 `protobuf:"varint,27,opt,name=vp_current_fees,json=vpCurrentFees,proto3" json:"vp_current_fees,omitempty"`
VpCurrentDeposit uint64 `protobuf:"varint,28,opt,name=vp_current_deposit,json=vpCurrentDeposit,proto3" json:"vp_current_deposit,omitempty"`
VpSummaryDigestSri string `protobuf:"bytes,29,opt,name=vp_summary_digest_sri,json=vpSummaryDigestSri,proto3" json:"vp_summary_digest_sri,omitempty"`
VpTermRequested *timestamppb.Timestamp `protobuf:"bytes,30,opt,name=vp_term_requested,json=vpTermRequested,proto3" json:"vp_term_requested,omitempty"`
}
func (x *Permission) Reset() {
*x = Permission{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Permission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Permission) ProtoMessage() {}
// Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_types_proto_rawDescGZIP(), []int{0}
}
func (x *Permission) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Permission) GetSchemaId() uint64 {
if x != nil {
return x.SchemaId
}
return 0
}
func (x *Permission) GetType_() PermissionType {
if x != nil {
return x.Type_
}
return PermissionType_PERMISSION_TYPE_UNSPECIFIED
}
func (x *Permission) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *Permission) GetGrantee() string {
if x != nil {
return x.Grantee
}
return ""
}
func (x *Permission) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *Permission) GetCreatedBy() string {
if x != nil {
return x.CreatedBy
}
return ""
}
func (x *Permission) GetExtended() *timestamppb.Timestamp {
if x != nil {
return x.Extended
}
return nil
}
func (x *Permission) GetExtendedBy() string {
if x != nil {
return x.ExtendedBy
}
return ""
}
func (x *Permission) GetEffectiveFrom() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveFrom
}
return nil
}
func (x *Permission) GetEffectiveUntil() *timestamppb.Timestamp {
if x != nil {
return x.EffectiveUntil
}
return nil
}
func (x *Permission) GetModified() *timestamppb.Timestamp {
if x != nil {
return x.Modified
}
return nil
}
func (x *Permission) GetValidationFees() uint64 {
if x != nil {
return x.ValidationFees
}
return 0
}
func (x *Permission) GetIssuanceFees() uint64 {
if x != nil {
return x.IssuanceFees
}
return 0
}
func (x *Permission) GetVerificationFees() uint64 {
if x != nil {
return x.VerificationFees
}
return 0
}
func (x *Permission) GetDeposit() uint64 {
if x != nil {
return x.Deposit
}
return 0
}
func (x *Permission) GetRevoked() *timestamppb.Timestamp {
if x != nil {
return x.Revoked
}
return nil
}
func (x *Permission) GetRevokedBy() string {
if x != nil {
return x.RevokedBy
}
return ""
}
func (x *Permission) GetTerminated() *timestamppb.Timestamp {
if x != nil {
return x.Terminated
}
return nil
}
func (x *Permission) GetTerminatedBy() string {
if x != nil {
return x.TerminatedBy
}
return ""
}
func (x *Permission) GetCountry() string {
if x != nil {
return x.Country
}
return ""
}
func (x *Permission) GetValidatorPermId() uint64 {
if x != nil {
return x.ValidatorPermId
}
return 0
}
func (x *Permission) GetVpState() ValidationState {
if x != nil {
return x.VpState
}
return ValidationState_VALIDATION_STATE_UNSPECIFIED
}
func (x *Permission) GetVpExp() *timestamppb.Timestamp {
if x != nil {
return x.VpExp
}
return nil
}
func (x *Permission) GetVpLastStateChange() *timestamppb.Timestamp {
if x != nil {
return x.VpLastStateChange
}
return nil
}
func (x *Permission) GetVpValidatorDeposit() uint64 {
if x != nil {
return x.VpValidatorDeposit
}
return 0
}
func (x *Permission) GetVpCurrentFees() uint64 {
if x != nil {
return x.VpCurrentFees
}
return 0
}
func (x *Permission) GetVpCurrentDeposit() uint64 {
if x != nil {
return x.VpCurrentDeposit
}
return 0
}
func (x *Permission) GetVpSummaryDigestSri() string {
if x != nil {
return x.VpSummaryDigestSri
}
return ""
}
func (x *Permission) GetVpTermRequested() *timestamppb.Timestamp {
if x != nil {
return x.VpTermRequested
}
return nil
}
type PermissionSession struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"`
AgentPermId uint64 `protobuf:"varint,3,opt,name=agent_perm_id,json=agentPermId,proto3" json:"agent_perm_id,omitempty"`
Authz []*SessionAuthz `protobuf:"bytes,4,rep,name=authz,proto3" json:"authz,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
Modified *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=modified,proto3" json:"modified,omitempty"`
}
func (x *PermissionSession) Reset() {
*x = PermissionSession{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PermissionSession) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermissionSession) ProtoMessage() {}
// Deprecated: Use PermissionSession.ProtoReflect.Descriptor instead.
func (*PermissionSession) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_types_proto_rawDescGZIP(), []int{1}
}
func (x *PermissionSession) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *PermissionSession) GetController() string {
if x != nil {
return x.Controller
}
return ""
}
func (x *PermissionSession) GetAgentPermId() uint64 {
if x != nil {
return x.AgentPermId
}
return 0
}
func (x *PermissionSession) GetAuthz() []*SessionAuthz {
if x != nil {
return x.Authz
}
return nil
}
func (x *PermissionSession) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *PermissionSession) GetModified() *timestamppb.Timestamp {
if x != nil {
return x.Modified
}
return nil
}
type SessionAuthz struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ExecutorPermId uint64 `protobuf:"varint,1,opt,name=executor_perm_id,json=executorPermId,proto3" json:"executor_perm_id,omitempty"`
BeneficiaryPermId uint64 `protobuf:"varint,2,opt,name=beneficiary_perm_id,json=beneficiaryPermId,proto3" json:"beneficiary_perm_id,omitempty"`
WalletAgentPermId uint64 `protobuf:"varint,3,opt,name=wallet_agent_perm_id,json=walletAgentPermId,proto3" json:"wallet_agent_perm_id,omitempty"`
}
func (x *SessionAuthz) Reset() {
*x = SessionAuthz{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_permission_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SessionAuthz) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionAuthz) ProtoMessage() {}
// Deprecated: Use SessionAuthz.ProtoReflect.Descriptor instead.
func (*SessionAuthz) Descriptor() ([]byte, []int) {
return file_veranablockchain_permission_types_proto_rawDescGZIP(), []int{2}
}
func (x *SessionAuthz) GetExecutorPermId() uint64 {
if x != nil {
return x.ExecutorPermId
}
return 0
}
func (x *SessionAuthz) GetBeneficiaryPermId() uint64 {
if x != nil {
return x.BeneficiaryPermId
}
return 0
}
func (x *SessionAuthz) GetWalletAgentPermId() uint64 {
if x != nil {
return x.WalletAgentPermId
}
return 0
}
var File_veranablockchain_permission_types_proto protoreflect.FileDescriptor
var file_veranablockchain_permission_types_proto_rawDesc = []byte{
0x0a, 0x27, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x79,
0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d,
0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x0c, 0x0a, 0x0a,
0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63,
0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73,
0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79,
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x07, 0x67, 0x72,
0x61, 0x6e, 0x74, 0x65, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d,
0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53,
0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x12, 0x3a,
0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f,
0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18,
0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65,
0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x42, 0x79, 0x12, 0x3c, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18,
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65,
0x64, 0x12, 0x39, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x62, 0x79,
0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x42, 0x79, 0x12, 0x47, 0x0a, 0x0e,
0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x0a,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76,
0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x49, 0x0a, 0x0f, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69,
0x76, 0x65, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01,
0x52, 0x0e, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c,
0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04,
0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x27,
0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65,
0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x73, 0x75, 0x61,
0x6e, 0x63, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c,
0x69, 0x73, 0x73, 0x75, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x65, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11,
0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65,
0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x65, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f,
0x73, 0x69, 0x74, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x18, 0x11,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x12,
0x37, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x12, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x72,
0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x42, 0x79, 0x12, 0x40, 0x0a, 0x0a, 0x74, 0x65, 0x72, 0x6d,
0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0a,
0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3d, 0x0a, 0x0d, 0x74, 0x65,
0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28,
0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x74, 0x65, 0x72,
0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x72, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72,
0x5f, 0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x16, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12,
0x47, 0x0a, 0x08, 0x76, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x2c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
0x07, 0x76, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x76, 0x70, 0x5f, 0x65,
0x78, 0x70, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x05, 0x76, 0x70, 0x45, 0x78,
0x70, 0x12, 0x51, 0x0a, 0x14, 0x76, 0x70, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x61,
0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f,
0x01, 0x52, 0x11, 0x76, 0x70, 0x4c, 0x61, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68,
0x61, 0x6e, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x76, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64,
0x61, 0x74, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x1a, 0x20, 0x01,
0x28, 0x04, 0x52, 0x12, 0x76, 0x70, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x44,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x76, 0x70, 0x5f, 0x63, 0x75, 0x72,
0x72, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x04, 0x52,
0x0d, 0x76, 0x70, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x73, 0x12, 0x2c,
0x0a, 0x12, 0x76, 0x70, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x76, 0x70, 0x43, 0x75,
0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x31, 0x0a, 0x15,
0x76, 0x70, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x69, 0x67, 0x65, 0x73,
0x74, 0x5f, 0x73, 0x72, 0x69, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x76, 0x70, 0x53,
0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x53, 0x72, 0x69, 0x12,
0x4c, 0x0a, 0x11, 0x76, 0x70, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x65, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0f, 0x76, 0x70,
0x54, 0x65, 0x72, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0xa2, 0x02,
0x0a, 0x11, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65,
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
0x6c, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x65, 0x72,
0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x61, 0x67, 0x65, 0x6e,
0x74, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x05, 0x61, 0x75, 0x74, 0x68, 0x7a,
0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x75, 0x74, 0x68,
0x7a, 0x52, 0x05, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x12, 0x3a, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64,
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x42, 0x04, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69,
0x65, 0x64, 0x22, 0x99, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x75,
0x74, 0x68, 0x7a, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x5f,
0x70, 0x65, 0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x65,
0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x2e, 0x0a,
0x13, 0x62, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x5f, 0x70, 0x65, 0x72,
0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x62, 0x65, 0x6e, 0x65,
0x66, 0x69, 0x63, 0x69, 0x61, 0x72, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x12, 0x2f, 0x0a,
0x14, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x65,
0x72, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x77, 0x61, 0x6c,
0x6c, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x49, 0x64, 0x2a, 0xf5,
0x01, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x52, 0x10, 0x01, 0x12, 0x1c,
0x0a, 0x18, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50,
0x45, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, 0x52, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e,
0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
0x49, 0x53, 0x53, 0x55, 0x45, 0x52, 0x5f, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x4f, 0x52, 0x10, 0x03,
0x12, 0x24, 0x0a, 0x20, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54,
0x59, 0x50, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, 0x52, 0x5f, 0x47, 0x52, 0x41,
0x4e, 0x54, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53,
0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x55, 0x53, 0x54, 0x5f,
0x52, 0x45, 0x47, 0x49, 0x53, 0x54, 0x52, 0x59, 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x45,
0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x4f,
0x4c, 0x44, 0x45, 0x52, 0x10, 0x06, 0x2a, 0xbe, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x56, 0x41,
0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55,
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18,
0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,
0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x56, 0x41,
0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x56,
0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x56, 0x41,
0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x54,
0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x2a, 0x0a, 0x26, 0x56,
0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f,
0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x51, 0x55,
0x45, 0x53, 0x54, 0x45, 0x44, 0x10, 0x04, 0x42, 0x84, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x54, 0x79, 0x70,
0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62,
0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x50, 0x58, 0xaa, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x65, 0x72,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x1b, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x27, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea,
0x02, 0x1c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x3a, 0x3a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_permission_types_proto_rawDescOnce sync.Once
file_veranablockchain_permission_types_proto_rawDescData = file_veranablockchain_permission_types_proto_rawDesc
)
func file_veranablockchain_permission_types_proto_rawDescGZIP() []byte {
file_veranablockchain_permission_types_proto_rawDescOnce.Do(func() {
file_veranablockchain_permission_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_permission_types_proto_rawDescData)
})
return file_veranablockchain_permission_types_proto_rawDescData
}
var file_veranablockchain_permission_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_veranablockchain_permission_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_veranablockchain_permission_types_proto_goTypes = []interface{}{
(PermissionType)(0), // 0: veranablockchain.permission.PermissionType
(ValidationState)(0), // 1: veranablockchain.permission.ValidationState
(*Permission)(nil), // 2: veranablockchain.permission.Permission
(*PermissionSession)(nil), // 3: veranablockchain.permission.PermissionSession
(*SessionAuthz)(nil), // 4: veranablockchain.permission.SessionAuthz
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_veranablockchain_permission_types_proto_depIdxs = []int32{
0, // 0: veranablockchain.permission.Permission.type:type_name -> veranablockchain.permission.PermissionType
5, // 1: veranablockchain.permission.Permission.created:type_name -> google.protobuf.Timestamp
5, // 2: veranablockchain.permission.Permission.extended:type_name -> google.protobuf.Timestamp
5, // 3: veranablockchain.permission.Permission.effective_from:type_name -> google.protobuf.Timestamp
5, // 4: veranablockchain.permission.Permission.effective_until:type_name -> google.protobuf.Timestamp
5, // 5: veranablockchain.permission.Permission.modified:type_name -> google.protobuf.Timestamp
5, // 6: veranablockchain.permission.Permission.revoked:type_name -> google.protobuf.Timestamp
5, // 7: veranablockchain.permission.Permission.terminated:type_name -> google.protobuf.Timestamp
1, // 8: veranablockchain.permission.Permission.vp_state:type_name -> veranablockchain.permission.ValidationState
5, // 9: veranablockchain.permission.Permission.vp_exp:type_name -> google.protobuf.Timestamp
5, // 10: veranablockchain.permission.Permission.vp_last_state_change:type_name -> google.protobuf.Timestamp
5, // 11: veranablockchain.permission.Permission.vp_term_requested:type_name -> google.protobuf.Timestamp
4, // 12: veranablockchain.permission.PermissionSession.authz:type_name -> veranablockchain.permission.SessionAuthz
5, // 13: veranablockchain.permission.PermissionSession.created:type_name -> google.protobuf.Timestamp
5, // 14: veranablockchain.permission.PermissionSession.modified:type_name -> google.protobuf.Timestamp
15, // [15:15] is the sub-list for method output_type
15, // [15:15] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
15, // [15:15] is the sub-list for extension extendee
0, // [0:15] is the sub-list for field type_name
}
func init() { file_veranablockchain_permission_types_proto_init() }
func file_veranablockchain_permission_types_proto_init() {
if File_veranablockchain_permission_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_permission_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Permission); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PermissionSession); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_permission_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SessionAuthz); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_permission_types_proto_rawDesc,
NumEnums: 2,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_permission_types_proto_goTypes,
DependencyIndexes: file_veranablockchain_permission_types_proto_depIdxs,
EnumInfos: file_veranablockchain_permission_types_proto_enumTypes,
MessageInfos: file_veranablockchain_permission_types_proto_msgTypes,
}.Build()
File_veranablockchain_permission_types_proto = out.File
file_veranablockchain_permission_types_proto_rawDesc = nil
file_veranablockchain_permission_types_proto_goTypes = nil
file_veranablockchain_permission_types_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustdeposit
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
type _GenesisState_2_list struct {
list *[]*TrustDepositRecord
}
func (x *_GenesisState_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*TrustDepositRecord)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*TrustDepositRecord)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
v := new(TrustDepositRecord)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
v := new(TrustDepositRecord)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) IsValid() bool {
return x.list != nil
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_trust_deposits protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_genesis_proto_init()
md_GenesisState = File_veranablockchain_trustdeposit_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
fd_GenesisState_trust_deposits = md_GenesisState.Fields().ByName("trust_deposits")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
if len(x.TrustDeposits) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.TrustDeposits})
if !f(fd_GenesisState_trust_deposits, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.GenesisState.params":
return x.Params != nil
case "veranablockchain.trustdeposit.GenesisState.trust_deposits":
return len(x.TrustDeposits) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.GenesisState.params":
x.Params = nil
case "veranablockchain.trustdeposit.GenesisState.trust_deposits":
x.TrustDeposits = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustdeposit.GenesisState.trust_deposits":
if len(x.TrustDeposits) == 0 {
return protoreflect.ValueOfList(&_GenesisState_2_list{})
}
listValue := &_GenesisState_2_list{list: &x.TrustDeposits}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
case "veranablockchain.trustdeposit.GenesisState.trust_deposits":
lv := value.List()
clv := lv.(*_GenesisState_2_list)
x.TrustDeposits = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.trustdeposit.GenesisState.trust_deposits":
if x.TrustDeposits == nil {
x.TrustDeposits = []*TrustDepositRecord{}
}
value := &_GenesisState_2_list{list: &x.TrustDeposits}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustdeposit.GenesisState.trust_deposits":
list := []*TrustDepositRecord{}
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.TrustDeposits) > 0 {
for _, e := range x.TrustDeposits {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.TrustDeposits) > 0 {
for iNdEx := len(x.TrustDeposits) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.TrustDeposits[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustDeposits", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TrustDeposits = append(x.TrustDeposits, &TrustDepositRecord{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TrustDeposits[len(x.TrustDeposits)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_TrustDepositRecord protoreflect.MessageDescriptor
fd_TrustDepositRecord_account protoreflect.FieldDescriptor
fd_TrustDepositRecord_share protoreflect.FieldDescriptor
fd_TrustDepositRecord_amount protoreflect.FieldDescriptor
fd_TrustDepositRecord_claimable protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_genesis_proto_init()
md_TrustDepositRecord = File_veranablockchain_trustdeposit_genesis_proto.Messages().ByName("TrustDepositRecord")
fd_TrustDepositRecord_account = md_TrustDepositRecord.Fields().ByName("account")
fd_TrustDepositRecord_share = md_TrustDepositRecord.Fields().ByName("share")
fd_TrustDepositRecord_amount = md_TrustDepositRecord.Fields().ByName("amount")
fd_TrustDepositRecord_claimable = md_TrustDepositRecord.Fields().ByName("claimable")
}
var _ protoreflect.Message = (*fastReflection_TrustDepositRecord)(nil)
type fastReflection_TrustDepositRecord TrustDepositRecord
func (x *TrustDepositRecord) ProtoReflect() protoreflect.Message {
return (*fastReflection_TrustDepositRecord)(x)
}
func (x *TrustDepositRecord) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_genesis_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_TrustDepositRecord_messageType fastReflection_TrustDepositRecord_messageType
var _ protoreflect.MessageType = fastReflection_TrustDepositRecord_messageType{}
type fastReflection_TrustDepositRecord_messageType struct{}
func (x fastReflection_TrustDepositRecord_messageType) Zero() protoreflect.Message {
return (*fastReflection_TrustDepositRecord)(nil)
}
func (x fastReflection_TrustDepositRecord_messageType) New() protoreflect.Message {
return new(fastReflection_TrustDepositRecord)
}
func (x fastReflection_TrustDepositRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_TrustDepositRecord
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_TrustDepositRecord) Descriptor() protoreflect.MessageDescriptor {
return md_TrustDepositRecord
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_TrustDepositRecord) Type() protoreflect.MessageType {
return _fastReflection_TrustDepositRecord_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_TrustDepositRecord) New() protoreflect.Message {
return new(fastReflection_TrustDepositRecord)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_TrustDepositRecord) Interface() protoreflect.ProtoMessage {
return (*TrustDepositRecord)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_TrustDepositRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Account != "" {
value := protoreflect.ValueOfString(x.Account)
if !f(fd_TrustDepositRecord_account, value) {
return
}
}
if x.Share != uint64(0) {
value := protoreflect.ValueOfUint64(x.Share)
if !f(fd_TrustDepositRecord_share, value) {
return
}
}
if x.Amount != uint64(0) {
value := protoreflect.ValueOfUint64(x.Amount)
if !f(fd_TrustDepositRecord_amount, value) {
return
}
}
if x.Claimable != uint64(0) {
value := protoreflect.ValueOfUint64(x.Claimable)
if !f(fd_TrustDepositRecord_claimable, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_TrustDepositRecord) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDepositRecord.account":
return x.Account != ""
case "veranablockchain.trustdeposit.TrustDepositRecord.share":
return x.Share != uint64(0)
case "veranablockchain.trustdeposit.TrustDepositRecord.amount":
return x.Amount != uint64(0)
case "veranablockchain.trustdeposit.TrustDepositRecord.claimable":
return x.Claimable != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDepositRecord"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDepositRecord does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDepositRecord) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDepositRecord.account":
x.Account = ""
case "veranablockchain.trustdeposit.TrustDepositRecord.share":
x.Share = uint64(0)
case "veranablockchain.trustdeposit.TrustDepositRecord.amount":
x.Amount = uint64(0)
case "veranablockchain.trustdeposit.TrustDepositRecord.claimable":
x.Claimable = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDepositRecord"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDepositRecord does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_TrustDepositRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.TrustDepositRecord.account":
value := x.Account
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.TrustDepositRecord.share":
value := x.Share
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustdeposit.TrustDepositRecord.amount":
value := x.Amount
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustdeposit.TrustDepositRecord.claimable":
value := x.Claimable
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDepositRecord"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDepositRecord does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDepositRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDepositRecord.account":
x.Account = value.Interface().(string)
case "veranablockchain.trustdeposit.TrustDepositRecord.share":
x.Share = value.Uint()
case "veranablockchain.trustdeposit.TrustDepositRecord.amount":
x.Amount = value.Uint()
case "veranablockchain.trustdeposit.TrustDepositRecord.claimable":
x.Claimable = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDepositRecord"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDepositRecord does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDepositRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDepositRecord.account":
panic(fmt.Errorf("field account of message veranablockchain.trustdeposit.TrustDepositRecord is not mutable"))
case "veranablockchain.trustdeposit.TrustDepositRecord.share":
panic(fmt.Errorf("field share of message veranablockchain.trustdeposit.TrustDepositRecord is not mutable"))
case "veranablockchain.trustdeposit.TrustDepositRecord.amount":
panic(fmt.Errorf("field amount of message veranablockchain.trustdeposit.TrustDepositRecord is not mutable"))
case "veranablockchain.trustdeposit.TrustDepositRecord.claimable":
panic(fmt.Errorf("field claimable of message veranablockchain.trustdeposit.TrustDepositRecord is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDepositRecord"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDepositRecord does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_TrustDepositRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDepositRecord.account":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.TrustDepositRecord.share":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustdeposit.TrustDepositRecord.amount":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustdeposit.TrustDepositRecord.claimable":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDepositRecord"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDepositRecord does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_TrustDepositRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.TrustDepositRecord", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_TrustDepositRecord) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDepositRecord) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_TrustDepositRecord) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_TrustDepositRecord) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*TrustDepositRecord)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Account)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Share != 0 {
n += 1 + runtime.Sov(uint64(x.Share))
}
if x.Amount != 0 {
n += 1 + runtime.Sov(uint64(x.Amount))
}
if x.Claimable != 0 {
n += 1 + runtime.Sov(uint64(x.Claimable))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*TrustDepositRecord)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Claimable != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Claimable))
i--
dAtA[i] = 0x20
}
if x.Amount != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount))
i--
dAtA[i] = 0x18
}
if x.Share != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Share))
i--
dAtA[i] = 0x10
}
if len(x.Account) > 0 {
i -= len(x.Account)
copy(dAtA[i:], x.Account)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*TrustDepositRecord)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustDepositRecord: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustDepositRecord: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Share", wireType)
}
x.Share = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Share |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
}
x.Amount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Amount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Claimable", wireType)
}
x.Claimable = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Claimable |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustdeposit/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the trustdeposit module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
TrustDeposits []*TrustDepositRecord `protobuf:"bytes,2,rep,name=trust_deposits,json=trustDeposits,proto3" json:"trust_deposits,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
func (x *GenesisState) GetTrustDeposits() []*TrustDepositRecord {
if x != nil {
return x.TrustDeposits
}
return nil
}
// TrustDepositRecord defines a trust deposit entry for genesis state
type TrustDepositRecord struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Share uint64 `protobuf:"varint,2,opt,name=share,proto3" json:"share,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Claimable uint64 `protobuf:"varint,4,opt,name=claimable,proto3" json:"claimable,omitempty"`
}
func (x *TrustDepositRecord) Reset() {
*x = TrustDepositRecord{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_genesis_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TrustDepositRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrustDepositRecord) ProtoMessage() {}
// Deprecated: Use TrustDepositRecord.ProtoReflect.Descriptor instead.
func (*TrustDepositRecord) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_genesis_proto_rawDescGZIP(), []int{1}
}
func (x *TrustDepositRecord) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *TrustDepositRecord) GetShare() uint64 {
if x != nil {
return x.Share
}
return 0
}
func (x *TrustDepositRecord) GetAmount() uint64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *TrustDepositRecord) GetClaimable() uint64 {
if x != nil {
return x.Claimable
}
return 0
}
var File_veranablockchain_trustdeposit_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_trustdeposit_genesis_proto_rawDesc = []byte{
0x0a, 0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x11, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61,
0x74, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8,
0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x5e, 0x0a, 0x0e,
0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x18, 0x02,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x74,
0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x73, 0x22, 0x7a, 0x0a, 0x12,
0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x63, 0x6f,
0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05,
0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x68, 0x61,
0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c,
0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63,
0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x92, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d,
0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x0c,
0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58,
0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a,
0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustdeposit_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_trustdeposit_genesis_proto_rawDescData = file_veranablockchain_trustdeposit_genesis_proto_rawDesc
)
func file_veranablockchain_trustdeposit_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_trustdeposit_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustdeposit_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustdeposit_genesis_proto_rawDescData)
})
return file_veranablockchain_trustdeposit_genesis_proto_rawDescData
}
var file_veranablockchain_trustdeposit_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_veranablockchain_trustdeposit_genesis_proto_goTypes = []interface{}{
(*GenesisState)(nil), // 0: veranablockchain.trustdeposit.GenesisState
(*TrustDepositRecord)(nil), // 1: veranablockchain.trustdeposit.TrustDepositRecord
(*Params)(nil), // 2: veranablockchain.trustdeposit.Params
}
var file_veranablockchain_trustdeposit_genesis_proto_depIdxs = []int32{
2, // 0: veranablockchain.trustdeposit.GenesisState.params:type_name -> veranablockchain.trustdeposit.Params
1, // 1: veranablockchain.trustdeposit.GenesisState.trust_deposits:type_name -> veranablockchain.trustdeposit.TrustDepositRecord
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustdeposit_genesis_proto_init() }
func file_veranablockchain_trustdeposit_genesis_proto_init() {
if File_veranablockchain_trustdeposit_genesis_proto != nil {
return
}
file_veranablockchain_trustdeposit_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustdeposit_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TrustDepositRecord); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustdeposit_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustdeposit_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustdeposit_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_trustdeposit_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_trustdeposit_genesis_proto = out.File
file_veranablockchain_trustdeposit_genesis_proto_rawDesc = nil
file_veranablockchain_trustdeposit_genesis_proto_goTypes = nil
file_veranablockchain_trustdeposit_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_module_module_proto_init()
md_Module = File_veranablockchain_trustdeposit_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.trustdeposit.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustdeposit/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_trustdeposit_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_trustdeposit_module_module_proto_rawDesc = []byte{
0x0a, 0x31, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x24, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x06, 0x4d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
0x69, 0x74, 0x79, 0x3a, 0x3f, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x39, 0x0a, 0x37, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c,
0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x42, 0xbc, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f, 0x6d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x4d, 0xaa, 0x02, 0x24, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75,
0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
0xca, 0x02, 0x24, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x30, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74,
0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x26, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54,
0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x3a, 0x3a, 0x4d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustdeposit_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_trustdeposit_module_module_proto_rawDescData = file_veranablockchain_trustdeposit_module_module_proto_rawDesc
)
func file_veranablockchain_trustdeposit_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_trustdeposit_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustdeposit_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustdeposit_module_module_proto_rawDescData)
})
return file_veranablockchain_trustdeposit_module_module_proto_rawDescData
}
var file_veranablockchain_trustdeposit_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_trustdeposit_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.trustdeposit.module.Module
}
var file_veranablockchain_trustdeposit_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustdeposit_module_module_proto_init() }
func file_veranablockchain_trustdeposit_module_module_proto_init() {
if File_veranablockchain_trustdeposit_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustdeposit_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustdeposit_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustdeposit_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustdeposit_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_trustdeposit_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_trustdeposit_module_module_proto = out.File
file_veranablockchain_trustdeposit_module_module_proto_rawDesc = nil
file_veranablockchain_trustdeposit_module_module_proto_goTypes = nil
file_veranablockchain_trustdeposit_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustdeposit
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Params protoreflect.MessageDescriptor
fd_Params_trust_deposit_reclaim_burn_rate protoreflect.FieldDescriptor
fd_Params_trust_deposit_share_value protoreflect.FieldDescriptor
fd_Params_trust_deposit_rate protoreflect.FieldDescriptor
fd_Params_wallet_user_agent_reward_rate protoreflect.FieldDescriptor
fd_Params_user_agent_reward_rate protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_params_proto_init()
md_Params = File_veranablockchain_trustdeposit_params_proto.Messages().ByName("Params")
fd_Params_trust_deposit_reclaim_burn_rate = md_Params.Fields().ByName("trust_deposit_reclaim_burn_rate")
fd_Params_trust_deposit_share_value = md_Params.Fields().ByName("trust_deposit_share_value")
fd_Params_trust_deposit_rate = md_Params.Fields().ByName("trust_deposit_rate")
fd_Params_wallet_user_agent_reward_rate = md_Params.Fields().ByName("wallet_user_agent_reward_rate")
fd_Params_user_agent_reward_rate = md_Params.Fields().ByName("user_agent_reward_rate")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.TrustDepositReclaimBurnRate != "" {
value := protoreflect.ValueOfString(x.TrustDepositReclaimBurnRate)
if !f(fd_Params_trust_deposit_reclaim_burn_rate, value) {
return
}
}
if x.TrustDepositShareValue != "" {
value := protoreflect.ValueOfString(x.TrustDepositShareValue)
if !f(fd_Params_trust_deposit_share_value, value) {
return
}
}
if x.TrustDepositRate != "" {
value := protoreflect.ValueOfString(x.TrustDepositRate)
if !f(fd_Params_trust_deposit_rate, value) {
return
}
}
if x.WalletUserAgentRewardRate != "" {
value := protoreflect.ValueOfString(x.WalletUserAgentRewardRate)
if !f(fd_Params_wallet_user_agent_reward_rate, value) {
return
}
}
if x.UserAgentRewardRate != "" {
value := protoreflect.ValueOfString(x.UserAgentRewardRate)
if !f(fd_Params_user_agent_reward_rate, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.Params.trust_deposit_reclaim_burn_rate":
return x.TrustDepositReclaimBurnRate != ""
case "veranablockchain.trustdeposit.Params.trust_deposit_share_value":
return x.TrustDepositShareValue != ""
case "veranablockchain.trustdeposit.Params.trust_deposit_rate":
return x.TrustDepositRate != ""
case "veranablockchain.trustdeposit.Params.wallet_user_agent_reward_rate":
return x.WalletUserAgentRewardRate != ""
case "veranablockchain.trustdeposit.Params.user_agent_reward_rate":
return x.UserAgentRewardRate != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.Params.trust_deposit_reclaim_burn_rate":
x.TrustDepositReclaimBurnRate = ""
case "veranablockchain.trustdeposit.Params.trust_deposit_share_value":
x.TrustDepositShareValue = ""
case "veranablockchain.trustdeposit.Params.trust_deposit_rate":
x.TrustDepositRate = ""
case "veranablockchain.trustdeposit.Params.wallet_user_agent_reward_rate":
x.WalletUserAgentRewardRate = ""
case "veranablockchain.trustdeposit.Params.user_agent_reward_rate":
x.UserAgentRewardRate = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.Params.trust_deposit_reclaim_burn_rate":
value := x.TrustDepositReclaimBurnRate
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.Params.trust_deposit_share_value":
value := x.TrustDepositShareValue
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.Params.trust_deposit_rate":
value := x.TrustDepositRate
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.Params.wallet_user_agent_reward_rate":
value := x.WalletUserAgentRewardRate
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.Params.user_agent_reward_rate":
value := x.UserAgentRewardRate
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.Params.trust_deposit_reclaim_burn_rate":
x.TrustDepositReclaimBurnRate = value.Interface().(string)
case "veranablockchain.trustdeposit.Params.trust_deposit_share_value":
x.TrustDepositShareValue = value.Interface().(string)
case "veranablockchain.trustdeposit.Params.trust_deposit_rate":
x.TrustDepositRate = value.Interface().(string)
case "veranablockchain.trustdeposit.Params.wallet_user_agent_reward_rate":
x.WalletUserAgentRewardRate = value.Interface().(string)
case "veranablockchain.trustdeposit.Params.user_agent_reward_rate":
x.UserAgentRewardRate = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.Params.trust_deposit_reclaim_burn_rate":
panic(fmt.Errorf("field trust_deposit_reclaim_burn_rate of message veranablockchain.trustdeposit.Params is not mutable"))
case "veranablockchain.trustdeposit.Params.trust_deposit_share_value":
panic(fmt.Errorf("field trust_deposit_share_value of message veranablockchain.trustdeposit.Params is not mutable"))
case "veranablockchain.trustdeposit.Params.trust_deposit_rate":
panic(fmt.Errorf("field trust_deposit_rate of message veranablockchain.trustdeposit.Params is not mutable"))
case "veranablockchain.trustdeposit.Params.wallet_user_agent_reward_rate":
panic(fmt.Errorf("field wallet_user_agent_reward_rate of message veranablockchain.trustdeposit.Params is not mutable"))
case "veranablockchain.trustdeposit.Params.user_agent_reward_rate":
panic(fmt.Errorf("field user_agent_reward_rate of message veranablockchain.trustdeposit.Params is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.Params.trust_deposit_reclaim_burn_rate":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.Params.trust_deposit_share_value":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.Params.trust_deposit_rate":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.Params.wallet_user_agent_reward_rate":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.Params.user_agent_reward_rate":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.TrustDepositReclaimBurnRate)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.TrustDepositShareValue)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.TrustDepositRate)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.WalletUserAgentRewardRate)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.UserAgentRewardRate)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.UserAgentRewardRate) > 0 {
i -= len(x.UserAgentRewardRate)
copy(dAtA[i:], x.UserAgentRewardRate)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.UserAgentRewardRate)))
i--
dAtA[i] = 0x2a
}
if len(x.WalletUserAgentRewardRate) > 0 {
i -= len(x.WalletUserAgentRewardRate)
copy(dAtA[i:], x.WalletUserAgentRewardRate)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletUserAgentRewardRate)))
i--
dAtA[i] = 0x22
}
if len(x.TrustDepositRate) > 0 {
i -= len(x.TrustDepositRate)
copy(dAtA[i:], x.TrustDepositRate)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TrustDepositRate)))
i--
dAtA[i] = 0x1a
}
if len(x.TrustDepositShareValue) > 0 {
i -= len(x.TrustDepositShareValue)
copy(dAtA[i:], x.TrustDepositShareValue)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TrustDepositShareValue)))
i--
dAtA[i] = 0x12
}
if len(x.TrustDepositReclaimBurnRate) > 0 {
i -= len(x.TrustDepositReclaimBurnRate)
copy(dAtA[i:], x.TrustDepositReclaimBurnRate)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TrustDepositReclaimBurnRate)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustDepositReclaimBurnRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TrustDepositReclaimBurnRate = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustDepositShareValue", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TrustDepositShareValue = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustDepositRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TrustDepositRate = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WalletUserAgentRewardRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.WalletUserAgentRewardRate = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UserAgentRewardRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.UserAgentRewardRate = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustdeposit/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrustDepositReclaimBurnRate string `protobuf:"bytes,1,opt,name=trust_deposit_reclaim_burn_rate,json=trustDepositReclaimBurnRate,proto3" json:"trust_deposit_reclaim_burn_rate,omitempty"`
TrustDepositShareValue string `protobuf:"bytes,2,opt,name=trust_deposit_share_value,json=trustDepositShareValue,proto3" json:"trust_deposit_share_value,omitempty"`
TrustDepositRate string `protobuf:"bytes,3,opt,name=trust_deposit_rate,json=trustDepositRate,proto3" json:"trust_deposit_rate,omitempty"`
WalletUserAgentRewardRate string `protobuf:"bytes,4,opt,name=wallet_user_agent_reward_rate,json=walletUserAgentRewardRate,proto3" json:"wallet_user_agent_reward_rate,omitempty"`
UserAgentRewardRate string `protobuf:"bytes,5,opt,name=user_agent_reward_rate,json=userAgentRewardRate,proto3" json:"user_agent_reward_rate,omitempty"`
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_params_proto_rawDescGZIP(), []int{0}
}
func (x *Params) GetTrustDepositReclaimBurnRate() string {
if x != nil {
return x.TrustDepositReclaimBurnRate
}
return ""
}
func (x *Params) GetTrustDepositShareValue() string {
if x != nil {
return x.TrustDepositShareValue
}
return ""
}
func (x *Params) GetTrustDepositRate() string {
if x != nil {
return x.TrustDepositRate
}
return ""
}
func (x *Params) GetWalletUserAgentRewardRate() string {
if x != nil {
return x.WalletUserAgentRewardRate
}
return ""
}
func (x *Params) GetUserAgentRewardRate() string {
if x != nil {
return x.UserAgentRewardRate
}
return ""
}
var File_veranablockchain_trustdeposit_params_proto protoreflect.FileDescriptor
var file_veranablockchain_trustdeposit_params_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74,
0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x11, 0x61, 0x6d, 0x69,
0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14,
0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x05, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
0x93, 0x01, 0x0a, 0x1f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x5f, 0x72, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, 0x62, 0x75, 0x72, 0x6e, 0x5f, 0x72,
0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4d, 0xc8, 0xde, 0x1f, 0x00, 0xda,
0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde,
0x1f, 0x26, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x5f, 0x62, 0x75,
0x72, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0x52, 0x1b, 0x74, 0x72, 0x75, 0x73, 0x74, 0x44,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x42, 0x75, 0x72,
0x6e, 0x52, 0x61, 0x74, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x19, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f,
0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x47, 0xc8, 0xde, 0x1f, 0x00, 0xda,
0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f,
0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde,
0x1f, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x22, 0x52, 0x16, 0x74, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x53, 0x68, 0x61, 0x72, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x6e, 0x0a, 0x12, 0x74, 0x72,
0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5f, 0x72, 0x61, 0x74, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x40, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b,
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74,
0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x19, 0x79,
0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0x52, 0x10, 0x74, 0x72, 0x75, 0x73, 0x74, 0x44,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x61, 0x74, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x1d, 0x77,
0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74,
0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x42, 0x4b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65,
0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x24, 0x79, 0x61, 0x6d, 0x6c, 0x3a,
0x22, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65,
0x6e, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0x52,
0x19, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74,
0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x79, 0x0a, 0x16, 0x75, 0x73,
0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f,
0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x44, 0xc8, 0xde, 0x1f, 0x00,
0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f,
0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2,
0xde, 0x1f, 0x1d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67,
0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22,
0x52, 0x13, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72,
0x64, 0x52, 0x61, 0x74, 0x65, 0x3a, 0x2f, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x26,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2f, 0x78, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x91, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x0b, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c,
0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74,
0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58, 0xaa, 0x02, 0x1d,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xca, 0x02, 0x1d,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xe2, 0x02, 0x29,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5c, 0x47, 0x50,
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_veranablockchain_trustdeposit_params_proto_rawDescOnce sync.Once
file_veranablockchain_trustdeposit_params_proto_rawDescData = file_veranablockchain_trustdeposit_params_proto_rawDesc
)
func file_veranablockchain_trustdeposit_params_proto_rawDescGZIP() []byte {
file_veranablockchain_trustdeposit_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustdeposit_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustdeposit_params_proto_rawDescData)
})
return file_veranablockchain_trustdeposit_params_proto_rawDescData
}
var file_veranablockchain_trustdeposit_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_trustdeposit_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.trustdeposit.Params
}
var file_veranablockchain_trustdeposit_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustdeposit_params_proto_init() }
func file_veranablockchain_trustdeposit_params_proto_init() {
if File_veranablockchain_trustdeposit_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustdeposit_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustdeposit_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustdeposit_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustdeposit_params_proto_depIdxs,
MessageInfos: file_veranablockchain_trustdeposit_params_proto_msgTypes,
}.Build()
File_veranablockchain_trustdeposit_params_proto = out.File
file_veranablockchain_trustdeposit_params_proto_rawDesc = nil
file_veranablockchain_trustdeposit_params_proto_goTypes = nil
file_veranablockchain_trustdeposit_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustdeposit
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustdeposit_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_trustdeposit_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_trustdeposit_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetTrustDepositRequest protoreflect.MessageDescriptor
fd_QueryGetTrustDepositRequest_account protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_query_proto_init()
md_QueryGetTrustDepositRequest = File_veranablockchain_trustdeposit_query_proto.Messages().ByName("QueryGetTrustDepositRequest")
fd_QueryGetTrustDepositRequest_account = md_QueryGetTrustDepositRequest.Fields().ByName("account")
}
var _ protoreflect.Message = (*fastReflection_QueryGetTrustDepositRequest)(nil)
type fastReflection_QueryGetTrustDepositRequest QueryGetTrustDepositRequest
func (x *QueryGetTrustDepositRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetTrustDepositRequest)(x)
}
func (x *QueryGetTrustDepositRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetTrustDepositRequest_messageType fastReflection_QueryGetTrustDepositRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetTrustDepositRequest_messageType{}
type fastReflection_QueryGetTrustDepositRequest_messageType struct{}
func (x fastReflection_QueryGetTrustDepositRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetTrustDepositRequest)(nil)
}
func (x fastReflection_QueryGetTrustDepositRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustDepositRequest)
}
func (x fastReflection_QueryGetTrustDepositRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustDepositRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetTrustDepositRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustDepositRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetTrustDepositRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetTrustDepositRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetTrustDepositRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustDepositRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetTrustDepositRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetTrustDepositRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetTrustDepositRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Account != "" {
value := protoreflect.ValueOfString(x.Account)
if !f(fd_QueryGetTrustDepositRequest_account, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetTrustDepositRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositRequest.account":
return x.Account != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositRequest.account":
x.Account = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetTrustDepositRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositRequest.account":
value := x.Account
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositRequest.account":
x.Account = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositRequest.account":
panic(fmt.Errorf("field account of message veranablockchain.trustdeposit.QueryGetTrustDepositRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetTrustDepositRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositRequest.account":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetTrustDepositRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.QueryGetTrustDepositRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetTrustDepositRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetTrustDepositRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetTrustDepositRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetTrustDepositRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Account)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustDepositRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Account) > 0 {
i -= len(x.Account)
copy(dAtA[i:], x.Account)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustDepositRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustDepositRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetTrustDepositResponse protoreflect.MessageDescriptor
fd_QueryGetTrustDepositResponse_trust_deposit protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_query_proto_init()
md_QueryGetTrustDepositResponse = File_veranablockchain_trustdeposit_query_proto.Messages().ByName("QueryGetTrustDepositResponse")
fd_QueryGetTrustDepositResponse_trust_deposit = md_QueryGetTrustDepositResponse.Fields().ByName("trust_deposit")
}
var _ protoreflect.Message = (*fastReflection_QueryGetTrustDepositResponse)(nil)
type fastReflection_QueryGetTrustDepositResponse QueryGetTrustDepositResponse
func (x *QueryGetTrustDepositResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetTrustDepositResponse)(x)
}
func (x *QueryGetTrustDepositResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetTrustDepositResponse_messageType fastReflection_QueryGetTrustDepositResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetTrustDepositResponse_messageType{}
type fastReflection_QueryGetTrustDepositResponse_messageType struct{}
func (x fastReflection_QueryGetTrustDepositResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetTrustDepositResponse)(nil)
}
func (x fastReflection_QueryGetTrustDepositResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustDepositResponse)
}
func (x fastReflection_QueryGetTrustDepositResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustDepositResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetTrustDepositResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustDepositResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetTrustDepositResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetTrustDepositResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetTrustDepositResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustDepositResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetTrustDepositResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetTrustDepositResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetTrustDepositResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.TrustDeposit != nil {
value := protoreflect.ValueOfMessage(x.TrustDeposit.ProtoReflect())
if !f(fd_QueryGetTrustDepositResponse_trust_deposit, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetTrustDepositResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit":
return x.TrustDeposit != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit":
x.TrustDeposit = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetTrustDepositResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit":
value := x.TrustDeposit
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit":
x.TrustDeposit = value.Message().Interface().(*TrustDeposit)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit":
if x.TrustDeposit == nil {
x.TrustDeposit = new(TrustDeposit)
}
return protoreflect.ValueOfMessage(x.TrustDeposit.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetTrustDepositResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit":
m := new(TrustDeposit)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.QueryGetTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.QueryGetTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetTrustDepositResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.QueryGetTrustDepositResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetTrustDepositResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustDepositResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetTrustDepositResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetTrustDepositResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetTrustDepositResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.TrustDeposit != nil {
l = options.Size(x.TrustDeposit)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustDepositResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.TrustDeposit != nil {
encoded, err := options.Marshal(x.TrustDeposit)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustDepositResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustDepositResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustDeposit", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.TrustDeposit == nil {
x.TrustDeposit = &TrustDeposit{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TrustDeposit); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustdeposit/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// QueryGetTrustDepositRequest is request type for the GetTrustDeposit RPC method
type QueryGetTrustDepositRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}
func (x *QueryGetTrustDepositRequest) Reset() {
*x = QueryGetTrustDepositRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetTrustDepositRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetTrustDepositRequest) ProtoMessage() {}
// Deprecated: Use QueryGetTrustDepositRequest.ProtoReflect.Descriptor instead.
func (*QueryGetTrustDepositRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_query_proto_rawDescGZIP(), []int{2}
}
func (x *QueryGetTrustDepositRequest) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
// QueryGetTrustDepositResponse is response type for the GetTrustDeposit RPC method
type QueryGetTrustDepositResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrustDeposit *TrustDeposit `protobuf:"bytes,1,opt,name=trust_deposit,json=trustDeposit,proto3" json:"trust_deposit,omitempty"`
}
func (x *QueryGetTrustDepositResponse) Reset() {
*x = QueryGetTrustDepositResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetTrustDepositResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetTrustDepositResponse) ProtoMessage() {}
// Deprecated: Use QueryGetTrustDepositResponse.ProtoReflect.Descriptor instead.
func (*QueryGetTrustDepositResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryGetTrustDepositResponse) GetTrustDeposit() *TrustDeposit {
if x != nil {
return x.TrustDeposit
}
return nil
}
var File_veranablockchain_trustdeposit_query_proto protoreflect.FileDescriptor
var file_veranablockchain_trustdeposit_query_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67,
0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71,
0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67,
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f, 0x70, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73,
0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5f, 0x0a, 0x13, 0x51, 0x75,
0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x25, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7,
0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x37, 0x0a, 0x1b, 0x51,
0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f,
0x73, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x22, 0x76, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74,
0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74,
0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x54, 0x72, 0x75, 0x73,
0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c,
0x74, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x32, 0xbb, 0x02, 0x0a,
0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x86, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x12, 0x31, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f,
0x12, 0x0d, 0x2f, 0x74, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12,
0xa8, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f,
0x73, 0x69, 0x74, 0x12, 0x3a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f,
0x73, 0x69, 0x74, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73,
0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x3b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x74, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x74,
0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x42, 0x90, 0x02, 0x0a, 0x21, 0x63,
0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58,
0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a,
0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustdeposit_query_proto_rawDescOnce sync.Once
file_veranablockchain_trustdeposit_query_proto_rawDescData = file_veranablockchain_trustdeposit_query_proto_rawDesc
)
func file_veranablockchain_trustdeposit_query_proto_rawDescGZIP() []byte {
file_veranablockchain_trustdeposit_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustdeposit_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustdeposit_query_proto_rawDescData)
})
return file_veranablockchain_trustdeposit_query_proto_rawDescData
}
var file_veranablockchain_trustdeposit_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_veranablockchain_trustdeposit_query_proto_goTypes = []interface{}{
(*QueryParamsRequest)(nil), // 0: veranablockchain.trustdeposit.QueryParamsRequest
(*QueryParamsResponse)(nil), // 1: veranablockchain.trustdeposit.QueryParamsResponse
(*QueryGetTrustDepositRequest)(nil), // 2: veranablockchain.trustdeposit.QueryGetTrustDepositRequest
(*QueryGetTrustDepositResponse)(nil), // 3: veranablockchain.trustdeposit.QueryGetTrustDepositResponse
(*Params)(nil), // 4: veranablockchain.trustdeposit.Params
(*TrustDeposit)(nil), // 5: veranablockchain.trustdeposit.TrustDeposit
}
var file_veranablockchain_trustdeposit_query_proto_depIdxs = []int32{
4, // 0: veranablockchain.trustdeposit.QueryParamsResponse.params:type_name -> veranablockchain.trustdeposit.Params
5, // 1: veranablockchain.trustdeposit.QueryGetTrustDepositResponse.trust_deposit:type_name -> veranablockchain.trustdeposit.TrustDeposit
0, // 2: veranablockchain.trustdeposit.Query.Params:input_type -> veranablockchain.trustdeposit.QueryParamsRequest
2, // 3: veranablockchain.trustdeposit.Query.GetTrustDeposit:input_type -> veranablockchain.trustdeposit.QueryGetTrustDepositRequest
1, // 4: veranablockchain.trustdeposit.Query.Params:output_type -> veranablockchain.trustdeposit.QueryParamsResponse
3, // 5: veranablockchain.trustdeposit.Query.GetTrustDeposit:output_type -> veranablockchain.trustdeposit.QueryGetTrustDepositResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustdeposit_query_proto_init() }
func file_veranablockchain_trustdeposit_query_proto_init() {
if File_veranablockchain_trustdeposit_query_proto != nil {
return
}
file_veranablockchain_trustdeposit_params_proto_init()
file_veranablockchain_trustdeposit_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustdeposit_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetTrustDepositRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetTrustDepositResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustdeposit_query_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_trustdeposit_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustdeposit_query_proto_depIdxs,
MessageInfos: file_veranablockchain_trustdeposit_query_proto_msgTypes,
}.Build()
File_veranablockchain_trustdeposit_query_proto = out.File
file_veranablockchain_trustdeposit_query_proto_rawDesc = nil
file_veranablockchain_trustdeposit_query_proto_goTypes = nil
file_veranablockchain_trustdeposit_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/trustdeposit/query.proto
package trustdeposit
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.trustdeposit.Query/Params"
Query_GetTrustDeposit_FullMethodName = "/veranablockchain.trustdeposit.Query/GetTrustDeposit"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
GetTrustDeposit(ctx context.Context, in *QueryGetTrustDepositRequest, opts ...grpc.CallOption) (*QueryGetTrustDepositResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetTrustDeposit(ctx context.Context, in *QueryGetTrustDepositRequest, opts ...grpc.CallOption) (*QueryGetTrustDepositResponse, error) {
out := new(QueryGetTrustDepositResponse)
err := c.cc.Invoke(ctx, Query_GetTrustDeposit_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
GetTrustDeposit(context.Context, *QueryGetTrustDepositRequest) (*QueryGetTrustDepositResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) GetTrustDeposit(context.Context, *QueryGetTrustDepositRequest) (*QueryGetTrustDepositResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTrustDeposit not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetTrustDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetTrustDepositRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetTrustDeposit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetTrustDeposit_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetTrustDeposit(ctx, req.(*QueryGetTrustDepositRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustdeposit.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "GetTrustDeposit",
Handler: _Query_GetTrustDeposit_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustdeposit/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustdeposit
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_trustdeposit_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.trustdeposit.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.trustdeposit.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.trustdeposit.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.trustdeposit.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.trustdeposit.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustdeposit_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_trustdeposit_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgReclaimTrustDepositInterests protoreflect.MessageDescriptor
fd_MsgReclaimTrustDepositInterests_creator protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_tx_proto_init()
md_MsgReclaimTrustDepositInterests = File_veranablockchain_trustdeposit_tx_proto.Messages().ByName("MsgReclaimTrustDepositInterests")
fd_MsgReclaimTrustDepositInterests_creator = md_MsgReclaimTrustDepositInterests.Fields().ByName("creator")
}
var _ protoreflect.Message = (*fastReflection_MsgReclaimTrustDepositInterests)(nil)
type fastReflection_MsgReclaimTrustDepositInterests MsgReclaimTrustDepositInterests
func (x *MsgReclaimTrustDepositInterests) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDepositInterests)(x)
}
func (x *MsgReclaimTrustDepositInterests) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgReclaimTrustDepositInterests_messageType fastReflection_MsgReclaimTrustDepositInterests_messageType
var _ protoreflect.MessageType = fastReflection_MsgReclaimTrustDepositInterests_messageType{}
type fastReflection_MsgReclaimTrustDepositInterests_messageType struct{}
func (x fastReflection_MsgReclaimTrustDepositInterests_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDepositInterests)(nil)
}
func (x fastReflection_MsgReclaimTrustDepositInterests_messageType) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDepositInterests)
}
func (x fastReflection_MsgReclaimTrustDepositInterests_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDepositInterests
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDepositInterests
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Type() protoreflect.MessageType {
return _fastReflection_MsgReclaimTrustDepositInterests_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgReclaimTrustDepositInterests) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDepositInterests)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Interface() protoreflect.ProtoMessage {
return (*MsgReclaimTrustDepositInterests)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgReclaimTrustDepositInterests_creator, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests.creator":
return x.Creator != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests.creator":
x.Creator = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests.creator":
x.Creator = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterests) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgReclaimTrustDepositInterests) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests.creator":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgReclaimTrustDepositInterests) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgReclaimTrustDepositInterests) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterests) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgReclaimTrustDepositInterests) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgReclaimTrustDepositInterests) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgReclaimTrustDepositInterests)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDepositInterests)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDepositInterests)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDepositInterests: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDepositInterests: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgReclaimTrustDepositInterestsResponse protoreflect.MessageDescriptor
fd_MsgReclaimTrustDepositInterestsResponse_claimed_amount protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_tx_proto_init()
md_MsgReclaimTrustDepositInterestsResponse = File_veranablockchain_trustdeposit_tx_proto.Messages().ByName("MsgReclaimTrustDepositInterestsResponse")
fd_MsgReclaimTrustDepositInterestsResponse_claimed_amount = md_MsgReclaimTrustDepositInterestsResponse.Fields().ByName("claimed_amount")
}
var _ protoreflect.Message = (*fastReflection_MsgReclaimTrustDepositInterestsResponse)(nil)
type fastReflection_MsgReclaimTrustDepositInterestsResponse MsgReclaimTrustDepositInterestsResponse
func (x *MsgReclaimTrustDepositInterestsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDepositInterestsResponse)(x)
}
func (x *MsgReclaimTrustDepositInterestsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType{}
type fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType struct{}
func (x fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDepositInterestsResponse)(nil)
}
func (x fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDepositInterestsResponse)
}
func (x fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDepositInterestsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDepositInterestsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgReclaimTrustDepositInterestsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDepositInterestsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgReclaimTrustDepositInterestsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.ClaimedAmount != uint64(0) {
value := protoreflect.ValueOfUint64(x.ClaimedAmount)
if !f(fd_MsgReclaimTrustDepositInterestsResponse_claimed_amount, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse.claimed_amount":
return x.ClaimedAmount != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse.claimed_amount":
x.ClaimedAmount = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse.claimed_amount":
value := x.ClaimedAmount
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse.claimed_amount":
x.ClaimedAmount = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse.claimed_amount":
panic(fmt.Errorf("field claimed_amount of message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse.claimed_amount":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgReclaimTrustDepositInterestsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgReclaimTrustDepositInterestsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.ClaimedAmount != 0 {
n += 1 + runtime.Sov(uint64(x.ClaimedAmount))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDepositInterestsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ClaimedAmount != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ClaimedAmount))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDepositInterestsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDepositInterestsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDepositInterestsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClaimedAmount", wireType)
}
x.ClaimedAmount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ClaimedAmount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgReclaimTrustDeposit protoreflect.MessageDescriptor
fd_MsgReclaimTrustDeposit_creator protoreflect.FieldDescriptor
fd_MsgReclaimTrustDeposit_claimed protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_tx_proto_init()
md_MsgReclaimTrustDeposit = File_veranablockchain_trustdeposit_tx_proto.Messages().ByName("MsgReclaimTrustDeposit")
fd_MsgReclaimTrustDeposit_creator = md_MsgReclaimTrustDeposit.Fields().ByName("creator")
fd_MsgReclaimTrustDeposit_claimed = md_MsgReclaimTrustDeposit.Fields().ByName("claimed")
}
var _ protoreflect.Message = (*fastReflection_MsgReclaimTrustDeposit)(nil)
type fastReflection_MsgReclaimTrustDeposit MsgReclaimTrustDeposit
func (x *MsgReclaimTrustDeposit) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDeposit)(x)
}
func (x *MsgReclaimTrustDeposit) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgReclaimTrustDeposit_messageType fastReflection_MsgReclaimTrustDeposit_messageType
var _ protoreflect.MessageType = fastReflection_MsgReclaimTrustDeposit_messageType{}
type fastReflection_MsgReclaimTrustDeposit_messageType struct{}
func (x fastReflection_MsgReclaimTrustDeposit_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDeposit)(nil)
}
func (x fastReflection_MsgReclaimTrustDeposit_messageType) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDeposit)
}
func (x fastReflection_MsgReclaimTrustDeposit_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDeposit
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgReclaimTrustDeposit) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDeposit
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgReclaimTrustDeposit) Type() protoreflect.MessageType {
return _fastReflection_MsgReclaimTrustDeposit_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgReclaimTrustDeposit) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDeposit)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgReclaimTrustDeposit) Interface() protoreflect.ProtoMessage {
return (*MsgReclaimTrustDeposit)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgReclaimTrustDeposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgReclaimTrustDeposit_creator, value) {
return
}
}
if x.Claimed != uint64(0) {
value := protoreflect.ValueOfUint64(x.Claimed)
if !f(fd_MsgReclaimTrustDeposit_claimed, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgReclaimTrustDeposit) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.creator":
return x.Creator != ""
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.claimed":
return x.Claimed != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDeposit does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDeposit) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.creator":
x.Creator = ""
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.claimed":
x.Claimed = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDeposit does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgReclaimTrustDeposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.claimed":
value := x.Claimed
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDeposit does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDeposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.claimed":
x.Claimed = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDeposit does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDeposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustdeposit.MsgReclaimTrustDeposit is not mutable"))
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.claimed":
panic(fmt.Errorf("field claimed of message veranablockchain.trustdeposit.MsgReclaimTrustDeposit is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDeposit does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgReclaimTrustDeposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.MsgReclaimTrustDeposit.claimed":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDeposit does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgReclaimTrustDeposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.MsgReclaimTrustDeposit", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgReclaimTrustDeposit) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDeposit) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgReclaimTrustDeposit) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgReclaimTrustDeposit) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgReclaimTrustDeposit)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Claimed != 0 {
n += 1 + runtime.Sov(uint64(x.Claimed))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDeposit)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Claimed != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Claimed))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDeposit)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDeposit: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Claimed", wireType)
}
x.Claimed = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Claimed |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgReclaimTrustDepositResponse protoreflect.MessageDescriptor
fd_MsgReclaimTrustDepositResponse_burned_amount protoreflect.FieldDescriptor
fd_MsgReclaimTrustDepositResponse_claimed_amount protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_tx_proto_init()
md_MsgReclaimTrustDepositResponse = File_veranablockchain_trustdeposit_tx_proto.Messages().ByName("MsgReclaimTrustDepositResponse")
fd_MsgReclaimTrustDepositResponse_burned_amount = md_MsgReclaimTrustDepositResponse.Fields().ByName("burned_amount")
fd_MsgReclaimTrustDepositResponse_claimed_amount = md_MsgReclaimTrustDepositResponse.Fields().ByName("claimed_amount")
}
var _ protoreflect.Message = (*fastReflection_MsgReclaimTrustDepositResponse)(nil)
type fastReflection_MsgReclaimTrustDepositResponse MsgReclaimTrustDepositResponse
func (x *MsgReclaimTrustDepositResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDepositResponse)(x)
}
func (x *MsgReclaimTrustDepositResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgReclaimTrustDepositResponse_messageType fastReflection_MsgReclaimTrustDepositResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgReclaimTrustDepositResponse_messageType{}
type fastReflection_MsgReclaimTrustDepositResponse_messageType struct{}
func (x fastReflection_MsgReclaimTrustDepositResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgReclaimTrustDepositResponse)(nil)
}
func (x fastReflection_MsgReclaimTrustDepositResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDepositResponse)
}
func (x fastReflection_MsgReclaimTrustDepositResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDepositResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgReclaimTrustDepositResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgReclaimTrustDepositResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgReclaimTrustDepositResponse) New() protoreflect.Message {
return new(fastReflection_MsgReclaimTrustDepositResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Interface() protoreflect.ProtoMessage {
return (*MsgReclaimTrustDepositResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.BurnedAmount != uint64(0) {
value := protoreflect.ValueOfUint64(x.BurnedAmount)
if !f(fd_MsgReclaimTrustDepositResponse_burned_amount, value) {
return
}
}
if x.ClaimedAmount != uint64(0) {
value := protoreflect.ValueOfUint64(x.ClaimedAmount)
if !f(fd_MsgReclaimTrustDepositResponse_claimed_amount, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.burned_amount":
return x.BurnedAmount != uint64(0)
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.claimed_amount":
return x.ClaimedAmount != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.burned_amount":
x.BurnedAmount = uint64(0)
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.claimed_amount":
x.ClaimedAmount = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.burned_amount":
value := x.BurnedAmount
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.claimed_amount":
value := x.ClaimedAmount
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.burned_amount":
x.BurnedAmount = value.Uint()
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.claimed_amount":
x.ClaimedAmount = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.burned_amount":
panic(fmt.Errorf("field burned_amount of message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse is not mutable"))
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.claimed_amount":
panic(fmt.Errorf("field claimed_amount of message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgReclaimTrustDepositResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.burned_amount":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse.claimed_amount":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgReclaimTrustDepositResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgReclaimTrustDepositResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgReclaimTrustDepositResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgReclaimTrustDepositResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgReclaimTrustDepositResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgReclaimTrustDepositResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.BurnedAmount != 0 {
n += 1 + runtime.Sov(uint64(x.BurnedAmount))
}
if x.ClaimedAmount != 0 {
n += 1 + runtime.Sov(uint64(x.ClaimedAmount))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDepositResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ClaimedAmount != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ClaimedAmount))
i--
dAtA[i] = 0x10
}
if x.BurnedAmount != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.BurnedAmount))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgReclaimTrustDepositResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDepositResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgReclaimTrustDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BurnedAmount", wireType)
}
x.BurnedAmount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.BurnedAmount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClaimedAmount", wireType)
}
x.ClaimedAmount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ClaimedAmount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustdeposit/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP(), []int{1}
}
// MsgReclaimTrustDepositInterests defines the request type
type MsgReclaimTrustDepositInterests struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}
func (x *MsgReclaimTrustDepositInterests) Reset() {
*x = MsgReclaimTrustDepositInterests{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgReclaimTrustDepositInterests) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgReclaimTrustDepositInterests) ProtoMessage() {}
// Deprecated: Use MsgReclaimTrustDepositInterests.ProtoReflect.Descriptor instead.
func (*MsgReclaimTrustDepositInterests) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP(), []int{2}
}
func (x *MsgReclaimTrustDepositInterests) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
// MsgReclaimTrustDepositInterestsResponse defines the response type
type MsgReclaimTrustDepositInterestsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ClaimedAmount uint64 `protobuf:"varint,1,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"`
}
func (x *MsgReclaimTrustDepositInterestsResponse) Reset() {
*x = MsgReclaimTrustDepositInterestsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgReclaimTrustDepositInterestsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgReclaimTrustDepositInterestsResponse) ProtoMessage() {}
// Deprecated: Use MsgReclaimTrustDepositInterestsResponse.ProtoReflect.Descriptor instead.
func (*MsgReclaimTrustDepositInterestsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP(), []int{3}
}
func (x *MsgReclaimTrustDepositInterestsResponse) GetClaimedAmount() uint64 {
if x != nil {
return x.ClaimedAmount
}
return 0
}
type MsgReclaimTrustDeposit struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Claimed uint64 `protobuf:"varint,2,opt,name=claimed,proto3" json:"claimed,omitempty"` // Amount to reclaim in denom
}
func (x *MsgReclaimTrustDeposit) Reset() {
*x = MsgReclaimTrustDeposit{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgReclaimTrustDeposit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgReclaimTrustDeposit) ProtoMessage() {}
// Deprecated: Use MsgReclaimTrustDeposit.ProtoReflect.Descriptor instead.
func (*MsgReclaimTrustDeposit) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP(), []int{4}
}
func (x *MsgReclaimTrustDeposit) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgReclaimTrustDeposit) GetClaimed() uint64 {
if x != nil {
return x.Claimed
}
return 0
}
type MsgReclaimTrustDepositResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
BurnedAmount uint64 `protobuf:"varint,1,opt,name=burned_amount,json=burnedAmount,proto3" json:"burned_amount,omitempty"` // Amount burned
ClaimedAmount uint64 `protobuf:"varint,2,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"` // Amount transferred to account
}
func (x *MsgReclaimTrustDepositResponse) Reset() {
*x = MsgReclaimTrustDepositResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_tx_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgReclaimTrustDepositResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgReclaimTrustDepositResponse) ProtoMessage() {}
// Deprecated: Use MsgReclaimTrustDepositResponse.ProtoReflect.Descriptor instead.
func (*MsgReclaimTrustDepositResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP(), []int{5}
}
func (x *MsgReclaimTrustDepositResponse) GetBurnedAmount() uint64 {
if x != nil {
return x.BurnedAmount
}
return 0
}
func (x *MsgReclaimTrustDepositResponse) GetClaimedAmount() uint64 {
if x != nil {
return x.ClaimedAmount
}
return 0
}
var File_veranablockchain_trustdeposit_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_trustdeposit_tx_proto_rawDesc = []byte{
0x0a, 0x26, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74,
0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61,
0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14,
0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f,
0x73, 0x69, 0x74, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xd7, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x06,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x42, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73,
0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c,
0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x49,
0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7,
0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x50, 0x0a, 0x27, 0x4d, 0x73,
0x67, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64,
0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x63,
0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x74, 0x0a, 0x16,
0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c,
0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x6c, 0x61,
0x69, 0x6d, 0x65, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x22, 0x6c, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d,
0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x5f, 0x61,
0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x62, 0x75, 0x72,
0x6e, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6c, 0x61,
0x69, 0x6d, 0x65, 0x64, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
0x04, 0x52, 0x0d, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
0x32, 0xbb, 0x03, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x76, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73,
0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x36, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73,
0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0xa6, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73,
0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74,
0x73, 0x12, 0x3e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73,
0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74,
0x73, 0x1a, 0x46, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73,
0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x65, 0x73, 0x74,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x13, 0x52, 0x65,
0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x12, 0x35, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73,
0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x3d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73,
0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x63, 0x6c,
0x61, 0x69, 0x6d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x8d,
0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74,
0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xa2, 0x02, 0x03, 0x56, 0x54,
0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustdeposit_tx_proto_rawDescOnce sync.Once
file_veranablockchain_trustdeposit_tx_proto_rawDescData = file_veranablockchain_trustdeposit_tx_proto_rawDesc
)
func file_veranablockchain_trustdeposit_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_trustdeposit_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustdeposit_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustdeposit_tx_proto_rawDescData)
})
return file_veranablockchain_trustdeposit_tx_proto_rawDescData
}
var file_veranablockchain_trustdeposit_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_veranablockchain_trustdeposit_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.trustdeposit.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.trustdeposit.MsgUpdateParamsResponse
(*MsgReclaimTrustDepositInterests)(nil), // 2: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests
(*MsgReclaimTrustDepositInterestsResponse)(nil), // 3: veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse
(*MsgReclaimTrustDeposit)(nil), // 4: veranablockchain.trustdeposit.MsgReclaimTrustDeposit
(*MsgReclaimTrustDepositResponse)(nil), // 5: veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse
(*Params)(nil), // 6: veranablockchain.trustdeposit.Params
}
var file_veranablockchain_trustdeposit_tx_proto_depIdxs = []int32{
6, // 0: veranablockchain.trustdeposit.MsgUpdateParams.params:type_name -> veranablockchain.trustdeposit.Params
0, // 1: veranablockchain.trustdeposit.Msg.UpdateParams:input_type -> veranablockchain.trustdeposit.MsgUpdateParams
2, // 2: veranablockchain.trustdeposit.Msg.ReclaimTrustDepositInterests:input_type -> veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests
4, // 3: veranablockchain.trustdeposit.Msg.ReclaimTrustDeposit:input_type -> veranablockchain.trustdeposit.MsgReclaimTrustDeposit
1, // 4: veranablockchain.trustdeposit.Msg.UpdateParams:output_type -> veranablockchain.trustdeposit.MsgUpdateParamsResponse
3, // 5: veranablockchain.trustdeposit.Msg.ReclaimTrustDepositInterests:output_type -> veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse
5, // 6: veranablockchain.trustdeposit.Msg.ReclaimTrustDeposit:output_type -> veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse
4, // [4:7] is the sub-list for method output_type
1, // [1:4] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustdeposit_tx_proto_init() }
func file_veranablockchain_trustdeposit_tx_proto_init() {
if File_veranablockchain_trustdeposit_tx_proto != nil {
return
}
file_veranablockchain_trustdeposit_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustdeposit_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgReclaimTrustDepositInterests); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgReclaimTrustDepositInterestsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgReclaimTrustDeposit); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustdeposit_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgReclaimTrustDepositResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustdeposit_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_trustdeposit_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustdeposit_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_trustdeposit_tx_proto_msgTypes,
}.Build()
File_veranablockchain_trustdeposit_tx_proto = out.File
file_veranablockchain_trustdeposit_tx_proto_rawDesc = nil
file_veranablockchain_trustdeposit_tx_proto_goTypes = nil
file_veranablockchain_trustdeposit_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/trustdeposit/tx.proto
package trustdeposit
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.trustdeposit.Msg/UpdateParams"
Msg_ReclaimTrustDepositInterests_FullMethodName = "/veranablockchain.trustdeposit.Msg/ReclaimTrustDepositInterests"
Msg_ReclaimTrustDeposit_FullMethodName = "/veranablockchain.trustdeposit.Msg/ReclaimTrustDeposit"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
ReclaimTrustDepositInterests(ctx context.Context, in *MsgReclaimTrustDepositInterests, opts ...grpc.CallOption) (*MsgReclaimTrustDepositInterestsResponse, error)
ReclaimTrustDeposit(ctx context.Context, in *MsgReclaimTrustDeposit, opts ...grpc.CallOption) (*MsgReclaimTrustDepositResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ReclaimTrustDepositInterests(ctx context.Context, in *MsgReclaimTrustDepositInterests, opts ...grpc.CallOption) (*MsgReclaimTrustDepositInterestsResponse, error) {
out := new(MsgReclaimTrustDepositInterestsResponse)
err := c.cc.Invoke(ctx, Msg_ReclaimTrustDepositInterests_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ReclaimTrustDeposit(ctx context.Context, in *MsgReclaimTrustDeposit, opts ...grpc.CallOption) (*MsgReclaimTrustDepositResponse, error) {
out := new(MsgReclaimTrustDepositResponse)
err := c.cc.Invoke(ctx, Msg_ReclaimTrustDeposit_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
ReclaimTrustDepositInterests(context.Context, *MsgReclaimTrustDepositInterests) (*MsgReclaimTrustDepositInterestsResponse, error)
ReclaimTrustDeposit(context.Context, *MsgReclaimTrustDeposit) (*MsgReclaimTrustDepositResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) ReclaimTrustDepositInterests(context.Context, *MsgReclaimTrustDepositInterests) (*MsgReclaimTrustDepositInterestsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReclaimTrustDepositInterests not implemented")
}
func (UnimplementedMsgServer) ReclaimTrustDeposit(context.Context, *MsgReclaimTrustDeposit) (*MsgReclaimTrustDepositResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReclaimTrustDeposit not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ReclaimTrustDepositInterests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgReclaimTrustDepositInterests)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ReclaimTrustDepositInterests(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_ReclaimTrustDepositInterests_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ReclaimTrustDepositInterests(ctx, req.(*MsgReclaimTrustDepositInterests))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ReclaimTrustDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgReclaimTrustDeposit)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ReclaimTrustDeposit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_ReclaimTrustDeposit_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ReclaimTrustDeposit(ctx, req.(*MsgReclaimTrustDeposit))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustdeposit.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "ReclaimTrustDepositInterests",
Handler: _Msg_ReclaimTrustDepositInterests_Handler,
},
{
MethodName: "ReclaimTrustDeposit",
Handler: _Msg_ReclaimTrustDeposit_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustdeposit/tx.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustdeposit
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_TrustDeposit protoreflect.MessageDescriptor
fd_TrustDeposit_account protoreflect.FieldDescriptor
fd_TrustDeposit_share protoreflect.FieldDescriptor
fd_TrustDeposit_amount protoreflect.FieldDescriptor
fd_TrustDeposit_claimable protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustdeposit_types_proto_init()
md_TrustDeposit = File_veranablockchain_trustdeposit_types_proto.Messages().ByName("TrustDeposit")
fd_TrustDeposit_account = md_TrustDeposit.Fields().ByName("account")
fd_TrustDeposit_share = md_TrustDeposit.Fields().ByName("share")
fd_TrustDeposit_amount = md_TrustDeposit.Fields().ByName("amount")
fd_TrustDeposit_claimable = md_TrustDeposit.Fields().ByName("claimable")
}
var _ protoreflect.Message = (*fastReflection_TrustDeposit)(nil)
type fastReflection_TrustDeposit TrustDeposit
func (x *TrustDeposit) ProtoReflect() protoreflect.Message {
return (*fastReflection_TrustDeposit)(x)
}
func (x *TrustDeposit) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustdeposit_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_TrustDeposit_messageType fastReflection_TrustDeposit_messageType
var _ protoreflect.MessageType = fastReflection_TrustDeposit_messageType{}
type fastReflection_TrustDeposit_messageType struct{}
func (x fastReflection_TrustDeposit_messageType) Zero() protoreflect.Message {
return (*fastReflection_TrustDeposit)(nil)
}
func (x fastReflection_TrustDeposit_messageType) New() protoreflect.Message {
return new(fastReflection_TrustDeposit)
}
func (x fastReflection_TrustDeposit_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_TrustDeposit
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_TrustDeposit) Descriptor() protoreflect.MessageDescriptor {
return md_TrustDeposit
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_TrustDeposit) Type() protoreflect.MessageType {
return _fastReflection_TrustDeposit_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_TrustDeposit) New() protoreflect.Message {
return new(fastReflection_TrustDeposit)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_TrustDeposit) Interface() protoreflect.ProtoMessage {
return (*TrustDeposit)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_TrustDeposit) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Account != "" {
value := protoreflect.ValueOfString(x.Account)
if !f(fd_TrustDeposit_account, value) {
return
}
}
if x.Share != uint64(0) {
value := protoreflect.ValueOfUint64(x.Share)
if !f(fd_TrustDeposit_share, value) {
return
}
}
if x.Amount != uint64(0) {
value := protoreflect.ValueOfUint64(x.Amount)
if !f(fd_TrustDeposit_amount, value) {
return
}
}
if x.Claimable != uint64(0) {
value := protoreflect.ValueOfUint64(x.Claimable)
if !f(fd_TrustDeposit_claimable, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_TrustDeposit) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDeposit.account":
return x.Account != ""
case "veranablockchain.trustdeposit.TrustDeposit.share":
return x.Share != uint64(0)
case "veranablockchain.trustdeposit.TrustDeposit.amount":
return x.Amount != uint64(0)
case "veranablockchain.trustdeposit.TrustDeposit.claimable":
return x.Claimable != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDeposit does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDeposit) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDeposit.account":
x.Account = ""
case "veranablockchain.trustdeposit.TrustDeposit.share":
x.Share = uint64(0)
case "veranablockchain.trustdeposit.TrustDeposit.amount":
x.Amount = uint64(0)
case "veranablockchain.trustdeposit.TrustDeposit.claimable":
x.Claimable = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDeposit does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_TrustDeposit) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustdeposit.TrustDeposit.account":
value := x.Account
return protoreflect.ValueOfString(value)
case "veranablockchain.trustdeposit.TrustDeposit.share":
value := x.Share
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustdeposit.TrustDeposit.amount":
value := x.Amount
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustdeposit.TrustDeposit.claimable":
value := x.Claimable
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDeposit does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDeposit) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDeposit.account":
x.Account = value.Interface().(string)
case "veranablockchain.trustdeposit.TrustDeposit.share":
x.Share = value.Uint()
case "veranablockchain.trustdeposit.TrustDeposit.amount":
x.Amount = value.Uint()
case "veranablockchain.trustdeposit.TrustDeposit.claimable":
x.Claimable = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDeposit does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDeposit) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDeposit.account":
panic(fmt.Errorf("field account of message veranablockchain.trustdeposit.TrustDeposit is not mutable"))
case "veranablockchain.trustdeposit.TrustDeposit.share":
panic(fmt.Errorf("field share of message veranablockchain.trustdeposit.TrustDeposit is not mutable"))
case "veranablockchain.trustdeposit.TrustDeposit.amount":
panic(fmt.Errorf("field amount of message veranablockchain.trustdeposit.TrustDeposit is not mutable"))
case "veranablockchain.trustdeposit.TrustDeposit.claimable":
panic(fmt.Errorf("field claimable of message veranablockchain.trustdeposit.TrustDeposit is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDeposit does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_TrustDeposit) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustdeposit.TrustDeposit.account":
return protoreflect.ValueOfString("")
case "veranablockchain.trustdeposit.TrustDeposit.share":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustdeposit.TrustDeposit.amount":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustdeposit.TrustDeposit.claimable":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustdeposit.TrustDeposit"))
}
panic(fmt.Errorf("message veranablockchain.trustdeposit.TrustDeposit does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_TrustDeposit) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustdeposit.TrustDeposit", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_TrustDeposit) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustDeposit) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_TrustDeposit) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_TrustDeposit) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*TrustDeposit)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Account)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Share != 0 {
n += 1 + runtime.Sov(uint64(x.Share))
}
if x.Amount != 0 {
n += 1 + runtime.Sov(uint64(x.Amount))
}
if x.Claimable != 0 {
n += 1 + runtime.Sov(uint64(x.Claimable))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*TrustDeposit)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Claimable != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Claimable))
i--
dAtA[i] = 0x20
}
if x.Amount != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Amount))
i--
dAtA[i] = 0x18
}
if x.Share != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Share))
i--
dAtA[i] = 0x10
}
if len(x.Account) > 0 {
i -= len(x.Account)
copy(dAtA[i:], x.Account)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Account)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*TrustDeposit)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustDeposit: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Share", wireType)
}
x.Share = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Share |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
}
x.Amount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Amount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Claimable", wireType)
}
x.Claimable = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Claimable |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustdeposit/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// TrustDeposit represents an account's trust deposit
type TrustDeposit struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Share uint64 `protobuf:"varint,2,opt,name=share,proto3" json:"share,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Claimable uint64 `protobuf:"varint,4,opt,name=claimable,proto3" json:"claimable,omitempty"`
}
func (x *TrustDeposit) Reset() {
*x = TrustDeposit{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustdeposit_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TrustDeposit) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrustDeposit) ProtoMessage() {}
// Deprecated: Use TrustDeposit.ProtoReflect.Descriptor instead.
func (*TrustDeposit) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustdeposit_types_proto_rawDescGZIP(), []int{0}
}
func (x *TrustDeposit) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *TrustDeposit) GetShare() uint64 {
if x != nil {
return x.Share
}
return 0
}
func (x *TrustDeposit) GetAmount() uint64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *TrustDeposit) GetClaimable() uint64 {
if x != nil {
return x.Claimable
}
return 0
}
var File_veranablockchain_trustdeposit_types_proto protoreflect.FileDescriptor
var file_veranablockchain_trustdeposit_types_proto_rawDesc = []byte{
0x0a, 0x29, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52,
0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x16,
0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06,
0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61,
0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x69, 0x6d,
0x61, 0x62, 0x6c, 0x65, 0x42, 0x90, 0x02, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x64, 0x65, 0x70,
0x6f, 0x73, 0x69, 0x74, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58, 0xaa, 0x02, 0x1d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xca, 0x02, 0x1d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0xe2, 0x02, 0x29, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72,
0x75, 0x73, 0x74, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74,
0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustdeposit_types_proto_rawDescOnce sync.Once
file_veranablockchain_trustdeposit_types_proto_rawDescData = file_veranablockchain_trustdeposit_types_proto_rawDesc
)
func file_veranablockchain_trustdeposit_types_proto_rawDescGZIP() []byte {
file_veranablockchain_trustdeposit_types_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustdeposit_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustdeposit_types_proto_rawDescData)
})
return file_veranablockchain_trustdeposit_types_proto_rawDescData
}
var file_veranablockchain_trustdeposit_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_trustdeposit_types_proto_goTypes = []interface{}{
(*TrustDeposit)(nil), // 0: veranablockchain.trustdeposit.TrustDeposit
}
var file_veranablockchain_trustdeposit_types_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustdeposit_types_proto_init() }
func file_veranablockchain_trustdeposit_types_proto_init() {
if File_veranablockchain_trustdeposit_types_proto != nil {
return
}
file_veranablockchain_trustdeposit_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustdeposit_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TrustDeposit); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustdeposit_types_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustdeposit_types_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustdeposit_types_proto_depIdxs,
MessageInfos: file_veranablockchain_trustdeposit_types_proto_msgTypes,
}.Build()
File_veranablockchain_trustdeposit_types_proto = out.File
file_veranablockchain_trustdeposit_types_proto_rawDesc = nil
file_veranablockchain_trustdeposit_types_proto_goTypes = nil
file_veranablockchain_trustdeposit_types_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustregistry
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Counter protoreflect.MessageDescriptor
fd_Counter_entity_type protoreflect.FieldDescriptor
fd_Counter_value protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_genesis_proto_init()
md_Counter = File_veranablockchain_trustregistry_genesis_proto.Messages().ByName("Counter")
fd_Counter_entity_type = md_Counter.Fields().ByName("entity_type")
fd_Counter_value = md_Counter.Fields().ByName("value")
}
var _ protoreflect.Message = (*fastReflection_Counter)(nil)
type fastReflection_Counter Counter
func (x *Counter) ProtoReflect() protoreflect.Message {
return (*fastReflection_Counter)(x)
}
func (x *Counter) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Counter_messageType fastReflection_Counter_messageType
var _ protoreflect.MessageType = fastReflection_Counter_messageType{}
type fastReflection_Counter_messageType struct{}
func (x fastReflection_Counter_messageType) Zero() protoreflect.Message {
return (*fastReflection_Counter)(nil)
}
func (x fastReflection_Counter_messageType) New() protoreflect.Message {
return new(fastReflection_Counter)
}
func (x fastReflection_Counter_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Counter
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Counter) Descriptor() protoreflect.MessageDescriptor {
return md_Counter
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Counter) Type() protoreflect.MessageType {
return _fastReflection_Counter_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Counter) New() protoreflect.Message {
return new(fastReflection_Counter)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Counter) Interface() protoreflect.ProtoMessage {
return (*Counter)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Counter) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.EntityType != "" {
value := protoreflect.ValueOfString(x.EntityType)
if !f(fd_Counter_entity_type, value) {
return
}
}
if x.Value != uint64(0) {
value := protoreflect.ValueOfUint64(x.Value)
if !f(fd_Counter_value, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Counter) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.Counter.entity_type":
return x.EntityType != ""
case "veranablockchain.trustregistry.Counter.value":
return x.Value != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Counter"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Counter does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Counter) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.Counter.entity_type":
x.EntityType = ""
case "veranablockchain.trustregistry.Counter.value":
x.Value = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Counter"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Counter does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Counter) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.Counter.entity_type":
value := x.EntityType
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.Counter.value":
value := x.Value
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Counter"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Counter does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Counter) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.Counter.entity_type":
x.EntityType = value.Interface().(string)
case "veranablockchain.trustregistry.Counter.value":
x.Value = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Counter"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Counter does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Counter) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.Counter.entity_type":
panic(fmt.Errorf("field entity_type of message veranablockchain.trustregistry.Counter is not mutable"))
case "veranablockchain.trustregistry.Counter.value":
panic(fmt.Errorf("field value of message veranablockchain.trustregistry.Counter is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Counter"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Counter does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Counter) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.Counter.entity_type":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.Counter.value":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Counter"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Counter does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Counter) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.Counter", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Counter) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Counter) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Counter) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Counter) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Counter)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.EntityType)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Value != 0 {
n += 1 + runtime.Sov(uint64(x.Value))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Counter)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Value != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Value))
i--
dAtA[i] = 0x10
}
if len(x.EntityType) > 0 {
i -= len(x.EntityType)
copy(dAtA[i:], x.EntityType)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EntityType)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Counter)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Counter: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Counter: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EntityType", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.EntityType = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
}
x.Value = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Value |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_GenesisState_2_list)(nil)
type _GenesisState_2_list struct {
list *[]*TrustRegistry
}
func (x *_GenesisState_2_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_2_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*TrustRegistry)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_2_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*TrustRegistry)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value {
v := new(TrustRegistry)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_2_list) NewElement() protoreflect.Value {
v := new(TrustRegistry)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_2_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_GenesisState_3_list)(nil)
type _GenesisState_3_list struct {
list *[]*GovernanceFrameworkVersion
}
func (x *_GenesisState_3_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_3_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkVersion)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_3_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkVersion)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value {
v := new(GovernanceFrameworkVersion)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_3_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_3_list) NewElement() protoreflect.Value {
v := new(GovernanceFrameworkVersion)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_3_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_GenesisState_4_list)(nil)
type _GenesisState_4_list struct {
list *[]*GovernanceFrameworkDocument
}
func (x *_GenesisState_4_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_4_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkDocument)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_4_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkDocument)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value {
v := new(GovernanceFrameworkDocument)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_4_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_4_list) NewElement() protoreflect.Value {
v := new(GovernanceFrameworkDocument)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_4_list) IsValid() bool {
return x.list != nil
}
var _ protoreflect.List = (*_GenesisState_5_list)(nil)
type _GenesisState_5_list struct {
list *[]*Counter
}
func (x *_GenesisState_5_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GenesisState_5_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Counter)
(*x.list)[i] = concreteValue
}
func (x *_GenesisState_5_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*Counter)
*x.list = append(*x.list, concreteValue)
}
func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value {
v := new(Counter)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_5_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GenesisState_5_list) NewElement() protoreflect.Value {
v := new(Counter)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GenesisState_5_list) IsValid() bool {
return x.list != nil
}
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
fd_GenesisState_trust_registries protoreflect.FieldDescriptor
fd_GenesisState_governance_framework_versions protoreflect.FieldDescriptor
fd_GenesisState_governance_framework_documents protoreflect.FieldDescriptor
fd_GenesisState_counters protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_genesis_proto_init()
md_GenesisState = File_veranablockchain_trustregistry_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
fd_GenesisState_trust_registries = md_GenesisState.Fields().ByName("trust_registries")
fd_GenesisState_governance_framework_versions = md_GenesisState.Fields().ByName("governance_framework_versions")
fd_GenesisState_governance_framework_documents = md_GenesisState.Fields().ByName("governance_framework_documents")
fd_GenesisState_counters = md_GenesisState.Fields().ByName("counters")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_genesis_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
if len(x.TrustRegistries) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.TrustRegistries})
if !f(fd_GenesisState_trust_registries, value) {
return
}
}
if len(x.GovernanceFrameworkVersions) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.GovernanceFrameworkVersions})
if !f(fd_GenesisState_governance_framework_versions, value) {
return
}
}
if len(x.GovernanceFrameworkDocuments) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.GovernanceFrameworkDocuments})
if !f(fd_GenesisState_governance_framework_documents, value) {
return
}
}
if len(x.Counters) != 0 {
value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.Counters})
if !f(fd_GenesisState_counters, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.GenesisState.params":
return x.Params != nil
case "veranablockchain.trustregistry.GenesisState.trust_registries":
return len(x.TrustRegistries) != 0
case "veranablockchain.trustregistry.GenesisState.governance_framework_versions":
return len(x.GovernanceFrameworkVersions) != 0
case "veranablockchain.trustregistry.GenesisState.governance_framework_documents":
return len(x.GovernanceFrameworkDocuments) != 0
case "veranablockchain.trustregistry.GenesisState.counters":
return len(x.Counters) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GenesisState.params":
x.Params = nil
case "veranablockchain.trustregistry.GenesisState.trust_registries":
x.TrustRegistries = nil
case "veranablockchain.trustregistry.GenesisState.governance_framework_versions":
x.GovernanceFrameworkVersions = nil
case "veranablockchain.trustregistry.GenesisState.governance_framework_documents":
x.GovernanceFrameworkDocuments = nil
case "veranablockchain.trustregistry.GenesisState.counters":
x.Counters = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.GenesisState.trust_registries":
if len(x.TrustRegistries) == 0 {
return protoreflect.ValueOfList(&_GenesisState_2_list{})
}
listValue := &_GenesisState_2_list{list: &x.TrustRegistries}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.trustregistry.GenesisState.governance_framework_versions":
if len(x.GovernanceFrameworkVersions) == 0 {
return protoreflect.ValueOfList(&_GenesisState_3_list{})
}
listValue := &_GenesisState_3_list{list: &x.GovernanceFrameworkVersions}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.trustregistry.GenesisState.governance_framework_documents":
if len(x.GovernanceFrameworkDocuments) == 0 {
return protoreflect.ValueOfList(&_GenesisState_4_list{})
}
listValue := &_GenesisState_4_list{list: &x.GovernanceFrameworkDocuments}
return protoreflect.ValueOfList(listValue)
case "veranablockchain.trustregistry.GenesisState.counters":
if len(x.Counters) == 0 {
return protoreflect.ValueOfList(&_GenesisState_5_list{})
}
listValue := &_GenesisState_5_list{list: &x.Counters}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
case "veranablockchain.trustregistry.GenesisState.trust_registries":
lv := value.List()
clv := lv.(*_GenesisState_2_list)
x.TrustRegistries = *clv.list
case "veranablockchain.trustregistry.GenesisState.governance_framework_versions":
lv := value.List()
clv := lv.(*_GenesisState_3_list)
x.GovernanceFrameworkVersions = *clv.list
case "veranablockchain.trustregistry.GenesisState.governance_framework_documents":
lv := value.List()
clv := lv.(*_GenesisState_4_list)
x.GovernanceFrameworkDocuments = *clv.list
case "veranablockchain.trustregistry.GenesisState.counters":
lv := value.List()
clv := lv.(*_GenesisState_5_list)
x.Counters = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.trustregistry.GenesisState.trust_registries":
if x.TrustRegistries == nil {
x.TrustRegistries = []*TrustRegistry{}
}
value := &_GenesisState_2_list{list: &x.TrustRegistries}
return protoreflect.ValueOfList(value)
case "veranablockchain.trustregistry.GenesisState.governance_framework_versions":
if x.GovernanceFrameworkVersions == nil {
x.GovernanceFrameworkVersions = []*GovernanceFrameworkVersion{}
}
value := &_GenesisState_3_list{list: &x.GovernanceFrameworkVersions}
return protoreflect.ValueOfList(value)
case "veranablockchain.trustregistry.GenesisState.governance_framework_documents":
if x.GovernanceFrameworkDocuments == nil {
x.GovernanceFrameworkDocuments = []*GovernanceFrameworkDocument{}
}
value := &_GenesisState_4_list{list: &x.GovernanceFrameworkDocuments}
return protoreflect.ValueOfList(value)
case "veranablockchain.trustregistry.GenesisState.counters":
if x.Counters == nil {
x.Counters = []*Counter{}
}
value := &_GenesisState_5_list{list: &x.Counters}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.GenesisState.trust_registries":
list := []*TrustRegistry{}
return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list})
case "veranablockchain.trustregistry.GenesisState.governance_framework_versions":
list := []*GovernanceFrameworkVersion{}
return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list})
case "veranablockchain.trustregistry.GenesisState.governance_framework_documents":
list := []*GovernanceFrameworkDocument{}
return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list})
case "veranablockchain.trustregistry.GenesisState.counters":
list := []*Counter{}
return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.TrustRegistries) > 0 {
for _, e := range x.TrustRegistries {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.GovernanceFrameworkVersions) > 0 {
for _, e := range x.GovernanceFrameworkVersions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.GovernanceFrameworkDocuments) > 0 {
for _, e := range x.GovernanceFrameworkDocuments {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if len(x.Counters) > 0 {
for _, e := range x.Counters {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Counters) > 0 {
for iNdEx := len(x.Counters) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Counters[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
}
if len(x.GovernanceFrameworkDocuments) > 0 {
for iNdEx := len(x.GovernanceFrameworkDocuments) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.GovernanceFrameworkDocuments[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
}
if len(x.GovernanceFrameworkVersions) > 0 {
for iNdEx := len(x.GovernanceFrameworkVersions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.GovernanceFrameworkVersions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
}
if len(x.TrustRegistries) > 0 {
for iNdEx := len(x.TrustRegistries) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.TrustRegistries[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustRegistries", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TrustRegistries = append(x.TrustRegistries, &TrustRegistry{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TrustRegistries[len(x.TrustRegistries)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GovernanceFrameworkVersions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.GovernanceFrameworkVersions = append(x.GovernanceFrameworkVersions, &GovernanceFrameworkVersion{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GovernanceFrameworkVersions[len(x.GovernanceFrameworkVersions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GovernanceFrameworkDocuments", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.GovernanceFrameworkDocuments = append(x.GovernanceFrameworkDocuments, &GovernanceFrameworkDocument{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GovernanceFrameworkDocuments[len(x.GovernanceFrameworkDocuments)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Counters = append(x.Counters, &Counter{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Counters[len(x.Counters)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustregistry/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Counter defines an entity type and its current counter value
type Counter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *Counter) Reset() {
*x = Counter{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Counter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Counter) ProtoMessage() {}
// Deprecated: Use Counter.ProtoReflect.Descriptor instead.
func (*Counter) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *Counter) GetEntityType() string {
if x != nil {
return x.EntityType
}
return ""
}
func (x *Counter) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
// GenesisState defines the trustregistry module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// Collection of all trust registries
TrustRegistries []*TrustRegistry `protobuf:"bytes,2,rep,name=trust_registries,json=trustRegistries,proto3" json:"trust_registries,omitempty"`
// Collection of all governance framework versions
GovernanceFrameworkVersions []*GovernanceFrameworkVersion `protobuf:"bytes,3,rep,name=governance_framework_versions,json=governanceFrameworkVersions,proto3" json:"governance_framework_versions,omitempty"`
// Collection of all governance framework documents
GovernanceFrameworkDocuments []*GovernanceFrameworkDocument `protobuf:"bytes,4,rep,name=governance_framework_documents,json=governanceFrameworkDocuments,proto3" json:"governance_framework_documents,omitempty"`
// List of counters by entity type (tr, gfv, gfd)
Counters []*Counter `protobuf:"bytes,5,rep,name=counters,proto3" json:"counters,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_genesis_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_genesis_proto_rawDescGZIP(), []int{1}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
func (x *GenesisState) GetTrustRegistries() []*TrustRegistry {
if x != nil {
return x.TrustRegistries
}
return nil
}
func (x *GenesisState) GetGovernanceFrameworkVersions() []*GovernanceFrameworkVersion {
if x != nil {
return x.GovernanceFrameworkVersions
}
return nil
}
func (x *GenesisState) GetGovernanceFrameworkDocuments() []*GovernanceFrameworkDocument {
if x != nil {
return x.GovernanceFrameworkDocuments
}
return nil
}
func (x *GenesisState) GetCounters() []*Counter {
if x != nil {
return x.Counters
}
return nil
}
var File_veranablockchain_trustregistry_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_trustregistry_genesis_proto_rawDesc = []byte{
0x0a, 0x2c, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x11,
0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x40, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x22, 0x95, 0x04, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74,
0x61, 0x74, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f,
0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x5e,
0x0a, 0x10, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69,
0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73,
0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x74,
0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x84,
0x01, 0x0a, 0x1d, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x72,
0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73,
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e,
0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x1b, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e,
0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x1e, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e,
0x61, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x64,
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b,
0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77,
0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f,
0x00, 0x52, 0x1c, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61,
0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12,
0x49, 0x0a, 0x08, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x27, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00,
0x52, 0x08, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x42, 0x98, 0x02, 0x0a, 0x22, 0x63,
0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02,
0x03, 0x56, 0x54, 0x58, 0xaa, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02, 0x2a, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustregistry_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_trustregistry_genesis_proto_rawDescData = file_veranablockchain_trustregistry_genesis_proto_rawDesc
)
func file_veranablockchain_trustregistry_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_trustregistry_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustregistry_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustregistry_genesis_proto_rawDescData)
})
return file_veranablockchain_trustregistry_genesis_proto_rawDescData
}
var file_veranablockchain_trustregistry_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_veranablockchain_trustregistry_genesis_proto_goTypes = []interface{}{
(*Counter)(nil), // 0: veranablockchain.trustregistry.Counter
(*GenesisState)(nil), // 1: veranablockchain.trustregistry.GenesisState
(*Params)(nil), // 2: veranablockchain.trustregistry.Params
(*TrustRegistry)(nil), // 3: veranablockchain.trustregistry.TrustRegistry
(*GovernanceFrameworkVersion)(nil), // 4: veranablockchain.trustregistry.GovernanceFrameworkVersion
(*GovernanceFrameworkDocument)(nil), // 5: veranablockchain.trustregistry.GovernanceFrameworkDocument
}
var file_veranablockchain_trustregistry_genesis_proto_depIdxs = []int32{
2, // 0: veranablockchain.trustregistry.GenesisState.params:type_name -> veranablockchain.trustregistry.Params
3, // 1: veranablockchain.trustregistry.GenesisState.trust_registries:type_name -> veranablockchain.trustregistry.TrustRegistry
4, // 2: veranablockchain.trustregistry.GenesisState.governance_framework_versions:type_name -> veranablockchain.trustregistry.GovernanceFrameworkVersion
5, // 3: veranablockchain.trustregistry.GenesisState.governance_framework_documents:type_name -> veranablockchain.trustregistry.GovernanceFrameworkDocument
0, // 4: veranablockchain.trustregistry.GenesisState.counters:type_name -> veranablockchain.trustregistry.Counter
5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustregistry_genesis_proto_init() }
func file_veranablockchain_trustregistry_genesis_proto_init() {
if File_veranablockchain_trustregistry_genesis_proto != nil {
return
}
file_veranablockchain_trustregistry_params_proto_init()
file_veranablockchain_trustregistry_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustregistry_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Counter); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustregistry_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustregistry_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustregistry_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_trustregistry_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_trustregistry_genesis_proto = out.File
file_veranablockchain_trustregistry_genesis_proto_rawDesc = nil
file_veranablockchain_trustregistry_genesis_proto_goTypes = nil
file_veranablockchain_trustregistry_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_module_module_proto_init()
md_Module = File_veranablockchain_trustregistry_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.trustregistry.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustregistry/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_trustregistry_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_trustregistry_module_module_proto_rawDesc = []byte{
0x0a, 0x32, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x68, 0x0a,
0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68,
0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x40, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x3a, 0x0a, 0x38, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0xc2, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x6d,
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x4d, 0xaa, 0x02,
0x25, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e,
0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x25, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02,
0x31, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c,
0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x27, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustregistry_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_trustregistry_module_module_proto_rawDescData = file_veranablockchain_trustregistry_module_module_proto_rawDesc
)
func file_veranablockchain_trustregistry_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_trustregistry_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustregistry_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustregistry_module_module_proto_rawDescData)
})
return file_veranablockchain_trustregistry_module_module_proto_rawDescData
}
var file_veranablockchain_trustregistry_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_trustregistry_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.trustregistry.module.Module
}
var file_veranablockchain_trustregistry_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustregistry_module_module_proto_init() }
func file_veranablockchain_trustregistry_module_module_proto_init() {
if File_veranablockchain_trustregistry_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustregistry_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustregistry_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustregistry_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustregistry_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_trustregistry_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_trustregistry_module_module_proto = out.File
file_veranablockchain_trustregistry_module_module_proto_rawDesc = nil
file_veranablockchain_trustregistry_module_module_proto_goTypes = nil
file_veranablockchain_trustregistry_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustregistry
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_Params protoreflect.MessageDescriptor
fd_Params_trust_registry_trust_deposit protoreflect.FieldDescriptor
fd_Params_trust_unit_price protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_params_proto_init()
md_Params = File_veranablockchain_trustregistry_params_proto.Messages().ByName("Params")
fd_Params_trust_registry_trust_deposit = md_Params.Fields().ByName("trust_registry_trust_deposit")
fd_Params_trust_unit_price = md_Params.Fields().ByName("trust_unit_price")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.TrustRegistryTrustDeposit != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrustRegistryTrustDeposit)
if !f(fd_Params_trust_registry_trust_deposit, value) {
return
}
}
if x.TrustUnitPrice != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrustUnitPrice)
if !f(fd_Params_trust_unit_price, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.Params.trust_registry_trust_deposit":
return x.TrustRegistryTrustDeposit != uint64(0)
case "veranablockchain.trustregistry.Params.trust_unit_price":
return x.TrustUnitPrice != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.Params.trust_registry_trust_deposit":
x.TrustRegistryTrustDeposit = uint64(0)
case "veranablockchain.trustregistry.Params.trust_unit_price":
x.TrustUnitPrice = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.Params.trust_registry_trust_deposit":
value := x.TrustRegistryTrustDeposit
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.Params.trust_unit_price":
value := x.TrustUnitPrice
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.Params.trust_registry_trust_deposit":
x.TrustRegistryTrustDeposit = value.Uint()
case "veranablockchain.trustregistry.Params.trust_unit_price":
x.TrustUnitPrice = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.Params.trust_registry_trust_deposit":
panic(fmt.Errorf("field trust_registry_trust_deposit of message veranablockchain.trustregistry.Params is not mutable"))
case "veranablockchain.trustregistry.Params.trust_unit_price":
panic(fmt.Errorf("field trust_unit_price of message veranablockchain.trustregistry.Params is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.Params.trust_registry_trust_deposit":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.Params.trust_unit_price":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.Params"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.TrustRegistryTrustDeposit != 0 {
n += 1 + runtime.Sov(uint64(x.TrustRegistryTrustDeposit))
}
if x.TrustUnitPrice != 0 {
n += 1 + runtime.Sov(uint64(x.TrustUnitPrice))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.TrustUnitPrice != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrustUnitPrice))
i--
dAtA[i] = 0x10
}
if x.TrustRegistryTrustDeposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrustRegistryTrustDeposit))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustRegistryTrustDeposit", wireType)
}
x.TrustRegistryTrustDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrustRegistryTrustDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustUnitPrice", wireType)
}
x.TrustUnitPrice = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrustUnitPrice |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustregistry/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrustRegistryTrustDeposit uint64 `protobuf:"varint,1,opt,name=trust_registry_trust_deposit,json=trustRegistryTrustDeposit,proto3" json:"trust_registry_trust_deposit,omitempty"`
TrustUnitPrice uint64 `protobuf:"varint,2,opt,name=trust_unit_price,json=trustUnitPrice,proto3" json:"trust_unit_price,omitempty"`
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_params_proto_rawDescGZIP(), []int{0}
}
func (x *Params) GetTrustRegistryTrustDeposit() uint64 {
if x != nil {
return x.TrustRegistryTrustDeposit
}
return 0
}
func (x *Params) GetTrustUnitPrice() uint64 {
if x != nil {
return x.TrustUnitPrice
}
return 0
}
var File_veranablockchain_trustregistry_params_proto protoreflect.FileDescriptor
var file_veranablockchain_trustregistry_params_proto_rawDesc = []byte{
0x0a, 0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x11, 0x61,
0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x12, 0x3f, 0x0a, 0x1c, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x19, 0x74, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x65, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x75, 0x6e, 0x69, 0x74,
0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x74, 0x72,
0x75, 0x73, 0x74, 0x55, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x30, 0xe8, 0xa0,
0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x27, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x97,
0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58, 0xaa, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73,
0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02, 0x2a, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75,
0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74,
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustregistry_params_proto_rawDescOnce sync.Once
file_veranablockchain_trustregistry_params_proto_rawDescData = file_veranablockchain_trustregistry_params_proto_rawDesc
)
func file_veranablockchain_trustregistry_params_proto_rawDescGZIP() []byte {
file_veranablockchain_trustregistry_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustregistry_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustregistry_params_proto_rawDescData)
})
return file_veranablockchain_trustregistry_params_proto_rawDescData
}
var file_veranablockchain_trustregistry_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_trustregistry_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.trustregistry.Params
}
var file_veranablockchain_trustregistry_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustregistry_params_proto_init() }
func file_veranablockchain_trustregistry_params_proto_init() {
if File_veranablockchain_trustregistry_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustregistry_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustregistry_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustregistry_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustregistry_params_proto_depIdxs,
MessageInfos: file_veranablockchain_trustregistry_params_proto_msgTypes,
}.Build()
File_veranablockchain_trustregistry_params_proto = out.File
file_veranablockchain_trustregistry_params_proto_rawDesc = nil
file_veranablockchain_trustregistry_params_proto_goTypes = nil
file_veranablockchain_trustregistry_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustregistry
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_trustregistry_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_trustregistry_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetTrustRegistryRequest protoreflect.MessageDescriptor
fd_QueryGetTrustRegistryRequest_tr_id protoreflect.FieldDescriptor
fd_QueryGetTrustRegistryRequest_active_gf_only protoreflect.FieldDescriptor
fd_QueryGetTrustRegistryRequest_preferred_language protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_query_proto_init()
md_QueryGetTrustRegistryRequest = File_veranablockchain_trustregistry_query_proto.Messages().ByName("QueryGetTrustRegistryRequest")
fd_QueryGetTrustRegistryRequest_tr_id = md_QueryGetTrustRegistryRequest.Fields().ByName("tr_id")
fd_QueryGetTrustRegistryRequest_active_gf_only = md_QueryGetTrustRegistryRequest.Fields().ByName("active_gf_only")
fd_QueryGetTrustRegistryRequest_preferred_language = md_QueryGetTrustRegistryRequest.Fields().ByName("preferred_language")
}
var _ protoreflect.Message = (*fastReflection_QueryGetTrustRegistryRequest)(nil)
type fastReflection_QueryGetTrustRegistryRequest QueryGetTrustRegistryRequest
func (x *QueryGetTrustRegistryRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetTrustRegistryRequest)(x)
}
func (x *QueryGetTrustRegistryRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetTrustRegistryRequest_messageType fastReflection_QueryGetTrustRegistryRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetTrustRegistryRequest_messageType{}
type fastReflection_QueryGetTrustRegistryRequest_messageType struct{}
func (x fastReflection_QueryGetTrustRegistryRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetTrustRegistryRequest)(nil)
}
func (x fastReflection_QueryGetTrustRegistryRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustRegistryRequest)
}
func (x fastReflection_QueryGetTrustRegistryRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustRegistryRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetTrustRegistryRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustRegistryRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetTrustRegistryRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryGetTrustRegistryRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetTrustRegistryRequest) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustRegistryRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetTrustRegistryRequest) Interface() protoreflect.ProtoMessage {
return (*QueryGetTrustRegistryRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetTrustRegistryRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.TrId != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrId)
if !f(fd_QueryGetTrustRegistryRequest_tr_id, value) {
return
}
}
if x.ActiveGfOnly != false {
value := protoreflect.ValueOfBool(x.ActiveGfOnly)
if !f(fd_QueryGetTrustRegistryRequest_active_gf_only, value) {
return
}
}
if x.PreferredLanguage != "" {
value := protoreflect.ValueOfString(x.PreferredLanguage)
if !f(fd_QueryGetTrustRegistryRequest_preferred_language, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetTrustRegistryRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.tr_id":
return x.TrId != uint64(0)
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.active_gf_only":
return x.ActiveGfOnly != false
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.preferred_language":
return x.PreferredLanguage != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.tr_id":
x.TrId = uint64(0)
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.active_gf_only":
x.ActiveGfOnly = false
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.preferred_language":
x.PreferredLanguage = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetTrustRegistryRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.tr_id":
value := x.TrId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.active_gf_only":
value := x.ActiveGfOnly
return protoreflect.ValueOfBool(value)
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.preferred_language":
value := x.PreferredLanguage
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.tr_id":
x.TrId = value.Uint()
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.active_gf_only":
x.ActiveGfOnly = value.Bool()
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.preferred_language":
x.PreferredLanguage = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.tr_id":
panic(fmt.Errorf("field tr_id of message veranablockchain.trustregistry.QueryGetTrustRegistryRequest is not mutable"))
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.active_gf_only":
panic(fmt.Errorf("field active_gf_only of message veranablockchain.trustregistry.QueryGetTrustRegistryRequest is not mutable"))
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.preferred_language":
panic(fmt.Errorf("field preferred_language of message veranablockchain.trustregistry.QueryGetTrustRegistryRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetTrustRegistryRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.tr_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.active_gf_only":
return protoreflect.ValueOfBool(false)
case "veranablockchain.trustregistry.QueryGetTrustRegistryRequest.preferred_language":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetTrustRegistryRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.QueryGetTrustRegistryRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetTrustRegistryRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetTrustRegistryRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetTrustRegistryRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetTrustRegistryRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.TrId != 0 {
n += 1 + runtime.Sov(uint64(x.TrId))
}
if x.ActiveGfOnly {
n += 2
}
l = len(x.PreferredLanguage)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustRegistryRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.PreferredLanguage) > 0 {
i -= len(x.PreferredLanguage)
copy(dAtA[i:], x.PreferredLanguage)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreferredLanguage)))
i--
dAtA[i] = 0x1a
}
if x.ActiveGfOnly {
i--
if x.ActiveGfOnly {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
if x.TrId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrId))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustRegistryRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustRegistryRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustRegistryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
x.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveGfOnly", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.ActiveGfOnly = bool(v != 0)
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreferredLanguage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.PreferredLanguage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryGetTrustRegistryResponse protoreflect.MessageDescriptor
fd_QueryGetTrustRegistryResponse_trust_registry protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_query_proto_init()
md_QueryGetTrustRegistryResponse = File_veranablockchain_trustregistry_query_proto.Messages().ByName("QueryGetTrustRegistryResponse")
fd_QueryGetTrustRegistryResponse_trust_registry = md_QueryGetTrustRegistryResponse.Fields().ByName("trust_registry")
}
var _ protoreflect.Message = (*fastReflection_QueryGetTrustRegistryResponse)(nil)
type fastReflection_QueryGetTrustRegistryResponse QueryGetTrustRegistryResponse
func (x *QueryGetTrustRegistryResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryGetTrustRegistryResponse)(x)
}
func (x *QueryGetTrustRegistryResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryGetTrustRegistryResponse_messageType fastReflection_QueryGetTrustRegistryResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryGetTrustRegistryResponse_messageType{}
type fastReflection_QueryGetTrustRegistryResponse_messageType struct{}
func (x fastReflection_QueryGetTrustRegistryResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryGetTrustRegistryResponse)(nil)
}
func (x fastReflection_QueryGetTrustRegistryResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustRegistryResponse)
}
func (x fastReflection_QueryGetTrustRegistryResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustRegistryResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryGetTrustRegistryResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryGetTrustRegistryResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryGetTrustRegistryResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryGetTrustRegistryResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryGetTrustRegistryResponse) New() protoreflect.Message {
return new(fastReflection_QueryGetTrustRegistryResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryGetTrustRegistryResponse) Interface() protoreflect.ProtoMessage {
return (*QueryGetTrustRegistryResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryGetTrustRegistryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.TrustRegistry != nil {
value := protoreflect.ValueOfMessage(x.TrustRegistry.ProtoReflect())
if !f(fd_QueryGetTrustRegistryResponse_trust_registry, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryGetTrustRegistryResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry":
return x.TrustRegistry != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry":
x.TrustRegistry = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryGetTrustRegistryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry":
value := x.TrustRegistry
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry":
x.TrustRegistry = value.Message().Interface().(*TrustRegistryWithVersions)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry":
if x.TrustRegistry == nil {
x.TrustRegistry = new(TrustRegistryWithVersions)
}
return protoreflect.ValueOfMessage(x.TrustRegistry.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryGetTrustRegistryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry":
m := new(TrustRegistryWithVersions)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryGetTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryGetTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryGetTrustRegistryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.QueryGetTrustRegistryResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryGetTrustRegistryResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryGetTrustRegistryResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryGetTrustRegistryResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryGetTrustRegistryResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryGetTrustRegistryResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.TrustRegistry != nil {
l = options.Size(x.TrustRegistry)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustRegistryResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.TrustRegistry != nil {
encoded, err := options.Marshal(x.TrustRegistry)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryGetTrustRegistryResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustRegistry", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.TrustRegistry == nil {
x.TrustRegistry = &TrustRegistryWithVersions{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TrustRegistry); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryListTrustRegistriesRequest protoreflect.MessageDescriptor
fd_QueryListTrustRegistriesRequest_controller protoreflect.FieldDescriptor
fd_QueryListTrustRegistriesRequest_modified_after protoreflect.FieldDescriptor
fd_QueryListTrustRegistriesRequest_active_gf_only protoreflect.FieldDescriptor
fd_QueryListTrustRegistriesRequest_preferred_language protoreflect.FieldDescriptor
fd_QueryListTrustRegistriesRequest_response_max_size protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_query_proto_init()
md_QueryListTrustRegistriesRequest = File_veranablockchain_trustregistry_query_proto.Messages().ByName("QueryListTrustRegistriesRequest")
fd_QueryListTrustRegistriesRequest_controller = md_QueryListTrustRegistriesRequest.Fields().ByName("controller")
fd_QueryListTrustRegistriesRequest_modified_after = md_QueryListTrustRegistriesRequest.Fields().ByName("modified_after")
fd_QueryListTrustRegistriesRequest_active_gf_only = md_QueryListTrustRegistriesRequest.Fields().ByName("active_gf_only")
fd_QueryListTrustRegistriesRequest_preferred_language = md_QueryListTrustRegistriesRequest.Fields().ByName("preferred_language")
fd_QueryListTrustRegistriesRequest_response_max_size = md_QueryListTrustRegistriesRequest.Fields().ByName("response_max_size")
}
var _ protoreflect.Message = (*fastReflection_QueryListTrustRegistriesRequest)(nil)
type fastReflection_QueryListTrustRegistriesRequest QueryListTrustRegistriesRequest
func (x *QueryListTrustRegistriesRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListTrustRegistriesRequest)(x)
}
func (x *QueryListTrustRegistriesRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListTrustRegistriesRequest_messageType fastReflection_QueryListTrustRegistriesRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryListTrustRegistriesRequest_messageType{}
type fastReflection_QueryListTrustRegistriesRequest_messageType struct{}
func (x fastReflection_QueryListTrustRegistriesRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListTrustRegistriesRequest)(nil)
}
func (x fastReflection_QueryListTrustRegistriesRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListTrustRegistriesRequest)
}
func (x fastReflection_QueryListTrustRegistriesRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListTrustRegistriesRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListTrustRegistriesRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListTrustRegistriesRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListTrustRegistriesRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryListTrustRegistriesRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListTrustRegistriesRequest) New() protoreflect.Message {
return new(fastReflection_QueryListTrustRegistriesRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListTrustRegistriesRequest) Interface() protoreflect.ProtoMessage {
return (*QueryListTrustRegistriesRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListTrustRegistriesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Controller != "" {
value := protoreflect.ValueOfString(x.Controller)
if !f(fd_QueryListTrustRegistriesRequest_controller, value) {
return
}
}
if x.ModifiedAfter != nil {
value := protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
if !f(fd_QueryListTrustRegistriesRequest_modified_after, value) {
return
}
}
if x.ActiveGfOnly != false {
value := protoreflect.ValueOfBool(x.ActiveGfOnly)
if !f(fd_QueryListTrustRegistriesRequest_active_gf_only, value) {
return
}
}
if x.PreferredLanguage != "" {
value := protoreflect.ValueOfString(x.PreferredLanguage)
if !f(fd_QueryListTrustRegistriesRequest_preferred_language, value) {
return
}
}
if x.ResponseMaxSize != uint32(0) {
value := protoreflect.ValueOfUint32(x.ResponseMaxSize)
if !f(fd_QueryListTrustRegistriesRequest_response_max_size, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListTrustRegistriesRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.controller":
return x.Controller != ""
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after":
return x.ModifiedAfter != nil
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.active_gf_only":
return x.ActiveGfOnly != false
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.preferred_language":
return x.PreferredLanguage != ""
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.response_max_size":
return x.ResponseMaxSize != uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.controller":
x.Controller = ""
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after":
x.ModifiedAfter = nil
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.active_gf_only":
x.ActiveGfOnly = false
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.preferred_language":
x.PreferredLanguage = ""
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.response_max_size":
x.ResponseMaxSize = uint32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListTrustRegistriesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.controller":
value := x.Controller
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after":
value := x.ModifiedAfter
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.active_gf_only":
value := x.ActiveGfOnly
return protoreflect.ValueOfBool(value)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.preferred_language":
value := x.PreferredLanguage
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.response_max_size":
value := x.ResponseMaxSize
return protoreflect.ValueOfUint32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.controller":
x.Controller = value.Interface().(string)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after":
x.ModifiedAfter = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.active_gf_only":
x.ActiveGfOnly = value.Bool()
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.preferred_language":
x.PreferredLanguage = value.Interface().(string)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.response_max_size":
x.ResponseMaxSize = uint32(value.Uint())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after":
if x.ModifiedAfter == nil {
x.ModifiedAfter = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.ModifiedAfter.ProtoReflect())
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.controller":
panic(fmt.Errorf("field controller of message veranablockchain.trustregistry.QueryListTrustRegistriesRequest is not mutable"))
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.active_gf_only":
panic(fmt.Errorf("field active_gf_only of message veranablockchain.trustregistry.QueryListTrustRegistriesRequest is not mutable"))
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.preferred_language":
panic(fmt.Errorf("field preferred_language of message veranablockchain.trustregistry.QueryListTrustRegistriesRequest is not mutable"))
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.response_max_size":
panic(fmt.Errorf("field response_max_size of message veranablockchain.trustregistry.QueryListTrustRegistriesRequest is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListTrustRegistriesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.controller":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.active_gf_only":
return protoreflect.ValueOfBool(false)
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.preferred_language":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.QueryListTrustRegistriesRequest.response_max_size":
return protoreflect.ValueOfUint32(uint32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesRequest"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListTrustRegistriesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.QueryListTrustRegistriesRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListTrustRegistriesRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListTrustRegistriesRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListTrustRegistriesRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListTrustRegistriesRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Controller)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ModifiedAfter != nil {
l = options.Size(x.ModifiedAfter)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ActiveGfOnly {
n += 2
}
l = len(x.PreferredLanguage)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ResponseMaxSize != 0 {
n += 1 + runtime.Sov(uint64(x.ResponseMaxSize))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListTrustRegistriesRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ResponseMaxSize != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ResponseMaxSize))
i--
dAtA[i] = 0x28
}
if len(x.PreferredLanguage) > 0 {
i -= len(x.PreferredLanguage)
copy(dAtA[i:], x.PreferredLanguage)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreferredLanguage)))
i--
dAtA[i] = 0x22
}
if x.ActiveGfOnly {
i--
if x.ActiveGfOnly {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if x.ModifiedAfter != nil {
encoded, err := options.Marshal(x.ModifiedAfter)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Controller) > 0 {
i -= len(x.Controller)
copy(dAtA[i:], x.Controller)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListTrustRegistriesRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListTrustRegistriesRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListTrustRegistriesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.ModifiedAfter == nil {
x.ModifiedAfter = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ModifiedAfter); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveGfOnly", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.ActiveGfOnly = bool(v != 0)
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreferredLanguage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.PreferredLanguage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
x.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_QueryListTrustRegistriesResponse_1_list)(nil)
type _QueryListTrustRegistriesResponse_1_list struct {
list *[]*TrustRegistryWithVersions
}
func (x *_QueryListTrustRegistriesResponse_1_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_QueryListTrustRegistriesResponse_1_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_QueryListTrustRegistriesResponse_1_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*TrustRegistryWithVersions)
(*x.list)[i] = concreteValue
}
func (x *_QueryListTrustRegistriesResponse_1_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*TrustRegistryWithVersions)
*x.list = append(*x.list, concreteValue)
}
func (x *_QueryListTrustRegistriesResponse_1_list) AppendMutable() protoreflect.Value {
v := new(TrustRegistryWithVersions)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListTrustRegistriesResponse_1_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_QueryListTrustRegistriesResponse_1_list) NewElement() protoreflect.Value {
v := new(TrustRegistryWithVersions)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_QueryListTrustRegistriesResponse_1_list) IsValid() bool {
return x.list != nil
}
var (
md_QueryListTrustRegistriesResponse protoreflect.MessageDescriptor
fd_QueryListTrustRegistriesResponse_trust_registries protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_query_proto_init()
md_QueryListTrustRegistriesResponse = File_veranablockchain_trustregistry_query_proto.Messages().ByName("QueryListTrustRegistriesResponse")
fd_QueryListTrustRegistriesResponse_trust_registries = md_QueryListTrustRegistriesResponse.Fields().ByName("trust_registries")
}
var _ protoreflect.Message = (*fastReflection_QueryListTrustRegistriesResponse)(nil)
type fastReflection_QueryListTrustRegistriesResponse QueryListTrustRegistriesResponse
func (x *QueryListTrustRegistriesResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryListTrustRegistriesResponse)(x)
}
func (x *QueryListTrustRegistriesResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryListTrustRegistriesResponse_messageType fastReflection_QueryListTrustRegistriesResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryListTrustRegistriesResponse_messageType{}
type fastReflection_QueryListTrustRegistriesResponse_messageType struct{}
func (x fastReflection_QueryListTrustRegistriesResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryListTrustRegistriesResponse)(nil)
}
func (x fastReflection_QueryListTrustRegistriesResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryListTrustRegistriesResponse)
}
func (x fastReflection_QueryListTrustRegistriesResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListTrustRegistriesResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryListTrustRegistriesResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryListTrustRegistriesResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryListTrustRegistriesResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryListTrustRegistriesResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryListTrustRegistriesResponse) New() protoreflect.Message {
return new(fastReflection_QueryListTrustRegistriesResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryListTrustRegistriesResponse) Interface() protoreflect.ProtoMessage {
return (*QueryListTrustRegistriesResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryListTrustRegistriesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if len(x.TrustRegistries) != 0 {
value := protoreflect.ValueOfList(&_QueryListTrustRegistriesResponse_1_list{list: &x.TrustRegistries})
if !f(fd_QueryListTrustRegistriesResponse_trust_registries, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryListTrustRegistriesResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries":
return len(x.TrustRegistries) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries":
x.TrustRegistries = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryListTrustRegistriesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries":
if len(x.TrustRegistries) == 0 {
return protoreflect.ValueOfList(&_QueryListTrustRegistriesResponse_1_list{})
}
listValue := &_QueryListTrustRegistriesResponse_1_list{list: &x.TrustRegistries}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries":
lv := value.List()
clv := lv.(*_QueryListTrustRegistriesResponse_1_list)
x.TrustRegistries = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries":
if x.TrustRegistries == nil {
x.TrustRegistries = []*TrustRegistryWithVersions{}
}
value := &_QueryListTrustRegistriesResponse_1_list{list: &x.TrustRegistries}
return protoreflect.ValueOfList(value)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryListTrustRegistriesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries":
list := []*TrustRegistryWithVersions{}
return protoreflect.ValueOfList(&_QueryListTrustRegistriesResponse_1_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.QueryListTrustRegistriesResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.QueryListTrustRegistriesResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryListTrustRegistriesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.QueryListTrustRegistriesResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryListTrustRegistriesResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryListTrustRegistriesResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryListTrustRegistriesResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryListTrustRegistriesResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryListTrustRegistriesResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if len(x.TrustRegistries) > 0 {
for _, e := range x.TrustRegistries {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryListTrustRegistriesResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.TrustRegistries) > 0 {
for iNdEx := len(x.TrustRegistries) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.TrustRegistries[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryListTrustRegistriesResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListTrustRegistriesResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListTrustRegistriesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrustRegistries", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.TrustRegistries = append(x.TrustRegistries, &TrustRegistryWithVersions{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TrustRegistries[len(x.TrustRegistries)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustregistry/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// QueryGetTrustRegistryRequest is the request type for the Query/GetTrustRegistry RPC method.
type QueryGetTrustRegistryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrId uint64 `protobuf:"varint,1,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"` // Changed from string did to uint64 tr_id
ActiveGfOnly bool `protobuf:"varint,2,opt,name=active_gf_only,json=activeGfOnly,proto3" json:"active_gf_only,omitempty"`
PreferredLanguage string `protobuf:"bytes,3,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
}
func (x *QueryGetTrustRegistryRequest) Reset() {
*x = QueryGetTrustRegistryRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetTrustRegistryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetTrustRegistryRequest) ProtoMessage() {}
// Deprecated: Use QueryGetTrustRegistryRequest.ProtoReflect.Descriptor instead.
func (*QueryGetTrustRegistryRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_query_proto_rawDescGZIP(), []int{2}
}
func (x *QueryGetTrustRegistryRequest) GetTrId() uint64 {
if x != nil {
return x.TrId
}
return 0
}
func (x *QueryGetTrustRegistryRequest) GetActiveGfOnly() bool {
if x != nil {
return x.ActiveGfOnly
}
return false
}
func (x *QueryGetTrustRegistryRequest) GetPreferredLanguage() string {
if x != nil {
return x.PreferredLanguage
}
return ""
}
// QueryGetTrustRegistryResponse is the response type for the Query/GetTrustRegistry RPC method.
type QueryGetTrustRegistryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrustRegistry *TrustRegistryWithVersions `protobuf:"bytes,1,opt,name=trust_registry,json=trustRegistry,proto3" json:"trust_registry,omitempty"`
}
func (x *QueryGetTrustRegistryResponse) Reset() {
*x = QueryGetTrustRegistryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryGetTrustRegistryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryGetTrustRegistryResponse) ProtoMessage() {}
// Deprecated: Use QueryGetTrustRegistryResponse.ProtoReflect.Descriptor instead.
func (*QueryGetTrustRegistryResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryGetTrustRegistryResponse) GetTrustRegistry() *TrustRegistryWithVersions {
if x != nil {
return x.TrustRegistry
}
return nil
}
// QueryListTrustRegistriesRequest is the request type for the Query/ListTrustRegistries RPC method.
type QueryListTrustRegistriesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"` // Added controller field
ModifiedAfter *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=modified_after,json=modifiedAfter,proto3" json:"modified_after,omitempty"`
ActiveGfOnly bool `protobuf:"varint,3,opt,name=active_gf_only,json=activeGfOnly,proto3" json:"active_gf_only,omitempty"`
PreferredLanguage string `protobuf:"bytes,4,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,5,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (x *QueryListTrustRegistriesRequest) Reset() {
*x = QueryListTrustRegistriesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListTrustRegistriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListTrustRegistriesRequest) ProtoMessage() {}
// Deprecated: Use QueryListTrustRegistriesRequest.ProtoReflect.Descriptor instead.
func (*QueryListTrustRegistriesRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_query_proto_rawDescGZIP(), []int{4}
}
func (x *QueryListTrustRegistriesRequest) GetController() string {
if x != nil {
return x.Controller
}
return ""
}
func (x *QueryListTrustRegistriesRequest) GetModifiedAfter() *timestamppb.Timestamp {
if x != nil {
return x.ModifiedAfter
}
return nil
}
func (x *QueryListTrustRegistriesRequest) GetActiveGfOnly() bool {
if x != nil {
return x.ActiveGfOnly
}
return false
}
func (x *QueryListTrustRegistriesRequest) GetPreferredLanguage() string {
if x != nil {
return x.PreferredLanguage
}
return ""
}
func (x *QueryListTrustRegistriesRequest) GetResponseMaxSize() uint32 {
if x != nil {
return x.ResponseMaxSize
}
return 0
}
// QueryListTrustRegistriesResponse is the response type for the Query/ListTrustRegistries RPC method.
type QueryListTrustRegistriesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TrustRegistries []*TrustRegistryWithVersions `protobuf:"bytes,1,rep,name=trust_registries,json=trustRegistries,proto3" json:"trust_registries,omitempty"`
}
func (x *QueryListTrustRegistriesResponse) Reset() {
*x = QueryListTrustRegistriesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryListTrustRegistriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryListTrustRegistriesResponse) ProtoMessage() {}
// Deprecated: Use QueryListTrustRegistriesResponse.ProtoReflect.Descriptor instead.
func (*QueryListTrustRegistriesResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_query_proto_rawDescGZIP(), []int{5}
}
func (x *QueryListTrustRegistriesResponse) GetTrustRegistries() []*TrustRegistryWithVersions {
if x != nil {
return x.TrustRegistries
}
return nil
}
var File_veranablockchain_trustregistry_query_proto protoreflect.FileDescriptor
var file_veranablockchain_trustregistry_query_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74,
0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65,
0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70,
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74,
0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x13, 0x51, 0x75,
0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x26, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8,
0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x88, 0x01, 0x0a,
0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x13, 0x0a,
0x05, 0x74, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x72,
0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x67, 0x66, 0x5f,
0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69,
0x76, 0x65, 0x47, 0x66, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66,
0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c,
0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72,
0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0e, 0x74, 0x72, 0x75,
0x73, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x39, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x57, 0x69, 0x74, 0x68, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x74, 0x72,
0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x22, 0xa9, 0x02, 0x0a, 0x1f,
0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x38, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x63,
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x4b, 0x0a, 0x0e, 0x6d, 0x6f, 0x64,
0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8,
0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65,
0x5f, 0x67, 0x66, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c,
0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x66, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x2d, 0x0a, 0x12,
0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72,
0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x4d, 0x61, 0x78, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72,
0x79, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x10,
0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x32, 0xf0, 0x03, 0x0a, 0x05, 0x51, 0x75, 0x65,
0x72, 0x79, 0x12, 0x88, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x32, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x51,
0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x33, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d,
0x2f, 0x74, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xab, 0x01,
0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x12, 0x3c, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73,
0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x3d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x74, 0x72, 0x2f, 0x76, 0x31, 0x2f,
0x67, 0x65, 0x74, 0x2f, 0x7b, 0x74, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x13,
0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x69, 0x65, 0x73, 0x12, 0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72,
0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x54,
0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b,
0x2f, 0x74, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x96, 0x02, 0x0a, 0x22,
0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03,
0x56, 0x54, 0x58, 0xaa, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02, 0x2a, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x1f, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustregistry_query_proto_rawDescOnce sync.Once
file_veranablockchain_trustregistry_query_proto_rawDescData = file_veranablockchain_trustregistry_query_proto_rawDesc
)
func file_veranablockchain_trustregistry_query_proto_rawDescGZIP() []byte {
file_veranablockchain_trustregistry_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustregistry_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustregistry_query_proto_rawDescData)
})
return file_veranablockchain_trustregistry_query_proto_rawDescData
}
var file_veranablockchain_trustregistry_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_veranablockchain_trustregistry_query_proto_goTypes = []interface{}{
(*QueryParamsRequest)(nil), // 0: veranablockchain.trustregistry.QueryParamsRequest
(*QueryParamsResponse)(nil), // 1: veranablockchain.trustregistry.QueryParamsResponse
(*QueryGetTrustRegistryRequest)(nil), // 2: veranablockchain.trustregistry.QueryGetTrustRegistryRequest
(*QueryGetTrustRegistryResponse)(nil), // 3: veranablockchain.trustregistry.QueryGetTrustRegistryResponse
(*QueryListTrustRegistriesRequest)(nil), // 4: veranablockchain.trustregistry.QueryListTrustRegistriesRequest
(*QueryListTrustRegistriesResponse)(nil), // 5: veranablockchain.trustregistry.QueryListTrustRegistriesResponse
(*Params)(nil), // 6: veranablockchain.trustregistry.Params
(*TrustRegistryWithVersions)(nil), // 7: veranablockchain.trustregistry.TrustRegistryWithVersions
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
}
var file_veranablockchain_trustregistry_query_proto_depIdxs = []int32{
6, // 0: veranablockchain.trustregistry.QueryParamsResponse.params:type_name -> veranablockchain.trustregistry.Params
7, // 1: veranablockchain.trustregistry.QueryGetTrustRegistryResponse.trust_registry:type_name -> veranablockchain.trustregistry.TrustRegistryWithVersions
8, // 2: veranablockchain.trustregistry.QueryListTrustRegistriesRequest.modified_after:type_name -> google.protobuf.Timestamp
7, // 3: veranablockchain.trustregistry.QueryListTrustRegistriesResponse.trust_registries:type_name -> veranablockchain.trustregistry.TrustRegistryWithVersions
0, // 4: veranablockchain.trustregistry.Query.Params:input_type -> veranablockchain.trustregistry.QueryParamsRequest
2, // 5: veranablockchain.trustregistry.Query.GetTrustRegistry:input_type -> veranablockchain.trustregistry.QueryGetTrustRegistryRequest
4, // 6: veranablockchain.trustregistry.Query.ListTrustRegistries:input_type -> veranablockchain.trustregistry.QueryListTrustRegistriesRequest
1, // 7: veranablockchain.trustregistry.Query.Params:output_type -> veranablockchain.trustregistry.QueryParamsResponse
3, // 8: veranablockchain.trustregistry.Query.GetTrustRegistry:output_type -> veranablockchain.trustregistry.QueryGetTrustRegistryResponse
5, // 9: veranablockchain.trustregistry.Query.ListTrustRegistries:output_type -> veranablockchain.trustregistry.QueryListTrustRegistriesResponse
7, // [7:10] is the sub-list for method output_type
4, // [4:7] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustregistry_query_proto_init() }
func file_veranablockchain_trustregistry_query_proto_init() {
if File_veranablockchain_trustregistry_query_proto != nil {
return
}
file_veranablockchain_trustregistry_params_proto_init()
file_veranablockchain_trustregistry_types_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustregistry_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetTrustRegistryRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryGetTrustRegistryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListTrustRegistriesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryListTrustRegistriesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustregistry_query_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_trustregistry_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustregistry_query_proto_depIdxs,
MessageInfos: file_veranablockchain_trustregistry_query_proto_msgTypes,
}.Build()
File_veranablockchain_trustregistry_query_proto = out.File
file_veranablockchain_trustregistry_query_proto_rawDesc = nil
file_veranablockchain_trustregistry_query_proto_goTypes = nil
file_veranablockchain_trustregistry_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/trustregistry/query.proto
package trustregistry
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.trustregistry.Query/Params"
Query_GetTrustRegistry_FullMethodName = "/veranablockchain.trustregistry.Query/GetTrustRegistry"
Query_ListTrustRegistries_FullMethodName = "/veranablockchain.trustregistry.Query/ListTrustRegistries"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// GetTrustRegistry returns the trust registry information.
GetTrustRegistry(ctx context.Context, in *QueryGetTrustRegistryRequest, opts ...grpc.CallOption) (*QueryGetTrustRegistryResponse, error)
// ListTrustRegistries returns a list of Trust Registries
ListTrustRegistries(ctx context.Context, in *QueryListTrustRegistriesRequest, opts ...grpc.CallOption) (*QueryListTrustRegistriesResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetTrustRegistry(ctx context.Context, in *QueryGetTrustRegistryRequest, opts ...grpc.CallOption) (*QueryGetTrustRegistryResponse, error) {
out := new(QueryGetTrustRegistryResponse)
err := c.cc.Invoke(ctx, Query_GetTrustRegistry_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListTrustRegistries(ctx context.Context, in *QueryListTrustRegistriesRequest, opts ...grpc.CallOption) (*QueryListTrustRegistriesResponse, error) {
out := new(QueryListTrustRegistriesResponse)
err := c.cc.Invoke(ctx, Query_ListTrustRegistries_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// GetTrustRegistry returns the trust registry information.
GetTrustRegistry(context.Context, *QueryGetTrustRegistryRequest) (*QueryGetTrustRegistryResponse, error)
// ListTrustRegistries returns a list of Trust Registries
ListTrustRegistries(context.Context, *QueryListTrustRegistriesRequest) (*QueryListTrustRegistriesResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) GetTrustRegistry(context.Context, *QueryGetTrustRegistryRequest) (*QueryGetTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTrustRegistry not implemented")
}
func (UnimplementedQueryServer) ListTrustRegistries(context.Context, *QueryListTrustRegistriesRequest) (*QueryListTrustRegistriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTrustRegistries not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetTrustRegistryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_GetTrustRegistry_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetTrustRegistry(ctx, req.(*QueryGetTrustRegistryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListTrustRegistries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListTrustRegistriesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListTrustRegistries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_ListTrustRegistries_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListTrustRegistries(ctx, req.(*QueryListTrustRegistriesRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustregistry.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "GetTrustRegistry",
Handler: _Query_GetTrustRegistry_Handler,
},
{
MethodName: "ListTrustRegistries",
Handler: _Query_ListTrustRegistries_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustregistry/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustregistry
import (
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.trustregistry.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.trustregistry.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.trustregistry.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.trustregistry.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.trustregistry.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateTrustRegistry protoreflect.MessageDescriptor
fd_MsgCreateTrustRegistry_creator protoreflect.FieldDescriptor
fd_MsgCreateTrustRegistry_did protoreflect.FieldDescriptor
fd_MsgCreateTrustRegistry_aka protoreflect.FieldDescriptor
fd_MsgCreateTrustRegistry_language protoreflect.FieldDescriptor
fd_MsgCreateTrustRegistry_doc_url protoreflect.FieldDescriptor
fd_MsgCreateTrustRegistry_doc_digest_sri protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgCreateTrustRegistry = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgCreateTrustRegistry")
fd_MsgCreateTrustRegistry_creator = md_MsgCreateTrustRegistry.Fields().ByName("creator")
fd_MsgCreateTrustRegistry_did = md_MsgCreateTrustRegistry.Fields().ByName("did")
fd_MsgCreateTrustRegistry_aka = md_MsgCreateTrustRegistry.Fields().ByName("aka")
fd_MsgCreateTrustRegistry_language = md_MsgCreateTrustRegistry.Fields().ByName("language")
fd_MsgCreateTrustRegistry_doc_url = md_MsgCreateTrustRegistry.Fields().ByName("doc_url")
fd_MsgCreateTrustRegistry_doc_digest_sri = md_MsgCreateTrustRegistry.Fields().ByName("doc_digest_sri")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateTrustRegistry)(nil)
type fastReflection_MsgCreateTrustRegistry MsgCreateTrustRegistry
func (x *MsgCreateTrustRegistry) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateTrustRegistry)(x)
}
func (x *MsgCreateTrustRegistry) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateTrustRegistry_messageType fastReflection_MsgCreateTrustRegistry_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateTrustRegistry_messageType{}
type fastReflection_MsgCreateTrustRegistry_messageType struct{}
func (x fastReflection_MsgCreateTrustRegistry_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateTrustRegistry)(nil)
}
func (x fastReflection_MsgCreateTrustRegistry_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateTrustRegistry)
}
func (x fastReflection_MsgCreateTrustRegistry_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateTrustRegistry
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateTrustRegistry) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateTrustRegistry
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateTrustRegistry) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateTrustRegistry_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateTrustRegistry) New() protoreflect.Message {
return new(fastReflection_MsgCreateTrustRegistry)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateTrustRegistry) Interface() protoreflect.ProtoMessage {
return (*MsgCreateTrustRegistry)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateTrustRegistry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgCreateTrustRegistry_creator, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgCreateTrustRegistry_did, value) {
return
}
}
if x.Aka != "" {
value := protoreflect.ValueOfString(x.Aka)
if !f(fd_MsgCreateTrustRegistry_aka, value) {
return
}
}
if x.Language != "" {
value := protoreflect.ValueOfString(x.Language)
if !f(fd_MsgCreateTrustRegistry_language, value) {
return
}
}
if x.DocUrl != "" {
value := protoreflect.ValueOfString(x.DocUrl)
if !f(fd_MsgCreateTrustRegistry_doc_url, value) {
return
}
}
if x.DocDigestSri != "" {
value := protoreflect.ValueOfString(x.DocDigestSri)
if !f(fd_MsgCreateTrustRegistry_doc_digest_sri, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateTrustRegistry) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.creator":
return x.Creator != ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.did":
return x.Did != ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.aka":
return x.Aka != ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.language":
return x.Language != ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_url":
return x.DocUrl != ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_digest_sri":
return x.DocDigestSri != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistry) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.creator":
x.Creator = ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.did":
x.Did = ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.aka":
x.Aka = ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.language":
x.Language = ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_url":
x.DocUrl = ""
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_digest_sri":
x.DocDigestSri = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateTrustRegistry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.aka":
value := x.Aka
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.language":
value := x.Language
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_url":
value := x.DocUrl
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_digest_sri":
value := x.DocDigestSri
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistry does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.did":
x.Did = value.Interface().(string)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.aka":
x.Aka = value.Interface().(string)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.language":
x.Language = value.Interface().(string)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_url":
x.DocUrl = value.Interface().(string)
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_digest_sri":
x.DocDigestSri = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustregistry.MsgCreateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.did":
panic(fmt.Errorf("field did of message veranablockchain.trustregistry.MsgCreateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.aka":
panic(fmt.Errorf("field aka of message veranablockchain.trustregistry.MsgCreateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.language":
panic(fmt.Errorf("field language of message veranablockchain.trustregistry.MsgCreateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_url":
panic(fmt.Errorf("field doc_url of message veranablockchain.trustregistry.MsgCreateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_digest_sri":
panic(fmt.Errorf("field doc_digest_sri of message veranablockchain.trustregistry.MsgCreateTrustRegistry is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateTrustRegistry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.did":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.aka":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.language":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_url":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgCreateTrustRegistry.doc_digest_sri":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateTrustRegistry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgCreateTrustRegistry", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateTrustRegistry) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistry) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateTrustRegistry) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateTrustRegistry) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateTrustRegistry)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Aka)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Language)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.DocUrl)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.DocDigestSri)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateTrustRegistry)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.DocDigestSri) > 0 {
i -= len(x.DocDigestSri)
copy(dAtA[i:], x.DocDigestSri)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DocDigestSri)))
i--
dAtA[i] = 0x32
}
if len(x.DocUrl) > 0 {
i -= len(x.DocUrl)
copy(dAtA[i:], x.DocUrl)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DocUrl)))
i--
dAtA[i] = 0x2a
}
if len(x.Language) > 0 {
i -= len(x.Language)
copy(dAtA[i:], x.Language)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Language)))
i--
dAtA[i] = 0x22
}
if len(x.Aka) > 0 {
i -= len(x.Aka)
copy(dAtA[i:], x.Aka)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Aka)))
i--
dAtA[i] = 0x1a
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateTrustRegistry)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateTrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateTrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DocUrl", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DocUrl = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DocDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DocDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgCreateTrustRegistryResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgCreateTrustRegistryResponse = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgCreateTrustRegistryResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgCreateTrustRegistryResponse)(nil)
type fastReflection_MsgCreateTrustRegistryResponse MsgCreateTrustRegistryResponse
func (x *MsgCreateTrustRegistryResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgCreateTrustRegistryResponse)(x)
}
func (x *MsgCreateTrustRegistryResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgCreateTrustRegistryResponse_messageType fastReflection_MsgCreateTrustRegistryResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgCreateTrustRegistryResponse_messageType{}
type fastReflection_MsgCreateTrustRegistryResponse_messageType struct{}
func (x fastReflection_MsgCreateTrustRegistryResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgCreateTrustRegistryResponse)(nil)
}
func (x fastReflection_MsgCreateTrustRegistryResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgCreateTrustRegistryResponse)
}
func (x fastReflection_MsgCreateTrustRegistryResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateTrustRegistryResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgCreateTrustRegistryResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgCreateTrustRegistryResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgCreateTrustRegistryResponse) New() protoreflect.Message {
return new(fastReflection_MsgCreateTrustRegistryResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Interface() protoreflect.ProtoMessage {
return (*MsgCreateTrustRegistryResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistryResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgCreateTrustRegistryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgCreateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgCreateTrustRegistryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgCreateTrustRegistryResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgCreateTrustRegistryResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgCreateTrustRegistryResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgCreateTrustRegistryResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgCreateTrustRegistryResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgCreateTrustRegistryResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateTrustRegistryResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgCreateTrustRegistryResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgAddGovernanceFrameworkDocument protoreflect.MessageDescriptor
fd_MsgAddGovernanceFrameworkDocument_creator protoreflect.FieldDescriptor
fd_MsgAddGovernanceFrameworkDocument_id protoreflect.FieldDescriptor
fd_MsgAddGovernanceFrameworkDocument_doc_language protoreflect.FieldDescriptor
fd_MsgAddGovernanceFrameworkDocument_doc_url protoreflect.FieldDescriptor
fd_MsgAddGovernanceFrameworkDocument_doc_digest_sri protoreflect.FieldDescriptor
fd_MsgAddGovernanceFrameworkDocument_version protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgAddGovernanceFrameworkDocument = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgAddGovernanceFrameworkDocument")
fd_MsgAddGovernanceFrameworkDocument_creator = md_MsgAddGovernanceFrameworkDocument.Fields().ByName("creator")
fd_MsgAddGovernanceFrameworkDocument_id = md_MsgAddGovernanceFrameworkDocument.Fields().ByName("id")
fd_MsgAddGovernanceFrameworkDocument_doc_language = md_MsgAddGovernanceFrameworkDocument.Fields().ByName("doc_language")
fd_MsgAddGovernanceFrameworkDocument_doc_url = md_MsgAddGovernanceFrameworkDocument.Fields().ByName("doc_url")
fd_MsgAddGovernanceFrameworkDocument_doc_digest_sri = md_MsgAddGovernanceFrameworkDocument.Fields().ByName("doc_digest_sri")
fd_MsgAddGovernanceFrameworkDocument_version = md_MsgAddGovernanceFrameworkDocument.Fields().ByName("version")
}
var _ protoreflect.Message = (*fastReflection_MsgAddGovernanceFrameworkDocument)(nil)
type fastReflection_MsgAddGovernanceFrameworkDocument MsgAddGovernanceFrameworkDocument
func (x *MsgAddGovernanceFrameworkDocument) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgAddGovernanceFrameworkDocument)(x)
}
func (x *MsgAddGovernanceFrameworkDocument) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgAddGovernanceFrameworkDocument_messageType fastReflection_MsgAddGovernanceFrameworkDocument_messageType
var _ protoreflect.MessageType = fastReflection_MsgAddGovernanceFrameworkDocument_messageType{}
type fastReflection_MsgAddGovernanceFrameworkDocument_messageType struct{}
func (x fastReflection_MsgAddGovernanceFrameworkDocument_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgAddGovernanceFrameworkDocument)(nil)
}
func (x fastReflection_MsgAddGovernanceFrameworkDocument_messageType) New() protoreflect.Message {
return new(fastReflection_MsgAddGovernanceFrameworkDocument)
}
func (x fastReflection_MsgAddGovernanceFrameworkDocument_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddGovernanceFrameworkDocument
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddGovernanceFrameworkDocument
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Type() protoreflect.MessageType {
return _fastReflection_MsgAddGovernanceFrameworkDocument_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) New() protoreflect.Message {
return new(fastReflection_MsgAddGovernanceFrameworkDocument)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Interface() protoreflect.ProtoMessage {
return (*MsgAddGovernanceFrameworkDocument)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgAddGovernanceFrameworkDocument_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgAddGovernanceFrameworkDocument_id, value) {
return
}
}
if x.DocLanguage != "" {
value := protoreflect.ValueOfString(x.DocLanguage)
if !f(fd_MsgAddGovernanceFrameworkDocument_doc_language, value) {
return
}
}
if x.DocUrl != "" {
value := protoreflect.ValueOfString(x.DocUrl)
if !f(fd_MsgAddGovernanceFrameworkDocument_doc_url, value) {
return
}
}
if x.DocDigestSri != "" {
value := protoreflect.ValueOfString(x.DocDigestSri)
if !f(fd_MsgAddGovernanceFrameworkDocument_doc_digest_sri, value) {
return
}
}
if x.Version != int32(0) {
value := protoreflect.ValueOfInt32(x.Version)
if !f(fd_MsgAddGovernanceFrameworkDocument_version, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.creator":
return x.Creator != ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_language":
return x.DocLanguage != ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_url":
return x.DocUrl != ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_digest_sri":
return x.DocDigestSri != ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.version":
return x.Version != int32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.creator":
x.Creator = ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_language":
x.DocLanguage = ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_url":
x.DocUrl = ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_digest_sri":
x.DocDigestSri = ""
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.version":
x.Version = int32(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_language":
value := x.DocLanguage
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_url":
value := x.DocUrl
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_digest_sri":
value := x.DocDigestSri
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.version":
value := x.Version
return protoreflect.ValueOfInt32(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_language":
x.DocLanguage = value.Interface().(string)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_url":
x.DocUrl = value.Interface().(string)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_digest_sri":
x.DocDigestSri = value.Interface().(string)
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.version":
x.Version = int32(value.Int())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_language":
panic(fmt.Errorf("field doc_language of message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_url":
panic(fmt.Errorf("field doc_url of message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_digest_sri":
panic(fmt.Errorf("field doc_digest_sri of message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.version":
panic(fmt.Errorf("field version of message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_language":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_url":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.doc_digest_sri":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument.version":
return protoreflect.ValueOfInt32(int32(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgAddGovernanceFrameworkDocument) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgAddGovernanceFrameworkDocument)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
l = len(x.DocLanguage)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.DocUrl)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.DocDigestSri)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Version != 0 {
n += 1 + runtime.Sov(uint64(x.Version))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgAddGovernanceFrameworkDocument)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Version != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Version))
i--
dAtA[i] = 0x30
}
if len(x.DocDigestSri) > 0 {
i -= len(x.DocDigestSri)
copy(dAtA[i:], x.DocDigestSri)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DocDigestSri)))
i--
dAtA[i] = 0x2a
}
if len(x.DocUrl) > 0 {
i -= len(x.DocUrl)
copy(dAtA[i:], x.DocUrl)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DocUrl)))
i--
dAtA[i] = 0x22
}
if len(x.DocLanguage) > 0 {
i -= len(x.DocLanguage)
copy(dAtA[i:], x.DocLanguage)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DocLanguage)))
i--
dAtA[i] = 0x1a
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgAddGovernanceFrameworkDocument)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddGovernanceFrameworkDocument: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddGovernanceFrameworkDocument: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DocLanguage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DocLanguage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DocUrl", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DocUrl = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DocDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DocDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
x.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Version |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgAddGovernanceFrameworkDocumentResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgAddGovernanceFrameworkDocumentResponse = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgAddGovernanceFrameworkDocumentResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgAddGovernanceFrameworkDocumentResponse)(nil)
type fastReflection_MsgAddGovernanceFrameworkDocumentResponse MsgAddGovernanceFrameworkDocumentResponse
func (x *MsgAddGovernanceFrameworkDocumentResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgAddGovernanceFrameworkDocumentResponse)(x)
}
func (x *MsgAddGovernanceFrameworkDocumentResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType{}
type fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType struct{}
func (x fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgAddGovernanceFrameworkDocumentResponse)(nil)
}
func (x fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgAddGovernanceFrameworkDocumentResponse)
}
func (x fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddGovernanceFrameworkDocumentResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgAddGovernanceFrameworkDocumentResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgAddGovernanceFrameworkDocumentResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) New() protoreflect.Message {
return new(fastReflection_MsgAddGovernanceFrameworkDocumentResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Interface() protoreflect.ProtoMessage {
return (*MsgAddGovernanceFrameworkDocumentResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgAddGovernanceFrameworkDocumentResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgAddGovernanceFrameworkDocumentResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgAddGovernanceFrameworkDocumentResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgAddGovernanceFrameworkDocumentResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddGovernanceFrameworkDocumentResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddGovernanceFrameworkDocumentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgIncreaseActiveGovernanceFrameworkVersion protoreflect.MessageDescriptor
fd_MsgIncreaseActiveGovernanceFrameworkVersion_creator protoreflect.FieldDescriptor
fd_MsgIncreaseActiveGovernanceFrameworkVersion_id protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgIncreaseActiveGovernanceFrameworkVersion = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgIncreaseActiveGovernanceFrameworkVersion")
fd_MsgIncreaseActiveGovernanceFrameworkVersion_creator = md_MsgIncreaseActiveGovernanceFrameworkVersion.Fields().ByName("creator")
fd_MsgIncreaseActiveGovernanceFrameworkVersion_id = md_MsgIncreaseActiveGovernanceFrameworkVersion.Fields().ByName("id")
}
var _ protoreflect.Message = (*fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion)(nil)
type fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion MsgIncreaseActiveGovernanceFrameworkVersion
func (x *MsgIncreaseActiveGovernanceFrameworkVersion) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion)(x)
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersion) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType
var _ protoreflect.MessageType = fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType{}
type fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType struct{}
func (x fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion)(nil)
}
func (x fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType) New() protoreflect.Message {
return new(fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion)
}
func (x fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgIncreaseActiveGovernanceFrameworkVersion
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Descriptor() protoreflect.MessageDescriptor {
return md_MsgIncreaseActiveGovernanceFrameworkVersion
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Type() protoreflect.MessageType {
return _fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) New() protoreflect.Message {
return new(fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Interface() protoreflect.ProtoMessage {
return (*MsgIncreaseActiveGovernanceFrameworkVersion)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgIncreaseActiveGovernanceFrameworkVersion_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgIncreaseActiveGovernanceFrameworkVersion_id, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.creator":
return x.Creator != ""
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.id":
return x.Id != uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.creator":
x.Creator = ""
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.id":
x.Id = uint64(0)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.id":
x.Id = value.Uint()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion is not mutable"))
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion.id":
return protoreflect.ValueOfUint64(uint64(0))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersion) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgIncreaseActiveGovernanceFrameworkVersion)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgIncreaseActiveGovernanceFrameworkVersion)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgIncreaseActiveGovernanceFrameworkVersion)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersion: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersion: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgIncreaseActiveGovernanceFrameworkVersionResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgIncreaseActiveGovernanceFrameworkVersionResponse = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgIncreaseActiveGovernanceFrameworkVersionResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse)(nil)
type fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse MsgIncreaseActiveGovernanceFrameworkVersionResponse
func (x *MsgIncreaseActiveGovernanceFrameworkVersionResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse)(x)
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersionResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType{}
type fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType struct{}
func (x fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse)(nil)
}
func (x fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse)
}
func (x fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgIncreaseActiveGovernanceFrameworkVersionResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgIncreaseActiveGovernanceFrameworkVersionResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) New() protoreflect.Message {
return new(fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Interface() protoreflect.ProtoMessage {
return (*MsgIncreaseActiveGovernanceFrameworkVersionResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgIncreaseActiveGovernanceFrameworkVersionResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgIncreaseActiveGovernanceFrameworkVersionResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgIncreaseActiveGovernanceFrameworkVersionResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgIncreaseActiveGovernanceFrameworkVersionResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateTrustRegistry protoreflect.MessageDescriptor
fd_MsgUpdateTrustRegistry_creator protoreflect.FieldDescriptor
fd_MsgUpdateTrustRegistry_id protoreflect.FieldDescriptor
fd_MsgUpdateTrustRegistry_did protoreflect.FieldDescriptor
fd_MsgUpdateTrustRegistry_aka protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgUpdateTrustRegistry = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgUpdateTrustRegistry")
fd_MsgUpdateTrustRegistry_creator = md_MsgUpdateTrustRegistry.Fields().ByName("creator")
fd_MsgUpdateTrustRegistry_id = md_MsgUpdateTrustRegistry.Fields().ByName("id")
fd_MsgUpdateTrustRegistry_did = md_MsgUpdateTrustRegistry.Fields().ByName("did")
fd_MsgUpdateTrustRegistry_aka = md_MsgUpdateTrustRegistry.Fields().ByName("aka")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateTrustRegistry)(nil)
type fastReflection_MsgUpdateTrustRegistry MsgUpdateTrustRegistry
func (x *MsgUpdateTrustRegistry) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateTrustRegistry)(x)
}
func (x *MsgUpdateTrustRegistry) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateTrustRegistry_messageType fastReflection_MsgUpdateTrustRegistry_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateTrustRegistry_messageType{}
type fastReflection_MsgUpdateTrustRegistry_messageType struct{}
func (x fastReflection_MsgUpdateTrustRegistry_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateTrustRegistry)(nil)
}
func (x fastReflection_MsgUpdateTrustRegistry_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateTrustRegistry)
}
func (x fastReflection_MsgUpdateTrustRegistry_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateTrustRegistry
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateTrustRegistry) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateTrustRegistry
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateTrustRegistry) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateTrustRegistry_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateTrustRegistry) New() protoreflect.Message {
return new(fastReflection_MsgUpdateTrustRegistry)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateTrustRegistry) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateTrustRegistry)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateTrustRegistry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgUpdateTrustRegistry_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgUpdateTrustRegistry_id, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_MsgUpdateTrustRegistry_did, value) {
return
}
}
if x.Aka != "" {
value := protoreflect.ValueOfString(x.Aka)
if !f(fd_MsgUpdateTrustRegistry_aka, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateTrustRegistry) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.creator":
return x.Creator != ""
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.did":
return x.Did != ""
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.aka":
return x.Aka != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistry) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.creator":
x.Creator = ""
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.did":
x.Did = ""
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.aka":
x.Aka = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateTrustRegistry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.aka":
value := x.Aka
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistry does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.did":
x.Did = value.Interface().(string)
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.aka":
x.Aka = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustregistry.MsgUpdateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.MsgUpdateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.did":
panic(fmt.Errorf("field did of message veranablockchain.trustregistry.MsgUpdateTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.aka":
panic(fmt.Errorf("field aka of message veranablockchain.trustregistry.MsgUpdateTrustRegistry is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateTrustRegistry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.did":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgUpdateTrustRegistry.aka":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistry does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateTrustRegistry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgUpdateTrustRegistry", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateTrustRegistry) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistry) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateTrustRegistry) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateTrustRegistry) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateTrustRegistry)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Aka)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateTrustRegistry)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Aka) > 0 {
i -= len(x.Aka)
copy(dAtA[i:], x.Aka)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Aka)))
i--
dAtA[i] = 0x22
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x1a
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateTrustRegistry)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateTrustRegistryResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgUpdateTrustRegistryResponse = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgUpdateTrustRegistryResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateTrustRegistryResponse)(nil)
type fastReflection_MsgUpdateTrustRegistryResponse MsgUpdateTrustRegistryResponse
func (x *MsgUpdateTrustRegistryResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateTrustRegistryResponse)(x)
}
func (x *MsgUpdateTrustRegistryResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateTrustRegistryResponse_messageType fastReflection_MsgUpdateTrustRegistryResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateTrustRegistryResponse_messageType{}
type fastReflection_MsgUpdateTrustRegistryResponse_messageType struct{}
func (x fastReflection_MsgUpdateTrustRegistryResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateTrustRegistryResponse)(nil)
}
func (x fastReflection_MsgUpdateTrustRegistryResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateTrustRegistryResponse)
}
func (x fastReflection_MsgUpdateTrustRegistryResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateTrustRegistryResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateTrustRegistryResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateTrustRegistryResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateTrustRegistryResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateTrustRegistryResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateTrustRegistryResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateTrustRegistryResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateTrustRegistryResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateTrustRegistryResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgArchiveTrustRegistry protoreflect.MessageDescriptor
fd_MsgArchiveTrustRegistry_creator protoreflect.FieldDescriptor
fd_MsgArchiveTrustRegistry_id protoreflect.FieldDescriptor
fd_MsgArchiveTrustRegistry_archive protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgArchiveTrustRegistry = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgArchiveTrustRegistry")
fd_MsgArchiveTrustRegistry_creator = md_MsgArchiveTrustRegistry.Fields().ByName("creator")
fd_MsgArchiveTrustRegistry_id = md_MsgArchiveTrustRegistry.Fields().ByName("id")
fd_MsgArchiveTrustRegistry_archive = md_MsgArchiveTrustRegistry.Fields().ByName("archive")
}
var _ protoreflect.Message = (*fastReflection_MsgArchiveTrustRegistry)(nil)
type fastReflection_MsgArchiveTrustRegistry MsgArchiveTrustRegistry
func (x *MsgArchiveTrustRegistry) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgArchiveTrustRegistry)(x)
}
func (x *MsgArchiveTrustRegistry) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgArchiveTrustRegistry_messageType fastReflection_MsgArchiveTrustRegistry_messageType
var _ protoreflect.MessageType = fastReflection_MsgArchiveTrustRegistry_messageType{}
type fastReflection_MsgArchiveTrustRegistry_messageType struct{}
func (x fastReflection_MsgArchiveTrustRegistry_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgArchiveTrustRegistry)(nil)
}
func (x fastReflection_MsgArchiveTrustRegistry_messageType) New() protoreflect.Message {
return new(fastReflection_MsgArchiveTrustRegistry)
}
func (x fastReflection_MsgArchiveTrustRegistry_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveTrustRegistry
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgArchiveTrustRegistry) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveTrustRegistry
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgArchiveTrustRegistry) Type() protoreflect.MessageType {
return _fastReflection_MsgArchiveTrustRegistry_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgArchiveTrustRegistry) New() protoreflect.Message {
return new(fastReflection_MsgArchiveTrustRegistry)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgArchiveTrustRegistry) Interface() protoreflect.ProtoMessage {
return (*MsgArchiveTrustRegistry)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgArchiveTrustRegistry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Creator != "" {
value := protoreflect.ValueOfString(x.Creator)
if !f(fd_MsgArchiveTrustRegistry_creator, value) {
return
}
}
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_MsgArchiveTrustRegistry_id, value) {
return
}
}
if x.Archive != false {
value := protoreflect.ValueOfBool(x.Archive)
if !f(fd_MsgArchiveTrustRegistry_archive, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgArchiveTrustRegistry) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.creator":
return x.Creator != ""
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.archive":
return x.Archive != false
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistry) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.creator":
x.Creator = ""
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.archive":
x.Archive = false
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgArchiveTrustRegistry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.creator":
value := x.Creator
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.archive":
value := x.Archive
return protoreflect.ValueOfBool(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistry does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.creator":
x.Creator = value.Interface().(string)
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.archive":
x.Archive = value.Bool()
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistry does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.creator":
panic(fmt.Errorf("field creator of message veranablockchain.trustregistry.MsgArchiveTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.MsgArchiveTrustRegistry is not mutable"))
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.archive":
panic(fmt.Errorf("field archive of message veranablockchain.trustregistry.MsgArchiveTrustRegistry is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistry does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgArchiveTrustRegistry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.creator":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.MsgArchiveTrustRegistry.archive":
return protoreflect.ValueOfBool(false)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistry does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgArchiveTrustRegistry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgArchiveTrustRegistry", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgArchiveTrustRegistry) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistry) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgArchiveTrustRegistry) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgArchiveTrustRegistry) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgArchiveTrustRegistry)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Creator)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.Archive {
n += 2
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveTrustRegistry)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Archive {
i--
if x.Archive {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x10
}
if len(x.Creator) > 0 {
i -= len(x.Creator)
copy(dAtA[i:], x.Creator)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveTrustRegistry)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveTrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveTrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Archive", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
x.Archive = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgArchiveTrustRegistryResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_trustregistry_tx_proto_init()
md_MsgArchiveTrustRegistryResponse = File_veranablockchain_trustregistry_tx_proto.Messages().ByName("MsgArchiveTrustRegistryResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgArchiveTrustRegistryResponse)(nil)
type fastReflection_MsgArchiveTrustRegistryResponse MsgArchiveTrustRegistryResponse
func (x *MsgArchiveTrustRegistryResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgArchiveTrustRegistryResponse)(x)
}
func (x *MsgArchiveTrustRegistryResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgArchiveTrustRegistryResponse_messageType fastReflection_MsgArchiveTrustRegistryResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgArchiveTrustRegistryResponse_messageType{}
type fastReflection_MsgArchiveTrustRegistryResponse_messageType struct{}
func (x fastReflection_MsgArchiveTrustRegistryResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgArchiveTrustRegistryResponse)(nil)
}
func (x fastReflection_MsgArchiveTrustRegistryResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgArchiveTrustRegistryResponse)
}
func (x fastReflection_MsgArchiveTrustRegistryResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveTrustRegistryResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgArchiveTrustRegistryResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgArchiveTrustRegistryResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) New() protoreflect.Message {
return new(fastReflection_MsgArchiveTrustRegistryResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Interface() protoreflect.ProtoMessage {
return (*MsgArchiveTrustRegistryResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgArchiveTrustRegistryResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgArchiveTrustRegistryResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveTrustRegistryResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgArchiveTrustRegistryResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgArchiveTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustregistry/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{1}
}
// MsgCreateTrustRegistry defines the Msg/CreateTrustRegistry request type.
type MsgCreateTrustRegistry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Aka string `protobuf:"bytes,3,opt,name=aka,proto3" json:"aka,omitempty"`
Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
DocUrl string `protobuf:"bytes,5,opt,name=doc_url,json=docUrl,proto3" json:"doc_url,omitempty"`
DocDigestSri string `protobuf:"bytes,6,opt,name=doc_digest_sri,json=docDigestSri,proto3" json:"doc_digest_sri,omitempty"`
}
func (x *MsgCreateTrustRegistry) Reset() {
*x = MsgCreateTrustRegistry{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateTrustRegistry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateTrustRegistry) ProtoMessage() {}
// Deprecated: Use MsgCreateTrustRegistry.ProtoReflect.Descriptor instead.
func (*MsgCreateTrustRegistry) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{2}
}
func (x *MsgCreateTrustRegistry) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgCreateTrustRegistry) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *MsgCreateTrustRegistry) GetAka() string {
if x != nil {
return x.Aka
}
return ""
}
func (x *MsgCreateTrustRegistry) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *MsgCreateTrustRegistry) GetDocUrl() string {
if x != nil {
return x.DocUrl
}
return ""
}
func (x *MsgCreateTrustRegistry) GetDocDigestSri() string {
if x != nil {
return x.DocDigestSri
}
return ""
}
// MsgCreateTrustRegistryResponse defines the Msg/CreateTrustRegistry response type.
type MsgCreateTrustRegistryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgCreateTrustRegistryResponse) Reset() {
*x = MsgCreateTrustRegistryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgCreateTrustRegistryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgCreateTrustRegistryResponse) ProtoMessage() {}
// Deprecated: Use MsgCreateTrustRegistryResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateTrustRegistryResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{3}
}
// MsgAddGovernanceFrameworkDocument defines the Msg/AddGovernanceFrameworkDocument request type.
type MsgAddGovernanceFrameworkDocument struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
DocLanguage string `protobuf:"bytes,3,opt,name=doc_language,json=docLanguage,proto3" json:"doc_language,omitempty"`
DocUrl string `protobuf:"bytes,4,opt,name=doc_url,json=docUrl,proto3" json:"doc_url,omitempty"`
DocDigestSri string `protobuf:"bytes,5,opt,name=doc_digest_sri,json=docDigestSri,proto3" json:"doc_digest_sri,omitempty"`
Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
}
func (x *MsgAddGovernanceFrameworkDocument) Reset() {
*x = MsgAddGovernanceFrameworkDocument{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgAddGovernanceFrameworkDocument) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgAddGovernanceFrameworkDocument) ProtoMessage() {}
// Deprecated: Use MsgAddGovernanceFrameworkDocument.ProtoReflect.Descriptor instead.
func (*MsgAddGovernanceFrameworkDocument) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{4}
}
func (x *MsgAddGovernanceFrameworkDocument) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgAddGovernanceFrameworkDocument) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgAddGovernanceFrameworkDocument) GetDocLanguage() string {
if x != nil {
return x.DocLanguage
}
return ""
}
func (x *MsgAddGovernanceFrameworkDocument) GetDocUrl() string {
if x != nil {
return x.DocUrl
}
return ""
}
func (x *MsgAddGovernanceFrameworkDocument) GetDocDigestSri() string {
if x != nil {
return x.DocDigestSri
}
return ""
}
func (x *MsgAddGovernanceFrameworkDocument) GetVersion() int32 {
if x != nil {
return x.Version
}
return 0
}
// MsgAddGovernanceFrameworkDocumentResponse defines the Msg/AddGovernanceFrameworkDocument response type.
type MsgAddGovernanceFrameworkDocumentResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgAddGovernanceFrameworkDocumentResponse) Reset() {
*x = MsgAddGovernanceFrameworkDocumentResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgAddGovernanceFrameworkDocumentResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgAddGovernanceFrameworkDocumentResponse) ProtoMessage() {}
// Deprecated: Use MsgAddGovernanceFrameworkDocumentResponse.ProtoReflect.Descriptor instead.
func (*MsgAddGovernanceFrameworkDocumentResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{5}
}
// MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion request type.
type MsgIncreaseActiveGovernanceFrameworkVersion struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // Changed from tr_id to id
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersion) Reset() {
*x = MsgIncreaseActiveGovernanceFrameworkVersion{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgIncreaseActiveGovernanceFrameworkVersion) ProtoMessage() {}
// Deprecated: Use MsgIncreaseActiveGovernanceFrameworkVersion.ProtoReflect.Descriptor instead.
func (*MsgIncreaseActiveGovernanceFrameworkVersion) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{6}
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersion) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersion) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
// MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion response type.
type MsgIncreaseActiveGovernanceFrameworkVersionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersionResponse) Reset() {
*x = MsgIncreaseActiveGovernanceFrameworkVersionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgIncreaseActiveGovernanceFrameworkVersionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgIncreaseActiveGovernanceFrameworkVersionResponse) ProtoMessage() {}
// Deprecated: Use MsgIncreaseActiveGovernanceFrameworkVersionResponse.ProtoReflect.Descriptor instead.
func (*MsgIncreaseActiveGovernanceFrameworkVersionResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{7}
}
// MsgUpdateTrustRegistry defines the Msg/UpdateTrustRegistry request type.
type MsgUpdateTrustRegistry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"`
Aka string `protobuf:"bytes,4,opt,name=aka,proto3" json:"aka,omitempty"`
}
func (x *MsgUpdateTrustRegistry) Reset() {
*x = MsgUpdateTrustRegistry{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateTrustRegistry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateTrustRegistry) ProtoMessage() {}
// Deprecated: Use MsgUpdateTrustRegistry.ProtoReflect.Descriptor instead.
func (*MsgUpdateTrustRegistry) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{8}
}
func (x *MsgUpdateTrustRegistry) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgUpdateTrustRegistry) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgUpdateTrustRegistry) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *MsgUpdateTrustRegistry) GetAka() string {
if x != nil {
return x.Aka
}
return ""
}
// MsgUpdateTrustRegistryResponse defines the Msg/UpdateTrustRegistry response type.
type MsgUpdateTrustRegistryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateTrustRegistryResponse) Reset() {
*x = MsgUpdateTrustRegistryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateTrustRegistryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateTrustRegistryResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateTrustRegistryResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateTrustRegistryResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{9}
}
// MsgArchiveTrustRegistry defines the Msg/ArchiveTrustRegistry request type.
type MsgArchiveTrustRegistry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Archive bool `protobuf:"varint,3,opt,name=archive,proto3" json:"archive,omitempty"`
}
func (x *MsgArchiveTrustRegistry) Reset() {
*x = MsgArchiveTrustRegistry{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgArchiveTrustRegistry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgArchiveTrustRegistry) ProtoMessage() {}
// Deprecated: Use MsgArchiveTrustRegistry.ProtoReflect.Descriptor instead.
func (*MsgArchiveTrustRegistry) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{10}
}
func (x *MsgArchiveTrustRegistry) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *MsgArchiveTrustRegistry) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *MsgArchiveTrustRegistry) GetArchive() bool {
if x != nil {
return x.Archive
}
return false
}
// MsgArchiveTrustRegistryResponse defines the Msg/ArchiveTrustRegistry response type.
type MsgArchiveTrustRegistryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgArchiveTrustRegistryResponse) Reset() {
*x = MsgArchiveTrustRegistryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_tx_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgArchiveTrustRegistryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgArchiveTrustRegistryResponse) ProtoMessage() {}
// Deprecated: Use MsgArchiveTrustRegistryResponse.ProtoReflect.Descriptor instead.
func (*MsgArchiveTrustRegistryResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_tx_proto_rawDescGZIP(), []int{11}
}
var File_veranablockchain_trustregistry_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_trustregistry_tx_proto_rawDesc = []byte{
0x0a, 0x27, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73,
0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f,
0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f,
0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14,
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74,
0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12,
0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x26, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0,
0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x43, 0x82, 0xe7, 0xb0, 0x2a,
0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x30, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x78, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22,
0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdf, 0x01, 0x0a, 0x16, 0x4d,
0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d,
0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,
0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x03, 0x61,
0x6b, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x03,
0x61, 0x6b, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12,
0x17, 0x0a, 0x07, 0x64, 0x6f, 0x63, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x64, 0x6f, 0x63, 0x55, 0x72, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x6f, 0x63, 0x5f,
0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x72, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0c, 0x64, 0x6f, 0x63, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x53, 0x72, 0x69, 0x3a, 0x0c,
0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x20, 0x0a, 0x1e,
0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf1,
0x01, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61,
0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75,
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52,
0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x63, 0x5f,
0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
0x64, 0x6f, 0x63, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x64,
0x6f, 0x63, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f,
0x63, 0x55, 0x72, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x6f, 0x63, 0x5f, 0x64, 0x69, 0x67, 0x65,
0x73, 0x74, 0x5f, 0x73, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x6f,
0x63, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x53, 0x72, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x22, 0x2b, 0x0a, 0x29, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x76, 0x65,
0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x44,
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x7f, 0x0a, 0x2b, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63,
0x74, 0x69, 0x76, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72,
0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32,
0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72,
0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
0x69, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x22, 0x35, 0x0a, 0x33, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x41,
0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46,
0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0x12, 0x32, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63,
0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x03, 0x61, 0x6b, 0x61, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x03, 0x61, 0x6b, 0x61,
0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x20,
0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x85, 0x01, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54,
0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x32, 0x0a, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2,
0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64,
0x12, 0x18, 0x0a, 0x07, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x08, 0x52, 0x07, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a,
0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x41,
0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb9, 0x07, 0x0a, 0x03,
0x4d, 0x73, 0x67, 0x12, 0x78, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x12, 0x2f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x1a, 0x37, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8d, 0x01,
0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x36, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x3e, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d,
0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xae, 0x01,
0x0a, 0x1e, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46,
0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
0x12, 0x41, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e,
0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d,
0x65, 0x6e, 0x74, 0x1a, 0x49, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69,
0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x47, 0x6f, 0x76, 0x65, 0x72,
0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f,
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0xcc,
0x01, 0x0a, 0x28, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76,
0x65, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65,
0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74,
0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67,
0x49, 0x6e, 0x63, 0x72, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x6f,
0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72,
0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x53, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73,
0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x63,
0x72, 0x65, 0x61, 0x73, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x47, 0x6f, 0x76, 0x65, 0x72,
0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8d, 0x01,
0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x36, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x3e, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d,
0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67,
0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x90, 0x01,
0x0a, 0x14, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x37, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x72, 0x63, 0x68, 0x69,
0x76, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a,
0x3f, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x4d, 0x73, 0x67, 0x41, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x72, 0x75, 0x73, 0x74,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x93, 0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x07,
0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62,
0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58, 0xaa, 0x02, 0x1e, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x1e,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02,
0x2a, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x5c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a,
0x54, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_trustregistry_tx_proto_rawDescOnce sync.Once
file_veranablockchain_trustregistry_tx_proto_rawDescData = file_veranablockchain_trustregistry_tx_proto_rawDesc
)
func file_veranablockchain_trustregistry_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_trustregistry_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustregistry_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustregistry_tx_proto_rawDescData)
})
return file_veranablockchain_trustregistry_tx_proto_rawDescData
}
var file_veranablockchain_trustregistry_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_veranablockchain_trustregistry_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.trustregistry.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.trustregistry.MsgUpdateParamsResponse
(*MsgCreateTrustRegistry)(nil), // 2: veranablockchain.trustregistry.MsgCreateTrustRegistry
(*MsgCreateTrustRegistryResponse)(nil), // 3: veranablockchain.trustregistry.MsgCreateTrustRegistryResponse
(*MsgAddGovernanceFrameworkDocument)(nil), // 4: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument
(*MsgAddGovernanceFrameworkDocumentResponse)(nil), // 5: veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse
(*MsgIncreaseActiveGovernanceFrameworkVersion)(nil), // 6: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion
(*MsgIncreaseActiveGovernanceFrameworkVersionResponse)(nil), // 7: veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse
(*MsgUpdateTrustRegistry)(nil), // 8: veranablockchain.trustregistry.MsgUpdateTrustRegistry
(*MsgUpdateTrustRegistryResponse)(nil), // 9: veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse
(*MsgArchiveTrustRegistry)(nil), // 10: veranablockchain.trustregistry.MsgArchiveTrustRegistry
(*MsgArchiveTrustRegistryResponse)(nil), // 11: veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse
(*Params)(nil), // 12: veranablockchain.trustregistry.Params
}
var file_veranablockchain_trustregistry_tx_proto_depIdxs = []int32{
12, // 0: veranablockchain.trustregistry.MsgUpdateParams.params:type_name -> veranablockchain.trustregistry.Params
0, // 1: veranablockchain.trustregistry.Msg.UpdateParams:input_type -> veranablockchain.trustregistry.MsgUpdateParams
2, // 2: veranablockchain.trustregistry.Msg.CreateTrustRegistry:input_type -> veranablockchain.trustregistry.MsgCreateTrustRegistry
4, // 3: veranablockchain.trustregistry.Msg.AddGovernanceFrameworkDocument:input_type -> veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument
6, // 4: veranablockchain.trustregistry.Msg.IncreaseActiveGovernanceFrameworkVersion:input_type -> veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion
8, // 5: veranablockchain.trustregistry.Msg.UpdateTrustRegistry:input_type -> veranablockchain.trustregistry.MsgUpdateTrustRegistry
10, // 6: veranablockchain.trustregistry.Msg.ArchiveTrustRegistry:input_type -> veranablockchain.trustregistry.MsgArchiveTrustRegistry
1, // 7: veranablockchain.trustregistry.Msg.UpdateParams:output_type -> veranablockchain.trustregistry.MsgUpdateParamsResponse
3, // 8: veranablockchain.trustregistry.Msg.CreateTrustRegistry:output_type -> veranablockchain.trustregistry.MsgCreateTrustRegistryResponse
5, // 9: veranablockchain.trustregistry.Msg.AddGovernanceFrameworkDocument:output_type -> veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse
7, // 10: veranablockchain.trustregistry.Msg.IncreaseActiveGovernanceFrameworkVersion:output_type -> veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse
9, // 11: veranablockchain.trustregistry.Msg.UpdateTrustRegistry:output_type -> veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse
11, // 12: veranablockchain.trustregistry.Msg.ArchiveTrustRegistry:output_type -> veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse
7, // [7:13] is the sub-list for method output_type
1, // [1:7] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustregistry_tx_proto_init() }
func file_veranablockchain_trustregistry_tx_proto_init() {
if File_veranablockchain_trustregistry_tx_proto != nil {
return
}
file_veranablockchain_trustregistry_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustregistry_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateTrustRegistry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgCreateTrustRegistryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgAddGovernanceFrameworkDocument); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgAddGovernanceFrameworkDocumentResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgIncreaseActiveGovernanceFrameworkVersion); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgIncreaseActiveGovernanceFrameworkVersionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateTrustRegistry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateTrustRegistryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgArchiveTrustRegistry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgArchiveTrustRegistryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustregistry_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_trustregistry_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustregistry_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_trustregistry_tx_proto_msgTypes,
}.Build()
File_veranablockchain_trustregistry_tx_proto = out.File
file_veranablockchain_trustregistry_tx_proto_rawDesc = nil
file_veranablockchain_trustregistry_tx_proto_goTypes = nil
file_veranablockchain_trustregistry_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/trustregistry/tx.proto
package trustregistry
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.trustregistry.Msg/UpdateParams"
Msg_CreateTrustRegistry_FullMethodName = "/veranablockchain.trustregistry.Msg/CreateTrustRegistry"
Msg_AddGovernanceFrameworkDocument_FullMethodName = "/veranablockchain.trustregistry.Msg/AddGovernanceFrameworkDocument"
Msg_IncreaseActiveGovernanceFrameworkVersion_FullMethodName = "/veranablockchain.trustregistry.Msg/IncreaseActiveGovernanceFrameworkVersion"
Msg_UpdateTrustRegistry_FullMethodName = "/veranablockchain.trustregistry.Msg/UpdateTrustRegistry"
Msg_ArchiveTrustRegistry_FullMethodName = "/veranablockchain.trustregistry.Msg/ArchiveTrustRegistry"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// CreateTrustRegistry creates a new trust registry.
CreateTrustRegistry(ctx context.Context, in *MsgCreateTrustRegistry, opts ...grpc.CallOption) (*MsgCreateTrustRegistryResponse, error)
AddGovernanceFrameworkDocument(ctx context.Context, in *MsgAddGovernanceFrameworkDocument, opts ...grpc.CallOption) (*MsgAddGovernanceFrameworkDocumentResponse, error)
IncreaseActiveGovernanceFrameworkVersion(ctx context.Context, in *MsgIncreaseActiveGovernanceFrameworkVersion, opts ...grpc.CallOption) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error)
UpdateTrustRegistry(ctx context.Context, in *MsgUpdateTrustRegistry, opts ...grpc.CallOption) (*MsgUpdateTrustRegistryResponse, error)
ArchiveTrustRegistry(ctx context.Context, in *MsgArchiveTrustRegistry, opts ...grpc.CallOption) (*MsgArchiveTrustRegistryResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateTrustRegistry(ctx context.Context, in *MsgCreateTrustRegistry, opts ...grpc.CallOption) (*MsgCreateTrustRegistryResponse, error) {
out := new(MsgCreateTrustRegistryResponse)
err := c.cc.Invoke(ctx, Msg_CreateTrustRegistry_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) AddGovernanceFrameworkDocument(ctx context.Context, in *MsgAddGovernanceFrameworkDocument, opts ...grpc.CallOption) (*MsgAddGovernanceFrameworkDocumentResponse, error) {
out := new(MsgAddGovernanceFrameworkDocumentResponse)
err := c.cc.Invoke(ctx, Msg_AddGovernanceFrameworkDocument_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) IncreaseActiveGovernanceFrameworkVersion(ctx context.Context, in *MsgIncreaseActiveGovernanceFrameworkVersion, opts ...grpc.CallOption) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error) {
out := new(MsgIncreaseActiveGovernanceFrameworkVersionResponse)
err := c.cc.Invoke(ctx, Msg_IncreaseActiveGovernanceFrameworkVersion_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) UpdateTrustRegistry(ctx context.Context, in *MsgUpdateTrustRegistry, opts ...grpc.CallOption) (*MsgUpdateTrustRegistryResponse, error) {
out := new(MsgUpdateTrustRegistryResponse)
err := c.cc.Invoke(ctx, Msg_UpdateTrustRegistry_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ArchiveTrustRegistry(ctx context.Context, in *MsgArchiveTrustRegistry, opts ...grpc.CallOption) (*MsgArchiveTrustRegistryResponse, error) {
out := new(MsgArchiveTrustRegistryResponse)
err := c.cc.Invoke(ctx, Msg_ArchiveTrustRegistry_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// CreateTrustRegistry creates a new trust registry.
CreateTrustRegistry(context.Context, *MsgCreateTrustRegistry) (*MsgCreateTrustRegistryResponse, error)
AddGovernanceFrameworkDocument(context.Context, *MsgAddGovernanceFrameworkDocument) (*MsgAddGovernanceFrameworkDocumentResponse, error)
IncreaseActiveGovernanceFrameworkVersion(context.Context, *MsgIncreaseActiveGovernanceFrameworkVersion) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error)
UpdateTrustRegistry(context.Context, *MsgUpdateTrustRegistry) (*MsgUpdateTrustRegistryResponse, error)
ArchiveTrustRegistry(context.Context, *MsgArchiveTrustRegistry) (*MsgArchiveTrustRegistryResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) CreateTrustRegistry(context.Context, *MsgCreateTrustRegistry) (*MsgCreateTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateTrustRegistry not implemented")
}
func (UnimplementedMsgServer) AddGovernanceFrameworkDocument(context.Context, *MsgAddGovernanceFrameworkDocument) (*MsgAddGovernanceFrameworkDocumentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddGovernanceFrameworkDocument not implemented")
}
func (UnimplementedMsgServer) IncreaseActiveGovernanceFrameworkVersion(context.Context, *MsgIncreaseActiveGovernanceFrameworkVersion) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IncreaseActiveGovernanceFrameworkVersion not implemented")
}
func (UnimplementedMsgServer) UpdateTrustRegistry(context.Context, *MsgUpdateTrustRegistry) (*MsgUpdateTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateTrustRegistry not implemented")
}
func (UnimplementedMsgServer) ArchiveTrustRegistry(context.Context, *MsgArchiveTrustRegistry) (*MsgArchiveTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArchiveTrustRegistry not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateTrustRegistry)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_CreateTrustRegistry_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateTrustRegistry(ctx, req.(*MsgCreateTrustRegistry))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_AddGovernanceFrameworkDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgAddGovernanceFrameworkDocument)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AddGovernanceFrameworkDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_AddGovernanceFrameworkDocument_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AddGovernanceFrameworkDocument(ctx, req.(*MsgAddGovernanceFrameworkDocument))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_IncreaseActiveGovernanceFrameworkVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgIncreaseActiveGovernanceFrameworkVersion)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).IncreaseActiveGovernanceFrameworkVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_IncreaseActiveGovernanceFrameworkVersion_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).IncreaseActiveGovernanceFrameworkVersion(ctx, req.(*MsgIncreaseActiveGovernanceFrameworkVersion))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_UpdateTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateTrustRegistry)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateTrustRegistry_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateTrustRegistry(ctx, req.(*MsgUpdateTrustRegistry))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ArchiveTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgArchiveTrustRegistry)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ArchiveTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_ArchiveTrustRegistry_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ArchiveTrustRegistry(ctx, req.(*MsgArchiveTrustRegistry))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustregistry.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "CreateTrustRegistry",
Handler: _Msg_CreateTrustRegistry_Handler,
},
{
MethodName: "AddGovernanceFrameworkDocument",
Handler: _Msg_AddGovernanceFrameworkDocument_Handler,
},
{
MethodName: "IncreaseActiveGovernanceFrameworkVersion",
Handler: _Msg_IncreaseActiveGovernanceFrameworkVersion_Handler,
},
{
MethodName: "UpdateTrustRegistry",
Handler: _Msg_UpdateTrustRegistry_Handler,
},
{
MethodName: "ArchiveTrustRegistry",
Handler: _Msg_ArchiveTrustRegistry_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustregistry/tx.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package trustregistry
import (
_ "cosmossdk.io/api/amino"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
io "io"
reflect "reflect"
sync "sync"
)
var (
md_TrustRegistry protoreflect.MessageDescriptor
fd_TrustRegistry_id protoreflect.FieldDescriptor
fd_TrustRegistry_did protoreflect.FieldDescriptor
fd_TrustRegistry_controller protoreflect.FieldDescriptor
fd_TrustRegistry_created protoreflect.FieldDescriptor
fd_TrustRegistry_modified protoreflect.FieldDescriptor
fd_TrustRegistry_archived protoreflect.FieldDescriptor
fd_TrustRegistry_deposit protoreflect.FieldDescriptor
fd_TrustRegistry_aka protoreflect.FieldDescriptor
fd_TrustRegistry_active_version protoreflect.FieldDescriptor
fd_TrustRegistry_language protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_types_proto_init()
md_TrustRegistry = File_veranablockchain_trustregistry_types_proto.Messages().ByName("TrustRegistry")
fd_TrustRegistry_id = md_TrustRegistry.Fields().ByName("id")
fd_TrustRegistry_did = md_TrustRegistry.Fields().ByName("did")
fd_TrustRegistry_controller = md_TrustRegistry.Fields().ByName("controller")
fd_TrustRegistry_created = md_TrustRegistry.Fields().ByName("created")
fd_TrustRegistry_modified = md_TrustRegistry.Fields().ByName("modified")
fd_TrustRegistry_archived = md_TrustRegistry.Fields().ByName("archived")
fd_TrustRegistry_deposit = md_TrustRegistry.Fields().ByName("deposit")
fd_TrustRegistry_aka = md_TrustRegistry.Fields().ByName("aka")
fd_TrustRegistry_active_version = md_TrustRegistry.Fields().ByName("active_version")
fd_TrustRegistry_language = md_TrustRegistry.Fields().ByName("language")
}
var _ protoreflect.Message = (*fastReflection_TrustRegistry)(nil)
type fastReflection_TrustRegistry TrustRegistry
func (x *TrustRegistry) ProtoReflect() protoreflect.Message {
return (*fastReflection_TrustRegistry)(x)
}
func (x *TrustRegistry) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_TrustRegistry_messageType fastReflection_TrustRegistry_messageType
var _ protoreflect.MessageType = fastReflection_TrustRegistry_messageType{}
type fastReflection_TrustRegistry_messageType struct{}
func (x fastReflection_TrustRegistry_messageType) Zero() protoreflect.Message {
return (*fastReflection_TrustRegistry)(nil)
}
func (x fastReflection_TrustRegistry_messageType) New() protoreflect.Message {
return new(fastReflection_TrustRegistry)
}
func (x fastReflection_TrustRegistry_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_TrustRegistry
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_TrustRegistry) Descriptor() protoreflect.MessageDescriptor {
return md_TrustRegistry
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_TrustRegistry) Type() protoreflect.MessageType {
return _fastReflection_TrustRegistry_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_TrustRegistry) New() protoreflect.Message {
return new(fastReflection_TrustRegistry)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_TrustRegistry) Interface() protoreflect.ProtoMessage {
return (*TrustRegistry)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_TrustRegistry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_TrustRegistry_id, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_TrustRegistry_did, value) {
return
}
}
if x.Controller != "" {
value := protoreflect.ValueOfString(x.Controller)
if !f(fd_TrustRegistry_controller, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_TrustRegistry_created, value) {
return
}
}
if x.Modified != nil {
value := protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
if !f(fd_TrustRegistry_modified, value) {
return
}
}
if x.Archived != nil {
value := protoreflect.ValueOfMessage(x.Archived.ProtoReflect())
if !f(fd_TrustRegistry_archived, value) {
return
}
}
if x.Deposit != int64(0) {
value := protoreflect.ValueOfInt64(x.Deposit)
if !f(fd_TrustRegistry_deposit, value) {
return
}
}
if x.Aka != "" {
value := protoreflect.ValueOfString(x.Aka)
if !f(fd_TrustRegistry_aka, value) {
return
}
}
if x.ActiveVersion != int32(0) {
value := protoreflect.ValueOfInt32(x.ActiveVersion)
if !f(fd_TrustRegistry_active_version, value) {
return
}
}
if x.Language != "" {
value := protoreflect.ValueOfString(x.Language)
if !f(fd_TrustRegistry_language, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_TrustRegistry) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistry.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.TrustRegistry.did":
return x.Did != ""
case "veranablockchain.trustregistry.TrustRegistry.controller":
return x.Controller != ""
case "veranablockchain.trustregistry.TrustRegistry.created":
return x.Created != nil
case "veranablockchain.trustregistry.TrustRegistry.modified":
return x.Modified != nil
case "veranablockchain.trustregistry.TrustRegistry.archived":
return x.Archived != nil
case "veranablockchain.trustregistry.TrustRegistry.deposit":
return x.Deposit != int64(0)
case "veranablockchain.trustregistry.TrustRegistry.aka":
return x.Aka != ""
case "veranablockchain.trustregistry.TrustRegistry.active_version":
return x.ActiveVersion != int32(0)
case "veranablockchain.trustregistry.TrustRegistry.language":
return x.Language != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistry does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistry) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistry.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.TrustRegistry.did":
x.Did = ""
case "veranablockchain.trustregistry.TrustRegistry.controller":
x.Controller = ""
case "veranablockchain.trustregistry.TrustRegistry.created":
x.Created = nil
case "veranablockchain.trustregistry.TrustRegistry.modified":
x.Modified = nil
case "veranablockchain.trustregistry.TrustRegistry.archived":
x.Archived = nil
case "veranablockchain.trustregistry.TrustRegistry.deposit":
x.Deposit = int64(0)
case "veranablockchain.trustregistry.TrustRegistry.aka":
x.Aka = ""
case "veranablockchain.trustregistry.TrustRegistry.active_version":
x.ActiveVersion = int32(0)
case "veranablockchain.trustregistry.TrustRegistry.language":
x.Language = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistry does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_TrustRegistry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.TrustRegistry.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.TrustRegistry.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistry.controller":
value := x.Controller
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistry.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.modified":
value := x.Modified
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.archived":
value := x.Archived
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.deposit":
value := x.Deposit
return protoreflect.ValueOfInt64(value)
case "veranablockchain.trustregistry.TrustRegistry.aka":
value := x.Aka
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistry.active_version":
value := x.ActiveVersion
return protoreflect.ValueOfInt32(value)
case "veranablockchain.trustregistry.TrustRegistry.language":
value := x.Language
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistry does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistry.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.TrustRegistry.did":
x.Did = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistry.controller":
x.Controller = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistry.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.TrustRegistry.modified":
x.Modified = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.TrustRegistry.archived":
x.Archived = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.TrustRegistry.deposit":
x.Deposit = value.Int()
case "veranablockchain.trustregistry.TrustRegistry.aka":
x.Aka = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistry.active_version":
x.ActiveVersion = int32(value.Int())
case "veranablockchain.trustregistry.TrustRegistry.language":
x.Language = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistry does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistry.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.modified":
if x.Modified == nil {
x.Modified = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.archived":
if x.Archived == nil {
x.Archived = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Archived.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
case "veranablockchain.trustregistry.TrustRegistry.did":
panic(fmt.Errorf("field did of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
case "veranablockchain.trustregistry.TrustRegistry.controller":
panic(fmt.Errorf("field controller of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
case "veranablockchain.trustregistry.TrustRegistry.deposit":
panic(fmt.Errorf("field deposit of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
case "veranablockchain.trustregistry.TrustRegistry.aka":
panic(fmt.Errorf("field aka of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
case "veranablockchain.trustregistry.TrustRegistry.active_version":
panic(fmt.Errorf("field active_version of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
case "veranablockchain.trustregistry.TrustRegistry.language":
panic(fmt.Errorf("field language of message veranablockchain.trustregistry.TrustRegistry is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistry does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_TrustRegistry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistry.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.TrustRegistry.did":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistry.controller":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistry.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.modified":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.archived":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistry.deposit":
return protoreflect.ValueOfInt64(int64(0))
case "veranablockchain.trustregistry.TrustRegistry.aka":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistry.active_version":
return protoreflect.ValueOfInt32(int32(0))
case "veranablockchain.trustregistry.TrustRegistry.language":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistry"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistry does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_TrustRegistry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.TrustRegistry", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_TrustRegistry) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistry) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_TrustRegistry) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_TrustRegistry) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*TrustRegistry)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Controller)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Modified != nil {
l = options.Size(x.Modified)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Archived != nil {
l = options.Size(x.Archived)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Deposit != 0 {
n += 1 + runtime.Sov(uint64(x.Deposit))
}
l = len(x.Aka)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ActiveVersion != 0 {
n += 1 + runtime.Sov(uint64(x.ActiveVersion))
}
l = len(x.Language)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*TrustRegistry)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Language) > 0 {
i -= len(x.Language)
copy(dAtA[i:], x.Language)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Language)))
i--
dAtA[i] = 0x52
}
if x.ActiveVersion != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ActiveVersion))
i--
dAtA[i] = 0x48
}
if len(x.Aka) > 0 {
i -= len(x.Aka)
copy(dAtA[i:], x.Aka)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Aka)))
i--
dAtA[i] = 0x42
}
if x.Deposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Deposit))
i--
dAtA[i] = 0x38
}
if x.Archived != nil {
encoded, err := options.Marshal(x.Archived)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if x.Modified != nil {
encoded, err := options.Marshal(x.Modified)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
if len(x.Controller) > 0 {
i -= len(x.Controller)
copy(dAtA[i:], x.Controller)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
i--
dAtA[i] = 0x1a
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*TrustRegistry)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Modified == nil {
x.Modified = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Modified); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Archived == nil {
x.Archived = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Archived); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
x.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 9:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveVersion", wireType)
}
x.ActiveVersion = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ActiveVersion |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_GovernanceFrameworkVersion protoreflect.MessageDescriptor
fd_GovernanceFrameworkVersion_id protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersion_tr_id protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersion_created protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersion_version protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersion_active_since protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_types_proto_init()
md_GovernanceFrameworkVersion = File_veranablockchain_trustregistry_types_proto.Messages().ByName("GovernanceFrameworkVersion")
fd_GovernanceFrameworkVersion_id = md_GovernanceFrameworkVersion.Fields().ByName("id")
fd_GovernanceFrameworkVersion_tr_id = md_GovernanceFrameworkVersion.Fields().ByName("tr_id")
fd_GovernanceFrameworkVersion_created = md_GovernanceFrameworkVersion.Fields().ByName("created")
fd_GovernanceFrameworkVersion_version = md_GovernanceFrameworkVersion.Fields().ByName("version")
fd_GovernanceFrameworkVersion_active_since = md_GovernanceFrameworkVersion.Fields().ByName("active_since")
}
var _ protoreflect.Message = (*fastReflection_GovernanceFrameworkVersion)(nil)
type fastReflection_GovernanceFrameworkVersion GovernanceFrameworkVersion
func (x *GovernanceFrameworkVersion) ProtoReflect() protoreflect.Message {
return (*fastReflection_GovernanceFrameworkVersion)(x)
}
func (x *GovernanceFrameworkVersion) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GovernanceFrameworkVersion_messageType fastReflection_GovernanceFrameworkVersion_messageType
var _ protoreflect.MessageType = fastReflection_GovernanceFrameworkVersion_messageType{}
type fastReflection_GovernanceFrameworkVersion_messageType struct{}
func (x fastReflection_GovernanceFrameworkVersion_messageType) Zero() protoreflect.Message {
return (*fastReflection_GovernanceFrameworkVersion)(nil)
}
func (x fastReflection_GovernanceFrameworkVersion_messageType) New() protoreflect.Message {
return new(fastReflection_GovernanceFrameworkVersion)
}
func (x fastReflection_GovernanceFrameworkVersion_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GovernanceFrameworkVersion
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GovernanceFrameworkVersion) Descriptor() protoreflect.MessageDescriptor {
return md_GovernanceFrameworkVersion
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GovernanceFrameworkVersion) Type() protoreflect.MessageType {
return _fastReflection_GovernanceFrameworkVersion_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GovernanceFrameworkVersion) New() protoreflect.Message {
return new(fastReflection_GovernanceFrameworkVersion)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GovernanceFrameworkVersion) Interface() protoreflect.ProtoMessage {
return (*GovernanceFrameworkVersion)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GovernanceFrameworkVersion) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_GovernanceFrameworkVersion_id, value) {
return
}
}
if x.TrId != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrId)
if !f(fd_GovernanceFrameworkVersion_tr_id, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_GovernanceFrameworkVersion_created, value) {
return
}
}
if x.Version != int32(0) {
value := protoreflect.ValueOfInt32(x.Version)
if !f(fd_GovernanceFrameworkVersion_version, value) {
return
}
}
if x.ActiveSince != nil {
value := protoreflect.ValueOfMessage(x.ActiveSince.ProtoReflect())
if !f(fd_GovernanceFrameworkVersion_active_since, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GovernanceFrameworkVersion) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.tr_id":
return x.TrId != uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.created":
return x.Created != nil
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.version":
return x.Version != int32(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since":
return x.ActiveSince != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersion) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.tr_id":
x.TrId = uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.created":
x.Created = nil
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.version":
x.Version = int32(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since":
x.ActiveSince = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GovernanceFrameworkVersion) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.tr_id":
value := x.TrId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.version":
value := x.Version
return protoreflect.ValueOfInt32(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since":
value := x.ActiveSince
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersion does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersion) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.tr_id":
x.TrId = value.Uint()
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.version":
x.Version = int32(value.Int())
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since":
x.ActiveSince = value.Message().Interface().(*timestamppb.Timestamp)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersion) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since":
if x.ActiveSince == nil {
x.ActiveSince = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.ActiveSince.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.GovernanceFrameworkVersion is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.tr_id":
panic(fmt.Errorf("field tr_id of message veranablockchain.trustregistry.GovernanceFrameworkVersion is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.version":
panic(fmt.Errorf("field version of message veranablockchain.trustregistry.GovernanceFrameworkVersion is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GovernanceFrameworkVersion) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.tr_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.version":
return protoreflect.ValueOfInt32(int32(0))
case "veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersion"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersion does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GovernanceFrameworkVersion) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.GovernanceFrameworkVersion", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GovernanceFrameworkVersion) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersion) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GovernanceFrameworkVersion) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GovernanceFrameworkVersion) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GovernanceFrameworkVersion)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.TrId != 0 {
n += 1 + runtime.Sov(uint64(x.TrId))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Version != 0 {
n += 1 + runtime.Sov(uint64(x.Version))
}
if x.ActiveSince != nil {
l = options.Size(x.ActiveSince)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GovernanceFrameworkVersion)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.ActiveSince != nil {
encoded, err := options.Marshal(x.ActiveSince)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if x.Version != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Version))
i--
dAtA[i] = 0x20
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.TrId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrId))
i--
dAtA[i] = 0x10
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GovernanceFrameworkVersion)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GovernanceFrameworkVersion: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GovernanceFrameworkVersion: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
x.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
x.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Version |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveSince", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.ActiveSince == nil {
x.ActiveSince = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActiveSince); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_GovernanceFrameworkDocument protoreflect.MessageDescriptor
fd_GovernanceFrameworkDocument_id protoreflect.FieldDescriptor
fd_GovernanceFrameworkDocument_gfv_id protoreflect.FieldDescriptor
fd_GovernanceFrameworkDocument_created protoreflect.FieldDescriptor
fd_GovernanceFrameworkDocument_language protoreflect.FieldDescriptor
fd_GovernanceFrameworkDocument_url protoreflect.FieldDescriptor
fd_GovernanceFrameworkDocument_digest_sri protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_types_proto_init()
md_GovernanceFrameworkDocument = File_veranablockchain_trustregistry_types_proto.Messages().ByName("GovernanceFrameworkDocument")
fd_GovernanceFrameworkDocument_id = md_GovernanceFrameworkDocument.Fields().ByName("id")
fd_GovernanceFrameworkDocument_gfv_id = md_GovernanceFrameworkDocument.Fields().ByName("gfv_id")
fd_GovernanceFrameworkDocument_created = md_GovernanceFrameworkDocument.Fields().ByName("created")
fd_GovernanceFrameworkDocument_language = md_GovernanceFrameworkDocument.Fields().ByName("language")
fd_GovernanceFrameworkDocument_url = md_GovernanceFrameworkDocument.Fields().ByName("url")
fd_GovernanceFrameworkDocument_digest_sri = md_GovernanceFrameworkDocument.Fields().ByName("digest_sri")
}
var _ protoreflect.Message = (*fastReflection_GovernanceFrameworkDocument)(nil)
type fastReflection_GovernanceFrameworkDocument GovernanceFrameworkDocument
func (x *GovernanceFrameworkDocument) ProtoReflect() protoreflect.Message {
return (*fastReflection_GovernanceFrameworkDocument)(x)
}
func (x *GovernanceFrameworkDocument) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GovernanceFrameworkDocument_messageType fastReflection_GovernanceFrameworkDocument_messageType
var _ protoreflect.MessageType = fastReflection_GovernanceFrameworkDocument_messageType{}
type fastReflection_GovernanceFrameworkDocument_messageType struct{}
func (x fastReflection_GovernanceFrameworkDocument_messageType) Zero() protoreflect.Message {
return (*fastReflection_GovernanceFrameworkDocument)(nil)
}
func (x fastReflection_GovernanceFrameworkDocument_messageType) New() protoreflect.Message {
return new(fastReflection_GovernanceFrameworkDocument)
}
func (x fastReflection_GovernanceFrameworkDocument_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GovernanceFrameworkDocument
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GovernanceFrameworkDocument) Descriptor() protoreflect.MessageDescriptor {
return md_GovernanceFrameworkDocument
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GovernanceFrameworkDocument) Type() protoreflect.MessageType {
return _fastReflection_GovernanceFrameworkDocument_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GovernanceFrameworkDocument) New() protoreflect.Message {
return new(fastReflection_GovernanceFrameworkDocument)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GovernanceFrameworkDocument) Interface() protoreflect.ProtoMessage {
return (*GovernanceFrameworkDocument)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GovernanceFrameworkDocument) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_GovernanceFrameworkDocument_id, value) {
return
}
}
if x.GfvId != uint64(0) {
value := protoreflect.ValueOfUint64(x.GfvId)
if !f(fd_GovernanceFrameworkDocument_gfv_id, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_GovernanceFrameworkDocument_created, value) {
return
}
}
if x.Language != "" {
value := protoreflect.ValueOfString(x.Language)
if !f(fd_GovernanceFrameworkDocument_language, value) {
return
}
}
if x.Url != "" {
value := protoreflect.ValueOfString(x.Url)
if !f(fd_GovernanceFrameworkDocument_url, value) {
return
}
}
if x.DigestSri != "" {
value := protoreflect.ValueOfString(x.DigestSri)
if !f(fd_GovernanceFrameworkDocument_digest_sri, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GovernanceFrameworkDocument) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.gfv_id":
return x.GfvId != uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.created":
return x.Created != nil
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.language":
return x.Language != ""
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.url":
return x.Url != ""
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.digest_sri":
return x.DigestSri != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkDocument) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.gfv_id":
x.GfvId = uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.created":
x.Created = nil
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.language":
x.Language = ""
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.url":
x.Url = ""
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.digest_sri":
x.DigestSri = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GovernanceFrameworkDocument) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.gfv_id":
value := x.GfvId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.language":
value := x.Language
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.url":
value := x.Url
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.digest_sri":
value := x.DigestSri
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkDocument does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkDocument) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.gfv_id":
x.GfvId = value.Uint()
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.language":
x.Language = value.Interface().(string)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.url":
x.Url = value.Interface().(string)
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.digest_sri":
x.DigestSri = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkDocument) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.GovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.gfv_id":
panic(fmt.Errorf("field gfv_id of message veranablockchain.trustregistry.GovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.language":
panic(fmt.Errorf("field language of message veranablockchain.trustregistry.GovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.url":
panic(fmt.Errorf("field url of message veranablockchain.trustregistry.GovernanceFrameworkDocument is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.digest_sri":
panic(fmt.Errorf("field digest_sri of message veranablockchain.trustregistry.GovernanceFrameworkDocument is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GovernanceFrameworkDocument) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.gfv_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.language":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.url":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.GovernanceFrameworkDocument.digest_sri":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkDocument"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkDocument does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GovernanceFrameworkDocument) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.GovernanceFrameworkDocument", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GovernanceFrameworkDocument) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkDocument) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GovernanceFrameworkDocument) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GovernanceFrameworkDocument) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GovernanceFrameworkDocument)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.GfvId != 0 {
n += 1 + runtime.Sov(uint64(x.GfvId))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Language)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Url)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.DigestSri)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GovernanceFrameworkDocument)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.DigestSri) > 0 {
i -= len(x.DigestSri)
copy(dAtA[i:], x.DigestSri)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DigestSri)))
i--
dAtA[i] = 0x32
}
if len(x.Url) > 0 {
i -= len(x.Url)
copy(dAtA[i:], x.Url)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Url)))
i--
dAtA[i] = 0x2a
}
if len(x.Language) > 0 {
i -= len(x.Language)
copy(dAtA[i:], x.Language)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Language)))
i--
dAtA[i] = 0x22
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.GfvId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.GfvId))
i--
dAtA[i] = 0x10
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GovernanceFrameworkDocument)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GovernanceFrameworkDocument: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GovernanceFrameworkDocument: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GfvId", wireType)
}
x.GfvId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.GfvId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Url = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.DigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_GovernanceFrameworkVersionWithDocs_6_list)(nil)
type _GovernanceFrameworkVersionWithDocs_6_list struct {
list *[]*GovernanceFrameworkDocument
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkDocument)
(*x.list)[i] = concreteValue
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkDocument)
*x.list = append(*x.list, concreteValue)
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) AppendMutable() protoreflect.Value {
v := new(GovernanceFrameworkDocument)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) NewElement() protoreflect.Value {
v := new(GovernanceFrameworkDocument)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_GovernanceFrameworkVersionWithDocs_6_list) IsValid() bool {
return x.list != nil
}
var (
md_GovernanceFrameworkVersionWithDocs protoreflect.MessageDescriptor
fd_GovernanceFrameworkVersionWithDocs_id protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersionWithDocs_tr_id protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersionWithDocs_created protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersionWithDocs_version protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersionWithDocs_active_since protoreflect.FieldDescriptor
fd_GovernanceFrameworkVersionWithDocs_documents protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_types_proto_init()
md_GovernanceFrameworkVersionWithDocs = File_veranablockchain_trustregistry_types_proto.Messages().ByName("GovernanceFrameworkVersionWithDocs")
fd_GovernanceFrameworkVersionWithDocs_id = md_GovernanceFrameworkVersionWithDocs.Fields().ByName("id")
fd_GovernanceFrameworkVersionWithDocs_tr_id = md_GovernanceFrameworkVersionWithDocs.Fields().ByName("tr_id")
fd_GovernanceFrameworkVersionWithDocs_created = md_GovernanceFrameworkVersionWithDocs.Fields().ByName("created")
fd_GovernanceFrameworkVersionWithDocs_version = md_GovernanceFrameworkVersionWithDocs.Fields().ByName("version")
fd_GovernanceFrameworkVersionWithDocs_active_since = md_GovernanceFrameworkVersionWithDocs.Fields().ByName("active_since")
fd_GovernanceFrameworkVersionWithDocs_documents = md_GovernanceFrameworkVersionWithDocs.Fields().ByName("documents")
}
var _ protoreflect.Message = (*fastReflection_GovernanceFrameworkVersionWithDocs)(nil)
type fastReflection_GovernanceFrameworkVersionWithDocs GovernanceFrameworkVersionWithDocs
func (x *GovernanceFrameworkVersionWithDocs) ProtoReflect() protoreflect.Message {
return (*fastReflection_GovernanceFrameworkVersionWithDocs)(x)
}
func (x *GovernanceFrameworkVersionWithDocs) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GovernanceFrameworkVersionWithDocs_messageType fastReflection_GovernanceFrameworkVersionWithDocs_messageType
var _ protoreflect.MessageType = fastReflection_GovernanceFrameworkVersionWithDocs_messageType{}
type fastReflection_GovernanceFrameworkVersionWithDocs_messageType struct{}
func (x fastReflection_GovernanceFrameworkVersionWithDocs_messageType) Zero() protoreflect.Message {
return (*fastReflection_GovernanceFrameworkVersionWithDocs)(nil)
}
func (x fastReflection_GovernanceFrameworkVersionWithDocs_messageType) New() protoreflect.Message {
return new(fastReflection_GovernanceFrameworkVersionWithDocs)
}
func (x fastReflection_GovernanceFrameworkVersionWithDocs_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GovernanceFrameworkVersionWithDocs
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Descriptor() protoreflect.MessageDescriptor {
return md_GovernanceFrameworkVersionWithDocs
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Type() protoreflect.MessageType {
return _fastReflection_GovernanceFrameworkVersionWithDocs_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) New() protoreflect.Message {
return new(fastReflection_GovernanceFrameworkVersionWithDocs)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Interface() protoreflect.ProtoMessage {
return (*GovernanceFrameworkVersionWithDocs)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_GovernanceFrameworkVersionWithDocs_id, value) {
return
}
}
if x.TrId != uint64(0) {
value := protoreflect.ValueOfUint64(x.TrId)
if !f(fd_GovernanceFrameworkVersionWithDocs_tr_id, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_GovernanceFrameworkVersionWithDocs_created, value) {
return
}
}
if x.Version != int32(0) {
value := protoreflect.ValueOfInt32(x.Version)
if !f(fd_GovernanceFrameworkVersionWithDocs_version, value) {
return
}
}
if x.ActiveSince != nil {
value := protoreflect.ValueOfMessage(x.ActiveSince.ProtoReflect())
if !f(fd_GovernanceFrameworkVersionWithDocs_active_since, value) {
return
}
}
if len(x.Documents) != 0 {
value := protoreflect.ValueOfList(&_GovernanceFrameworkVersionWithDocs_6_list{list: &x.Documents})
if !f(fd_GovernanceFrameworkVersionWithDocs_documents, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.tr_id":
return x.TrId != uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created":
return x.Created != nil
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.version":
return x.Version != int32(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since":
return x.ActiveSince != nil
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents":
return len(x.Documents) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.tr_id":
x.TrId = uint64(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created":
x.Created = nil
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.version":
x.Version = int32(0)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since":
x.ActiveSince = nil
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents":
x.Documents = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.tr_id":
value := x.TrId
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.version":
value := x.Version
return protoreflect.ValueOfInt32(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since":
value := x.ActiveSince
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents":
if len(x.Documents) == 0 {
return protoreflect.ValueOfList(&_GovernanceFrameworkVersionWithDocs_6_list{})
}
listValue := &_GovernanceFrameworkVersionWithDocs_6_list{list: &x.Documents}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.tr_id":
x.TrId = value.Uint()
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.version":
x.Version = int32(value.Int())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since":
x.ActiveSince = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents":
lv := value.List()
clv := lv.(*_GovernanceFrameworkVersionWithDocs_6_list)
x.Documents = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since":
if x.ActiveSince == nil {
x.ActiveSince = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.ActiveSince.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents":
if x.Documents == nil {
x.Documents = []*GovernanceFrameworkDocument{}
}
value := &_GovernanceFrameworkVersionWithDocs_6_list{list: &x.Documents}
return protoreflect.ValueOfList(value)
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.tr_id":
panic(fmt.Errorf("field tr_id of message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs is not mutable"))
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.version":
panic(fmt.Errorf("field version of message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.tr_id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.version":
return protoreflect.ValueOfInt32(int32(0))
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents":
list := []*GovernanceFrameworkDocument{}
return protoreflect.ValueOfList(&_GovernanceFrameworkVersionWithDocs_6_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GovernanceFrameworkVersionWithDocs) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GovernanceFrameworkVersionWithDocs)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
if x.TrId != 0 {
n += 1 + runtime.Sov(uint64(x.TrId))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Version != 0 {
n += 1 + runtime.Sov(uint64(x.Version))
}
if x.ActiveSince != nil {
l = options.Size(x.ActiveSince)
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.Documents) > 0 {
for _, e := range x.Documents {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GovernanceFrameworkVersionWithDocs)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Documents) > 0 {
for iNdEx := len(x.Documents) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Documents[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
}
if x.ActiveSince != nil {
encoded, err := options.Marshal(x.ActiveSince)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if x.Version != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Version))
i--
dAtA[i] = 0x20
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x1a
}
if x.TrId != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.TrId))
i--
dAtA[i] = 0x10
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GovernanceFrameworkVersionWithDocs)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GovernanceFrameworkVersionWithDocs: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GovernanceFrameworkVersionWithDocs: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
x.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
x.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Version |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveSince", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.ActiveSince == nil {
x.ActiveSince = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActiveSince); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Documents", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Documents = append(x.Documents, &GovernanceFrameworkDocument{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Documents[len(x.Documents)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var _ protoreflect.List = (*_TrustRegistryWithVersions_11_list)(nil)
type _TrustRegistryWithVersions_11_list struct {
list *[]*GovernanceFrameworkVersionWithDocs
}
func (x *_TrustRegistryWithVersions_11_list) Len() int {
if x.list == nil {
return 0
}
return len(*x.list)
}
func (x *_TrustRegistryWithVersions_11_list) Get(i int) protoreflect.Value {
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
}
func (x *_TrustRegistryWithVersions_11_list) Set(i int, value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkVersionWithDocs)
(*x.list)[i] = concreteValue
}
func (x *_TrustRegistryWithVersions_11_list) Append(value protoreflect.Value) {
valueUnwrapped := value.Message()
concreteValue := valueUnwrapped.Interface().(*GovernanceFrameworkVersionWithDocs)
*x.list = append(*x.list, concreteValue)
}
func (x *_TrustRegistryWithVersions_11_list) AppendMutable() protoreflect.Value {
v := new(GovernanceFrameworkVersionWithDocs)
*x.list = append(*x.list, v)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_TrustRegistryWithVersions_11_list) Truncate(n int) {
for i := n; i < len(*x.list); i++ {
(*x.list)[i] = nil
}
*x.list = (*x.list)[:n]
}
func (x *_TrustRegistryWithVersions_11_list) NewElement() protoreflect.Value {
v := new(GovernanceFrameworkVersionWithDocs)
return protoreflect.ValueOfMessage(v.ProtoReflect())
}
func (x *_TrustRegistryWithVersions_11_list) IsValid() bool {
return x.list != nil
}
var (
md_TrustRegistryWithVersions protoreflect.MessageDescriptor
fd_TrustRegistryWithVersions_id protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_did protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_controller protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_created protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_modified protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_archived protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_deposit protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_aka protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_active_version protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_language protoreflect.FieldDescriptor
fd_TrustRegistryWithVersions_versions protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_trustregistry_types_proto_init()
md_TrustRegistryWithVersions = File_veranablockchain_trustregistry_types_proto.Messages().ByName("TrustRegistryWithVersions")
fd_TrustRegistryWithVersions_id = md_TrustRegistryWithVersions.Fields().ByName("id")
fd_TrustRegistryWithVersions_did = md_TrustRegistryWithVersions.Fields().ByName("did")
fd_TrustRegistryWithVersions_controller = md_TrustRegistryWithVersions.Fields().ByName("controller")
fd_TrustRegistryWithVersions_created = md_TrustRegistryWithVersions.Fields().ByName("created")
fd_TrustRegistryWithVersions_modified = md_TrustRegistryWithVersions.Fields().ByName("modified")
fd_TrustRegistryWithVersions_archived = md_TrustRegistryWithVersions.Fields().ByName("archived")
fd_TrustRegistryWithVersions_deposit = md_TrustRegistryWithVersions.Fields().ByName("deposit")
fd_TrustRegistryWithVersions_aka = md_TrustRegistryWithVersions.Fields().ByName("aka")
fd_TrustRegistryWithVersions_active_version = md_TrustRegistryWithVersions.Fields().ByName("active_version")
fd_TrustRegistryWithVersions_language = md_TrustRegistryWithVersions.Fields().ByName("language")
fd_TrustRegistryWithVersions_versions = md_TrustRegistryWithVersions.Fields().ByName("versions")
}
var _ protoreflect.Message = (*fastReflection_TrustRegistryWithVersions)(nil)
type fastReflection_TrustRegistryWithVersions TrustRegistryWithVersions
func (x *TrustRegistryWithVersions) ProtoReflect() protoreflect.Message {
return (*fastReflection_TrustRegistryWithVersions)(x)
}
func (x *TrustRegistryWithVersions) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_TrustRegistryWithVersions_messageType fastReflection_TrustRegistryWithVersions_messageType
var _ protoreflect.MessageType = fastReflection_TrustRegistryWithVersions_messageType{}
type fastReflection_TrustRegistryWithVersions_messageType struct{}
func (x fastReflection_TrustRegistryWithVersions_messageType) Zero() protoreflect.Message {
return (*fastReflection_TrustRegistryWithVersions)(nil)
}
func (x fastReflection_TrustRegistryWithVersions_messageType) New() protoreflect.Message {
return new(fastReflection_TrustRegistryWithVersions)
}
func (x fastReflection_TrustRegistryWithVersions_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_TrustRegistryWithVersions
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_TrustRegistryWithVersions) Descriptor() protoreflect.MessageDescriptor {
return md_TrustRegistryWithVersions
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_TrustRegistryWithVersions) Type() protoreflect.MessageType {
return _fastReflection_TrustRegistryWithVersions_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_TrustRegistryWithVersions) New() protoreflect.Message {
return new(fastReflection_TrustRegistryWithVersions)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_TrustRegistryWithVersions) Interface() protoreflect.ProtoMessage {
return (*TrustRegistryWithVersions)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_TrustRegistryWithVersions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Id != uint64(0) {
value := protoreflect.ValueOfUint64(x.Id)
if !f(fd_TrustRegistryWithVersions_id, value) {
return
}
}
if x.Did != "" {
value := protoreflect.ValueOfString(x.Did)
if !f(fd_TrustRegistryWithVersions_did, value) {
return
}
}
if x.Controller != "" {
value := protoreflect.ValueOfString(x.Controller)
if !f(fd_TrustRegistryWithVersions_controller, value) {
return
}
}
if x.Created != nil {
value := protoreflect.ValueOfMessage(x.Created.ProtoReflect())
if !f(fd_TrustRegistryWithVersions_created, value) {
return
}
}
if x.Modified != nil {
value := protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
if !f(fd_TrustRegistryWithVersions_modified, value) {
return
}
}
if x.Archived != nil {
value := protoreflect.ValueOfMessage(x.Archived.ProtoReflect())
if !f(fd_TrustRegistryWithVersions_archived, value) {
return
}
}
if x.Deposit != int64(0) {
value := protoreflect.ValueOfInt64(x.Deposit)
if !f(fd_TrustRegistryWithVersions_deposit, value) {
return
}
}
if x.Aka != "" {
value := protoreflect.ValueOfString(x.Aka)
if !f(fd_TrustRegistryWithVersions_aka, value) {
return
}
}
if x.ActiveVersion != int32(0) {
value := protoreflect.ValueOfInt32(x.ActiveVersion)
if !f(fd_TrustRegistryWithVersions_active_version, value) {
return
}
}
if x.Language != "" {
value := protoreflect.ValueOfString(x.Language)
if !f(fd_TrustRegistryWithVersions_language, value) {
return
}
}
if len(x.Versions) != 0 {
value := protoreflect.ValueOfList(&_TrustRegistryWithVersions_11_list{list: &x.Versions})
if !f(fd_TrustRegistryWithVersions_versions, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_TrustRegistryWithVersions) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistryWithVersions.id":
return x.Id != uint64(0)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.did":
return x.Did != ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.controller":
return x.Controller != ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.created":
return x.Created != nil
case "veranablockchain.trustregistry.TrustRegistryWithVersions.modified":
return x.Modified != nil
case "veranablockchain.trustregistry.TrustRegistryWithVersions.archived":
return x.Archived != nil
case "veranablockchain.trustregistry.TrustRegistryWithVersions.deposit":
return x.Deposit != int64(0)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.aka":
return x.Aka != ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.active_version":
return x.ActiveVersion != int32(0)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.language":
return x.Language != ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.versions":
return len(x.Versions) != 0
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistryWithVersions"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistryWithVersions does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistryWithVersions) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistryWithVersions.id":
x.Id = uint64(0)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.did":
x.Did = ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.controller":
x.Controller = ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.created":
x.Created = nil
case "veranablockchain.trustregistry.TrustRegistryWithVersions.modified":
x.Modified = nil
case "veranablockchain.trustregistry.TrustRegistryWithVersions.archived":
x.Archived = nil
case "veranablockchain.trustregistry.TrustRegistryWithVersions.deposit":
x.Deposit = int64(0)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.aka":
x.Aka = ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.active_version":
x.ActiveVersion = int32(0)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.language":
x.Language = ""
case "veranablockchain.trustregistry.TrustRegistryWithVersions.versions":
x.Versions = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistryWithVersions"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistryWithVersions does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_TrustRegistryWithVersions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.trustregistry.TrustRegistryWithVersions.id":
value := x.Id
return protoreflect.ValueOfUint64(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.did":
value := x.Did
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.controller":
value := x.Controller
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.created":
value := x.Created
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.modified":
value := x.Modified
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.archived":
value := x.Archived
return protoreflect.ValueOfMessage(value.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.deposit":
value := x.Deposit
return protoreflect.ValueOfInt64(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.aka":
value := x.Aka
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.active_version":
value := x.ActiveVersion
return protoreflect.ValueOfInt32(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.language":
value := x.Language
return protoreflect.ValueOfString(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.versions":
if len(x.Versions) == 0 {
return protoreflect.ValueOfList(&_TrustRegistryWithVersions_11_list{})
}
listValue := &_TrustRegistryWithVersions_11_list{list: &x.Versions}
return protoreflect.ValueOfList(listValue)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistryWithVersions"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistryWithVersions does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistryWithVersions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistryWithVersions.id":
x.Id = value.Uint()
case "veranablockchain.trustregistry.TrustRegistryWithVersions.did":
x.Did = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.controller":
x.Controller = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.created":
x.Created = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.modified":
x.Modified = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.archived":
x.Archived = value.Message().Interface().(*timestamppb.Timestamp)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.deposit":
x.Deposit = value.Int()
case "veranablockchain.trustregistry.TrustRegistryWithVersions.aka":
x.Aka = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.active_version":
x.ActiveVersion = int32(value.Int())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.language":
x.Language = value.Interface().(string)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.versions":
lv := value.List()
clv := lv.(*_TrustRegistryWithVersions_11_list)
x.Versions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistryWithVersions"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistryWithVersions does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistryWithVersions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistryWithVersions.created":
if x.Created == nil {
x.Created = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Created.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.modified":
if x.Modified == nil {
x.Modified = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Modified.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.archived":
if x.Archived == nil {
x.Archived = new(timestamppb.Timestamp)
}
return protoreflect.ValueOfMessage(x.Archived.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.versions":
if x.Versions == nil {
x.Versions = []*GovernanceFrameworkVersionWithDocs{}
}
value := &_TrustRegistryWithVersions_11_list{list: &x.Versions}
return protoreflect.ValueOfList(value)
case "veranablockchain.trustregistry.TrustRegistryWithVersions.id":
panic(fmt.Errorf("field id of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.did":
panic(fmt.Errorf("field did of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.controller":
panic(fmt.Errorf("field controller of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.deposit":
panic(fmt.Errorf("field deposit of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.aka":
panic(fmt.Errorf("field aka of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.active_version":
panic(fmt.Errorf("field active_version of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.language":
panic(fmt.Errorf("field language of message veranablockchain.trustregistry.TrustRegistryWithVersions is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistryWithVersions"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistryWithVersions does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_TrustRegistryWithVersions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.trustregistry.TrustRegistryWithVersions.id":
return protoreflect.ValueOfUint64(uint64(0))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.did":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistryWithVersions.controller":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistryWithVersions.created":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.modified":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.archived":
m := new(timestamppb.Timestamp)
return protoreflect.ValueOfMessage(m.ProtoReflect())
case "veranablockchain.trustregistry.TrustRegistryWithVersions.deposit":
return protoreflect.ValueOfInt64(int64(0))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.aka":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistryWithVersions.active_version":
return protoreflect.ValueOfInt32(int32(0))
case "veranablockchain.trustregistry.TrustRegistryWithVersions.language":
return protoreflect.ValueOfString("")
case "veranablockchain.trustregistry.TrustRegistryWithVersions.versions":
list := []*GovernanceFrameworkVersionWithDocs{}
return protoreflect.ValueOfList(&_TrustRegistryWithVersions_11_list{list: &list})
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.trustregistry.TrustRegistryWithVersions"))
}
panic(fmt.Errorf("message veranablockchain.trustregistry.TrustRegistryWithVersions does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_TrustRegistryWithVersions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.trustregistry.TrustRegistryWithVersions", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_TrustRegistryWithVersions) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_TrustRegistryWithVersions) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_TrustRegistryWithVersions) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_TrustRegistryWithVersions) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*TrustRegistryWithVersions)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Id != 0 {
n += 1 + runtime.Sov(uint64(x.Id))
}
l = len(x.Did)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
l = len(x.Controller)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Created != nil {
l = options.Size(x.Created)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Modified != nil {
l = options.Size(x.Modified)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Archived != nil {
l = options.Size(x.Archived)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Deposit != 0 {
n += 1 + runtime.Sov(uint64(x.Deposit))
}
l = len(x.Aka)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.ActiveVersion != 0 {
n += 1 + runtime.Sov(uint64(x.ActiveVersion))
}
l = len(x.Language)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if len(x.Versions) > 0 {
for _, e := range x.Versions {
l = options.Size(e)
n += 1 + l + runtime.Sov(uint64(l))
}
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*TrustRegistryWithVersions)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Versions) > 0 {
for iNdEx := len(x.Versions) - 1; iNdEx >= 0; iNdEx-- {
encoded, err := options.Marshal(x.Versions[iNdEx])
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x5a
}
}
if len(x.Language) > 0 {
i -= len(x.Language)
copy(dAtA[i:], x.Language)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Language)))
i--
dAtA[i] = 0x52
}
if x.ActiveVersion != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.ActiveVersion))
i--
dAtA[i] = 0x48
}
if len(x.Aka) > 0 {
i -= len(x.Aka)
copy(dAtA[i:], x.Aka)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Aka)))
i--
dAtA[i] = 0x42
}
if x.Deposit != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Deposit))
i--
dAtA[i] = 0x38
}
if x.Archived != nil {
encoded, err := options.Marshal(x.Archived)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x32
}
if x.Modified != nil {
encoded, err := options.Marshal(x.Modified)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x2a
}
if x.Created != nil {
encoded, err := options.Marshal(x.Created)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x22
}
if len(x.Controller) > 0 {
i -= len(x.Controller)
copy(dAtA[i:], x.Controller)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Controller)))
i--
dAtA[i] = 0x1a
}
if len(x.Did) > 0 {
i -= len(x.Did)
copy(dAtA[i:], x.Did)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did)))
i--
dAtA[i] = 0x12
}
if x.Id != 0 {
i = runtime.EncodeVarint(dAtA, i, uint64(x.Id))
i--
dAtA[i] = 0x8
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*TrustRegistryWithVersions)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustRegistryWithVersions: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TrustRegistryWithVersions: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
x.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Created == nil {
x.Created = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Created); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Modified == nil {
x.Modified = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Modified); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Archived == nil {
x.Archived = ×tamppb.Timestamp{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Archived); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
x.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 9:
if wireType != 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveVersion", wireType)
}
x.ActiveVersion = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
x.ActiveVersion |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 11:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Versions = append(x.Versions, &GovernanceFrameworkVersionWithDocs{})
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Versions[len(x.Versions)-1]); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/trustregistry/types.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type TrustRegistry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Added id field
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
Modified *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=modified,proto3" json:"modified,omitempty"`
Archived *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=archived,proto3" json:"archived,omitempty"`
Deposit int64 `protobuf:"varint,7,opt,name=deposit,proto3" json:"deposit,omitempty"`
Aka string `protobuf:"bytes,8,opt,name=aka,proto3" json:"aka,omitempty"`
ActiveVersion int32 `protobuf:"varint,9,opt,name=active_version,json=activeVersion,proto3" json:"active_version,omitempty"`
Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
}
func (x *TrustRegistry) Reset() {
*x = TrustRegistry{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TrustRegistry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrustRegistry) ProtoMessage() {}
// Deprecated: Use TrustRegistry.ProtoReflect.Descriptor instead.
func (*TrustRegistry) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_types_proto_rawDescGZIP(), []int{0}
}
func (x *TrustRegistry) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *TrustRegistry) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *TrustRegistry) GetController() string {
if x != nil {
return x.Controller
}
return ""
}
func (x *TrustRegistry) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *TrustRegistry) GetModified() *timestamppb.Timestamp {
if x != nil {
return x.Modified
}
return nil
}
func (x *TrustRegistry) GetArchived() *timestamppb.Timestamp {
if x != nil {
return x.Archived
}
return nil
}
func (x *TrustRegistry) GetDeposit() int64 {
if x != nil {
return x.Deposit
}
return 0
}
func (x *TrustRegistry) GetAka() string {
if x != nil {
return x.Aka
}
return ""
}
func (x *TrustRegistry) GetActiveVersion() int32 {
if x != nil {
return x.ActiveVersion
}
return 0
}
func (x *TrustRegistry) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
type GovernanceFrameworkVersion struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Changed from string to uint64
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"` // Changed from tr_did to tr_id
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
ActiveSince *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
}
func (x *GovernanceFrameworkVersion) Reset() {
*x = GovernanceFrameworkVersion{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GovernanceFrameworkVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GovernanceFrameworkVersion) ProtoMessage() {}
// Deprecated: Use GovernanceFrameworkVersion.ProtoReflect.Descriptor instead.
func (*GovernanceFrameworkVersion) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_types_proto_rawDescGZIP(), []int{1}
}
func (x *GovernanceFrameworkVersion) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *GovernanceFrameworkVersion) GetTrId() uint64 {
if x != nil {
return x.TrId
}
return 0
}
func (x *GovernanceFrameworkVersion) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *GovernanceFrameworkVersion) GetVersion() int32 {
if x != nil {
return x.Version
}
return 0
}
func (x *GovernanceFrameworkVersion) GetActiveSince() *timestamppb.Timestamp {
if x != nil {
return x.ActiveSince
}
return nil
}
type GovernanceFrameworkDocument struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Changed from string to uint64
GfvId uint64 `protobuf:"varint,2,opt,name=gfv_id,json=gfvId,proto3" json:"gfv_id,omitempty"` // Changed from string to uint64
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
DigestSri string `protobuf:"bytes,6,opt,name=digest_sri,json=digestSri,proto3" json:"digest_sri,omitempty"`
}
func (x *GovernanceFrameworkDocument) Reset() {
*x = GovernanceFrameworkDocument{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GovernanceFrameworkDocument) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GovernanceFrameworkDocument) ProtoMessage() {}
// Deprecated: Use GovernanceFrameworkDocument.ProtoReflect.Descriptor instead.
func (*GovernanceFrameworkDocument) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_types_proto_rawDescGZIP(), []int{2}
}
func (x *GovernanceFrameworkDocument) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *GovernanceFrameworkDocument) GetGfvId() uint64 {
if x != nil {
return x.GfvId
}
return 0
}
func (x *GovernanceFrameworkDocument) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *GovernanceFrameworkDocument) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *GovernanceFrameworkDocument) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *GovernanceFrameworkDocument) GetDigestSri() string {
if x != nil {
return x.DigestSri
}
return ""
}
// GovernanceFrameworkVersionWithDocs extends GovernanceFrameworkVersion to include its documents
type GovernanceFrameworkVersionWithDocs struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"`
Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
ActiveSince *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
Documents []*GovernanceFrameworkDocument `protobuf:"bytes,6,rep,name=documents,proto3" json:"documents,omitempty"`
}
func (x *GovernanceFrameworkVersionWithDocs) Reset() {
*x = GovernanceFrameworkVersionWithDocs{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GovernanceFrameworkVersionWithDocs) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GovernanceFrameworkVersionWithDocs) ProtoMessage() {}
// Deprecated: Use GovernanceFrameworkVersionWithDocs.ProtoReflect.Descriptor instead.
func (*GovernanceFrameworkVersionWithDocs) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_types_proto_rawDescGZIP(), []int{3}
}
func (x *GovernanceFrameworkVersionWithDocs) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *GovernanceFrameworkVersionWithDocs) GetTrId() uint64 {
if x != nil {
return x.TrId
}
return 0
}
func (x *GovernanceFrameworkVersionWithDocs) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *GovernanceFrameworkVersionWithDocs) GetVersion() int32 {
if x != nil {
return x.Version
}
return 0
}
func (x *GovernanceFrameworkVersionWithDocs) GetActiveSince() *timestamppb.Timestamp {
if x != nil {
return x.ActiveSince
}
return nil
}
func (x *GovernanceFrameworkVersionWithDocs) GetDocuments() []*GovernanceFrameworkDocument {
if x != nil {
return x.Documents
}
return nil
}
// TrustRegistryWithVersions extends TrustRegistry to include its versions with nested documents
type TrustRegistryWithVersions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
Modified *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=modified,proto3" json:"modified,omitempty"`
Archived *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=archived,proto3" json:"archived,omitempty"`
Deposit int64 `protobuf:"varint,7,opt,name=deposit,proto3" json:"deposit,omitempty"`
Aka string `protobuf:"bytes,8,opt,name=aka,proto3" json:"aka,omitempty"`
ActiveVersion int32 `protobuf:"varint,9,opt,name=active_version,json=activeVersion,proto3" json:"active_version,omitempty"`
Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
Versions []*GovernanceFrameworkVersionWithDocs `protobuf:"bytes,11,rep,name=versions,proto3" json:"versions,omitempty"`
}
func (x *TrustRegistryWithVersions) Reset() {
*x = TrustRegistryWithVersions{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_trustregistry_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TrustRegistryWithVersions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TrustRegistryWithVersions) ProtoMessage() {}
// Deprecated: Use TrustRegistryWithVersions.ProtoReflect.Descriptor instead.
func (*TrustRegistryWithVersions) Descriptor() ([]byte, []int) {
return file_veranablockchain_trustregistry_types_proto_rawDescGZIP(), []int{4}
}
func (x *TrustRegistryWithVersions) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *TrustRegistryWithVersions) GetDid() string {
if x != nil {
return x.Did
}
return ""
}
func (x *TrustRegistryWithVersions) GetController() string {
if x != nil {
return x.Controller
}
return ""
}
func (x *TrustRegistryWithVersions) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *TrustRegistryWithVersions) GetModified() *timestamppb.Timestamp {
if x != nil {
return x.Modified
}
return nil
}
func (x *TrustRegistryWithVersions) GetArchived() *timestamppb.Timestamp {
if x != nil {
return x.Archived
}
return nil
}
func (x *TrustRegistryWithVersions) GetDeposit() int64 {
if x != nil {
return x.Deposit
}
return 0
}
func (x *TrustRegistryWithVersions) GetAka() string {
if x != nil {
return x.Aka
}
return ""
}
func (x *TrustRegistryWithVersions) GetActiveVersion() int32 {
if x != nil {
return x.ActiveVersion
}
return 0
}
func (x *TrustRegistryWithVersions) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *TrustRegistryWithVersions) GetVersions() []*GovernanceFrameworkVersionWithDocs {
if x != nil {
return x.Versions
}
return nil
}
var File_veranablockchain_trustregistry_types_proto protoreflect.FileDescriptor
var file_veranablockchain_trustregistry_types_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74,
0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x1a, 0x11, 0x61, 0x6d,
0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x9e, 0x03, 0x0a, 0x0d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73,
0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
0x6c, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63,
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72,
0x69, 0x6e, 0x67, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12,
0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde,
0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12,
0x40, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8,
0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
0x64, 0x12, 0x40, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,
0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69,
0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x07,
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x10, 0x0a,
0x03, 0x61, 0x6b, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x6b, 0x61, 0x12,
0x25, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
0x67, 0x65, 0x22, 0xe4, 0x01, 0x0a, 0x1a, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63,
0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69,
0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
0x52, 0x04, 0x74, 0x72, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x12, 0x47, 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x69, 0x6e, 0x63, 0x65,
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0b, 0x61, 0x63,
0x74, 0x69, 0x76, 0x65, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x1b, 0x47, 0x6f,
0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72,
0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x67, 0x66, 0x76,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x67, 0x66, 0x76, 0x49, 0x64,
0x12, 0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8,
0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03,
0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d,
0x0a, 0x0a, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x72, 0x69, 0x18, 0x06, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x53, 0x72, 0x69, 0x22, 0xcd, 0x02,
0x0a, 0x22, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d,
0x65, 0x77, 0x6f, 0x72, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x74, 0x68,
0x44, 0x6f, 0x63, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x02, 0x69, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x74, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x72, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01,
0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x69,
0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52,
0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x5f, 0x0a, 0x09,
0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x3b, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65,
0x77, 0x6f, 0x72, 0x6b, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde,
0x1f, 0x00, 0x52, 0x09, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x90, 0x04,
0x0a, 0x19, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x57,
0x69, 0x74, 0x68, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x38, 0x0a,
0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64,
0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x63, 0x6f, 0x6e,
0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x07,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66,
0x69, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52,
0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x08, 0x61, 0x72, 0x63,
0x68, 0x69, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x01, 0x90, 0xdf, 0x1f,
0x01, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64,
0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6b, 0x61, 0x18, 0x08, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x61, 0x6b, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76,
0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52,
0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a,
0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x64, 0x0a, 0x08, 0x76, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x47, 0x6f,
0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72,
0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x63, 0x73,
0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73,
0x42, 0x96, 0x02, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72,
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
0x72, 0x79, 0xa2, 0x02, 0x03, 0x56, 0x54, 0x58, 0xaa, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73,
0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xca, 0x02, 0x1e, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72, 0x75,
0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0xe2, 0x02, 0x2a, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x54, 0x72,
0x75, 0x73, 0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x47, 0x50, 0x42, 0x4d,
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x54, 0x72, 0x75, 0x73,
0x74, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_veranablockchain_trustregistry_types_proto_rawDescOnce sync.Once
file_veranablockchain_trustregistry_types_proto_rawDescData = file_veranablockchain_trustregistry_types_proto_rawDesc
)
func file_veranablockchain_trustregistry_types_proto_rawDescGZIP() []byte {
file_veranablockchain_trustregistry_types_proto_rawDescOnce.Do(func() {
file_veranablockchain_trustregistry_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_trustregistry_types_proto_rawDescData)
})
return file_veranablockchain_trustregistry_types_proto_rawDescData
}
var file_veranablockchain_trustregistry_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_veranablockchain_trustregistry_types_proto_goTypes = []interface{}{
(*TrustRegistry)(nil), // 0: veranablockchain.trustregistry.TrustRegistry
(*GovernanceFrameworkVersion)(nil), // 1: veranablockchain.trustregistry.GovernanceFrameworkVersion
(*GovernanceFrameworkDocument)(nil), // 2: veranablockchain.trustregistry.GovernanceFrameworkDocument
(*GovernanceFrameworkVersionWithDocs)(nil), // 3: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs
(*TrustRegistryWithVersions)(nil), // 4: veranablockchain.trustregistry.TrustRegistryWithVersions
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_veranablockchain_trustregistry_types_proto_depIdxs = []int32{
5, // 0: veranablockchain.trustregistry.TrustRegistry.created:type_name -> google.protobuf.Timestamp
5, // 1: veranablockchain.trustregistry.TrustRegistry.modified:type_name -> google.protobuf.Timestamp
5, // 2: veranablockchain.trustregistry.TrustRegistry.archived:type_name -> google.protobuf.Timestamp
5, // 3: veranablockchain.trustregistry.GovernanceFrameworkVersion.created:type_name -> google.protobuf.Timestamp
5, // 4: veranablockchain.trustregistry.GovernanceFrameworkVersion.active_since:type_name -> google.protobuf.Timestamp
5, // 5: veranablockchain.trustregistry.GovernanceFrameworkDocument.created:type_name -> google.protobuf.Timestamp
5, // 6: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.created:type_name -> google.protobuf.Timestamp
5, // 7: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.active_since:type_name -> google.protobuf.Timestamp
2, // 8: veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs.documents:type_name -> veranablockchain.trustregistry.GovernanceFrameworkDocument
5, // 9: veranablockchain.trustregistry.TrustRegistryWithVersions.created:type_name -> google.protobuf.Timestamp
5, // 10: veranablockchain.trustregistry.TrustRegistryWithVersions.modified:type_name -> google.protobuf.Timestamp
5, // 11: veranablockchain.trustregistry.TrustRegistryWithVersions.archived:type_name -> google.protobuf.Timestamp
3, // 12: veranablockchain.trustregistry.TrustRegistryWithVersions.versions:type_name -> veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs
13, // [13:13] is the sub-list for method output_type
13, // [13:13] is the sub-list for method input_type
13, // [13:13] is the sub-list for extension type_name
13, // [13:13] is the sub-list for extension extendee
0, // [0:13] is the sub-list for field type_name
}
func init() { file_veranablockchain_trustregistry_types_proto_init() }
func file_veranablockchain_trustregistry_types_proto_init() {
if File_veranablockchain_trustregistry_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_trustregistry_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TrustRegistry); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GovernanceFrameworkVersion); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GovernanceFrameworkDocument); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GovernanceFrameworkVersionWithDocs); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_trustregistry_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TrustRegistryWithVersions); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_trustregistry_types_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_trustregistry_types_proto_goTypes,
DependencyIndexes: file_veranablockchain_trustregistry_types_proto_depIdxs,
MessageInfos: file_veranablockchain_trustregistry_types_proto_msgTypes,
}.Build()
File_veranablockchain_trustregistry_types_proto = out.File
file_veranablockchain_trustregistry_types_proto_rawDesc = nil
file_veranablockchain_trustregistry_types_proto_goTypes = nil
file_veranablockchain_trustregistry_types_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package veranablockchain
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_GenesisState protoreflect.MessageDescriptor
fd_GenesisState_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_veranablockchain_genesis_proto_init()
md_GenesisState = File_veranablockchain_veranablockchain_genesis_proto.Messages().ByName("GenesisState")
fd_GenesisState_params = md_GenesisState.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_GenesisState)(nil)
type fastReflection_GenesisState GenesisState
func (x *GenesisState) ProtoReflect() protoreflect.Message {
return (*fastReflection_GenesisState)(x)
}
func (x *GenesisState) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_genesis_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType
var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{}
type fastReflection_GenesisState_messageType struct{}
func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message {
return (*fastReflection_GenesisState)(nil)
}
func (x fastReflection_GenesisState_messageType) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor {
return md_GenesisState
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_GenesisState) Type() protoreflect.MessageType {
return _fastReflection_GenesisState_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_GenesisState) New() protoreflect.Message {
return new(fastReflection_GenesisState)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage {
return (*GenesisState)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_GenesisState_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.veranablockchain.GenesisState.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.GenesisState does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.GenesisState.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.GenesisState does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.veranablockchain.GenesisState.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.GenesisState does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.GenesisState.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.GenesisState does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.GenesisState.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.GenesisState does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.GenesisState.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.GenesisState"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.GenesisState does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.GenesisState", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_GenesisState) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*GenesisState)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/veranablockchain/genesis.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// GenesisState defines the veranablockchain module's genesis state.
type GenesisState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *GenesisState) Reset() {
*x = GenesisState{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_genesis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GenesisState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GenesisState) ProtoMessage() {}
// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_genesis_proto_rawDescGZIP(), []int{0}
}
func (x *GenesisState) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
var File_veranablockchain_veranablockchain_genesis_proto protoreflect.FileDescriptor
var file_veranablockchain_veranablockchain_genesis_proto_rawDesc = []byte{
0x0a, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a,
0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4c, 0x0a,
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7,
0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xaa, 0x02, 0x0a, 0x25,
0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x56, 0x58, 0xaa, 0x02, 0x21, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca,
0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64,
0x61, 0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_veranablockchain_genesis_proto_rawDescOnce sync.Once
file_veranablockchain_veranablockchain_genesis_proto_rawDescData = file_veranablockchain_veranablockchain_genesis_proto_rawDesc
)
func file_veranablockchain_veranablockchain_genesis_proto_rawDescGZIP() []byte {
file_veranablockchain_veranablockchain_genesis_proto_rawDescOnce.Do(func() {
file_veranablockchain_veranablockchain_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_veranablockchain_genesis_proto_rawDescData)
})
return file_veranablockchain_veranablockchain_genesis_proto_rawDescData
}
var file_veranablockchain_veranablockchain_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_veranablockchain_genesis_proto_goTypes = []interface{}{
(*GenesisState)(nil), // 0: veranablockchain.veranablockchain.GenesisState
(*Params)(nil), // 1: veranablockchain.veranablockchain.Params
}
var file_veranablockchain_veranablockchain_genesis_proto_depIdxs = []int32{
1, // 0: veranablockchain.veranablockchain.GenesisState.params:type_name -> veranablockchain.veranablockchain.Params
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_veranablockchain_genesis_proto_init() }
func file_veranablockchain_veranablockchain_genesis_proto_init() {
if File_veranablockchain_veranablockchain_genesis_proto != nil {
return
}
file_veranablockchain_veranablockchain_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_veranablockchain_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GenesisState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_veranablockchain_genesis_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_veranablockchain_genesis_proto_goTypes,
DependencyIndexes: file_veranablockchain_veranablockchain_genesis_proto_depIdxs,
MessageInfos: file_veranablockchain_veranablockchain_genesis_proto_msgTypes,
}.Build()
File_veranablockchain_veranablockchain_genesis_proto = out.File
file_veranablockchain_veranablockchain_genesis_proto_rawDesc = nil
file_veranablockchain_veranablockchain_genesis_proto_goTypes = nil
file_veranablockchain_veranablockchain_genesis_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package module
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/cosmos/app/v1alpha1"
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_Module protoreflect.MessageDescriptor
fd_Module_authority protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_veranablockchain_module_module_proto_init()
md_Module = File_veranablockchain_veranablockchain_module_module_proto.Messages().ByName("Module")
fd_Module_authority = md_Module.Fields().ByName("authority")
}
var _ protoreflect.Message = (*fastReflection_Module)(nil)
type fastReflection_Module Module
func (x *Module) ProtoReflect() protoreflect.Message {
return (*fastReflection_Module)(x)
}
func (x *Module) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_module_module_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Module_messageType fastReflection_Module_messageType
var _ protoreflect.MessageType = fastReflection_Module_messageType{}
type fastReflection_Module_messageType struct{}
func (x fastReflection_Module_messageType) Zero() protoreflect.Message {
return (*fastReflection_Module)(nil)
}
func (x fastReflection_Module_messageType) New() protoreflect.Message {
return new(fastReflection_Module)
}
func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor {
return md_Module
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Module) Type() protoreflect.MessageType {
return _fastReflection_Module_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Module) New() protoreflect.Message {
return new(fastReflection_Module)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage {
return (*Module)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_Module_authority, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.veranablockchain.module.Module.authority":
return x.Authority != ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.module.Module does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.module.Module.authority":
x.Authority = ""
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.module.Module does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.veranablockchain.module.Module.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.module.Module does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.module.Module.authority":
x.Authority = value.Interface().(string)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.module.Module does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.module.Module.authority":
panic(fmt.Errorf("field authority of message veranablockchain.veranablockchain.module.Module is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.module.Module does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.module.Module.authority":
return protoreflect.ValueOfString("")
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.module.Module"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.module.Module does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.module.Module", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Module) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Module)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/veranablockchain/module/module.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Module is the config object for the module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority defines the custom module authority. If not set, defaults to the governance module.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_module_module_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_module_module_proto_rawDescGZIP(), []int{0}
}
func (x *Module) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
var File_veranablockchain_veranablockchain_module_module_proto protoreflect.FileDescriptor
var file_veranablockchain_veranablockchain_module_module_proto_rawDesc = []byte{
0x0a, 0x35, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31,
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a,
0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x43, 0xba, 0xc0, 0x96,
0xda, 0x01, 0x3d, 0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x42, 0xd4, 0x02, 0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
0x5a, 0x55, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x56, 0x56, 0x4d, 0xaa, 0x02, 0x28,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x28, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x4d, 0x6f, 0x64,
0x75, 0x6c, 0x65, 0xe2, 0x02, 0x34, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x2a, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a,
0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_veranablockchain_module_module_proto_rawDescOnce sync.Once
file_veranablockchain_veranablockchain_module_module_proto_rawDescData = file_veranablockchain_veranablockchain_module_module_proto_rawDesc
)
func file_veranablockchain_veranablockchain_module_module_proto_rawDescGZIP() []byte {
file_veranablockchain_veranablockchain_module_module_proto_rawDescOnce.Do(func() {
file_veranablockchain_veranablockchain_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_veranablockchain_module_module_proto_rawDescData)
})
return file_veranablockchain_veranablockchain_module_module_proto_rawDescData
}
var file_veranablockchain_veranablockchain_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_veranablockchain_module_module_proto_goTypes = []interface{}{
(*Module)(nil), // 0: veranablockchain.veranablockchain.module.Module
}
var file_veranablockchain_veranablockchain_module_module_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_veranablockchain_module_module_proto_init() }
func file_veranablockchain_veranablockchain_module_module_proto_init() {
if File_veranablockchain_veranablockchain_module_module_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_veranablockchain_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Module); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_veranablockchain_module_module_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_veranablockchain_module_module_proto_goTypes,
DependencyIndexes: file_veranablockchain_veranablockchain_module_module_proto_depIdxs,
MessageInfos: file_veranablockchain_veranablockchain_module_module_proto_msgTypes,
}.Build()
File_veranablockchain_veranablockchain_module_module_proto = out.File
file_veranablockchain_veranablockchain_module_module_proto_rawDesc = nil
file_veranablockchain_veranablockchain_module_module_proto_goTypes = nil
file_veranablockchain_veranablockchain_module_module_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package veranablockchain
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_Params protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_veranablockchain_params_proto_init()
md_Params = File_veranablockchain_veranablockchain_params_proto.Messages().ByName("Params")
}
var _ protoreflect.Message = (*fastReflection_Params)(nil)
type fastReflection_Params Params
func (x *Params) ProtoReflect() protoreflect.Message {
return (*fastReflection_Params)(x)
}
func (x *Params) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_params_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_Params_messageType fastReflection_Params_messageType
var _ protoreflect.MessageType = fastReflection_Params_messageType{}
type fastReflection_Params_messageType struct{}
func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
return (*fastReflection_Params)(nil)
}
func (x fastReflection_Params_messageType) New() protoreflect.Message {
return new(fastReflection_Params)
}
func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
return md_Params
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Params) Type() protoreflect.MessageType {
return _fastReflection_Params_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Params) New() protoreflect.Message {
return new(fastReflection_Params)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
return (*Params)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.Params"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.Params does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.Params"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.Params does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.Params"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.Params does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.Params"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.Params does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.Params"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.Params does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.Params"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.Params does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.Params", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Params) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*Params)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/veranablockchain/params.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Params defines the parameters for the module.
type Params struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *Params) Reset() {
*x = Params{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_params_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Params) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Params) ProtoMessage() {}
// Deprecated: Use Params.ProtoReflect.Descriptor instead.
func (*Params) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_params_proto_rawDescGZIP(), []int{0}
}
var File_veranablockchain_veranablockchain_params_proto protoreflect.FileDescriptor
var file_veranablockchain_veranablockchain_params_proto_rawDesc = []byte{
0x0a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3d, 0x0a, 0x06,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x33, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a,
0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2f, 0x78, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xa9, 0x02, 0x0a, 0x25,
0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f,
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x56, 0x56, 0x58, 0xaa, 0x02, 0x21, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02,
0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_veranablockchain_params_proto_rawDescOnce sync.Once
file_veranablockchain_veranablockchain_params_proto_rawDescData = file_veranablockchain_veranablockchain_params_proto_rawDesc
)
func file_veranablockchain_veranablockchain_params_proto_rawDescGZIP() []byte {
file_veranablockchain_veranablockchain_params_proto_rawDescOnce.Do(func() {
file_veranablockchain_veranablockchain_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_veranablockchain_params_proto_rawDescData)
})
return file_veranablockchain_veranablockchain_params_proto_rawDescData
}
var file_veranablockchain_veranablockchain_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_veranablockchain_veranablockchain_params_proto_goTypes = []interface{}{
(*Params)(nil), // 0: veranablockchain.veranablockchain.Params
}
var file_veranablockchain_veranablockchain_params_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_veranablockchain_veranablockchain_params_proto_init() }
func file_veranablockchain_veranablockchain_params_proto_init() {
if File_veranablockchain_veranablockchain_params_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_veranablockchain_veranablockchain_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Params); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_veranablockchain_params_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_veranablockchain_veranablockchain_params_proto_goTypes,
DependencyIndexes: file_veranablockchain_veranablockchain_params_proto_depIdxs,
MessageInfos: file_veranablockchain_veranablockchain_params_proto_msgTypes,
}.Build()
File_veranablockchain_veranablockchain_params_proto = out.File
file_veranablockchain_veranablockchain_params_proto_rawDesc = nil
file_veranablockchain_veranablockchain_params_proto_goTypes = nil
file_veranablockchain_veranablockchain_params_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package veranablockchain
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/base/query/v1beta1"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_QueryParamsRequest protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_veranablockchain_query_proto_init()
md_QueryParamsRequest = File_veranablockchain_veranablockchain_query_proto.Messages().ByName("QueryParamsRequest")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
type fastReflection_QueryParamsRequest QueryParamsRequest
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(x)
}
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_query_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
type fastReflection_QueryParamsRequest_messageType struct{}
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsRequest)(nil)
}
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsRequest
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsRequest_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
return new(fastReflection_QueryParamsRequest)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
return (*QueryParamsRequest)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsRequest does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsRequest"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsRequest does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.QueryParamsRequest", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsRequest) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsRequest)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_QueryParamsResponse protoreflect.MessageDescriptor
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_veranablockchain_query_proto_init()
md_QueryParamsResponse = File_veranablockchain_veranablockchain_query_proto.Messages().ByName("QueryParamsResponse")
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
type fastReflection_QueryParamsResponse QueryParamsResponse
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(x)
}
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_query_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
type fastReflection_QueryParamsResponse_messageType struct{}
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_QueryParamsResponse)(nil)
}
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_QueryParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_QueryParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
return new(fastReflection_QueryParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
return (*QueryParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_QueryParamsResponse_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.veranablockchain.QueryParamsResponse.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.QueryParamsResponse.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.veranablockchain.QueryParamsResponse.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.QueryParamsResponse.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.QueryParamsResponse.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.QueryParamsResponse.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.QueryParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.QueryParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.QueryParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_QueryParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*QueryParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/veranablockchain/query.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *QueryParamsRequest) Reset() {
*x = QueryParamsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsRequest) ProtoMessage() {}
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_query_proto_rawDescGZIP(), []int{0}
}
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// params holds all the parameters of this module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *QueryParamsResponse) Reset() {
*x = QueryParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueryParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamsResponse) ProtoMessage() {}
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_query_proto_rawDescGZIP(), []int{1}
}
func (x *QueryParamsResponse) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
var File_veranablockchain_veranablockchain_query_proto protoreflect.FileDescriptor
var file_veranablockchain_veranablockchain_query_proto_rawDesc = []byte{
0x0a, 0x2d, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x21, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62,
0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x63, 0x0a, 0x13, 0x51,
0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8,
0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73,
0x32, 0xc1, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0xb7, 0x01, 0x0a, 0x06, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x12, 0x36, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x73, 0x42, 0xa8, 0x02, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x0a,
0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d,
0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x56,
0x56, 0x58, 0xaa, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x2d, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x47,
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_veranablockchain_query_proto_rawDescOnce sync.Once
file_veranablockchain_veranablockchain_query_proto_rawDescData = file_veranablockchain_veranablockchain_query_proto_rawDesc
)
func file_veranablockchain_veranablockchain_query_proto_rawDescGZIP() []byte {
file_veranablockchain_veranablockchain_query_proto_rawDescOnce.Do(func() {
file_veranablockchain_veranablockchain_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_veranablockchain_query_proto_rawDescData)
})
return file_veranablockchain_veranablockchain_query_proto_rawDescData
}
var file_veranablockchain_veranablockchain_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_veranablockchain_veranablockchain_query_proto_goTypes = []interface{}{
(*QueryParamsRequest)(nil), // 0: veranablockchain.veranablockchain.QueryParamsRequest
(*QueryParamsResponse)(nil), // 1: veranablockchain.veranablockchain.QueryParamsResponse
(*Params)(nil), // 2: veranablockchain.veranablockchain.Params
}
var file_veranablockchain_veranablockchain_query_proto_depIdxs = []int32{
2, // 0: veranablockchain.veranablockchain.QueryParamsResponse.params:type_name -> veranablockchain.veranablockchain.Params
0, // 1: veranablockchain.veranablockchain.Query.Params:input_type -> veranablockchain.veranablockchain.QueryParamsRequest
1, // 2: veranablockchain.veranablockchain.Query.Params:output_type -> veranablockchain.veranablockchain.QueryParamsResponse
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_veranablockchain_query_proto_init() }
func file_veranablockchain_veranablockchain_query_proto_init() {
if File_veranablockchain_veranablockchain_query_proto != nil {
return
}
file_veranablockchain_veranablockchain_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_veranablockchain_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_veranablockchain_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueryParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_veranablockchain_query_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_veranablockchain_query_proto_goTypes,
DependencyIndexes: file_veranablockchain_veranablockchain_query_proto_depIdxs,
MessageInfos: file_veranablockchain_veranablockchain_query_proto_msgTypes,
}.Build()
File_veranablockchain_veranablockchain_query_proto = out.File
file_veranablockchain_veranablockchain_query_proto_rawDesc = nil
file_veranablockchain_veranablockchain_query_proto_goTypes = nil
file_veranablockchain_veranablockchain_query_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/veranablockchain/query.proto
package veranablockchain
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Query_Params_FullMethodName = "/veranablockchain.veranablockchain.Query/Params"
)
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
type queryClient struct {
cc grpc.ClientConnInterface
}
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
// All implementations must embed UnimplementedQueryServer
// for forward compatibility
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
mustEmbedUnimplementedQueryServer()
}
// UnimplementedQueryServer must be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QueryServer will
// result in compilation errors.
type UnsafeQueryServer interface {
mustEmbedUnimplementedQueryServer()
}
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) {
s.RegisterService(&Query_ServiceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Query_Params_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.veranablockchain.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/veranablockchain/query.proto",
}
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package veranablockchain
import (
fmt "fmt"
io "io"
reflect "reflect"
sync "sync"
_ "cosmossdk.io/api/amino"
_ "cosmossdk.io/api/cosmos/msg/v1"
_ "github.com/cosmos/cosmos-proto"
runtime "github.com/cosmos/cosmos-proto/runtime"
_ "github.com/cosmos/gogoproto/gogoproto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
var (
md_MsgUpdateParams protoreflect.MessageDescriptor
fd_MsgUpdateParams_authority protoreflect.FieldDescriptor
fd_MsgUpdateParams_params protoreflect.FieldDescriptor
)
func init() {
file_veranablockchain_veranablockchain_tx_proto_init()
md_MsgUpdateParams = File_veranablockchain_veranablockchain_tx_proto.Messages().ByName("MsgUpdateParams")
fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority")
fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil)
type fastReflection_MsgUpdateParams MsgUpdateParams
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(x)
}
func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_tx_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{}
type fastReflection_MsgUpdateParams_messageType struct{}
func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParams)(nil)
}
func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParams
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParams_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParams)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParams)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
if x.Authority != "" {
value := protoreflect.ValueOfString(x.Authority)
if !f(fd_MsgUpdateParams_authority, value) {
return
}
}
if x.Params != nil {
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
if !f(fd_MsgUpdateParams_params, value) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
case "veranablockchain.veranablockchain.MsgUpdateParams.authority":
return x.Authority != ""
case "veranablockchain.veranablockchain.MsgUpdateParams.params":
return x.Params != nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.MsgUpdateParams.authority":
x.Authority = ""
case "veranablockchain.veranablockchain.MsgUpdateParams.params":
x.Params = nil
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
case "veranablockchain.veranablockchain.MsgUpdateParams.authority":
value := x.Authority
return protoreflect.ValueOfString(value)
case "veranablockchain.veranablockchain.MsgUpdateParams.params":
value := x.Params
return protoreflect.ValueOfMessage(value.ProtoReflect())
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParams does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
case "veranablockchain.veranablockchain.MsgUpdateParams.authority":
x.Authority = value.Interface().(string)
case "veranablockchain.veranablockchain.MsgUpdateParams.params":
x.Params = value.Message().Interface().(*Params)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.MsgUpdateParams.params":
if x.Params == nil {
x.Params = new(Params)
}
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
case "veranablockchain.veranablockchain.MsgUpdateParams.authority":
panic(fmt.Errorf("field authority of message veranablockchain.veranablockchain.MsgUpdateParams is not mutable"))
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
case "veranablockchain.veranablockchain.MsgUpdateParams.authority":
return protoreflect.ValueOfString("")
case "veranablockchain.veranablockchain.MsgUpdateParams.params":
m := new(Params)
return protoreflect.ValueOfMessage(m.ProtoReflect())
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParams"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParams does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.MsgUpdateParams", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParams) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
l = len(x.Authority)
if l > 0 {
n += 1 + l + runtime.Sov(uint64(l))
}
if x.Params != nil {
l = options.Size(x.Params)
n += 1 + l + runtime.Sov(uint64(l))
}
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if x.Params != nil {
encoded, err := options.Marshal(x.Params)
if err != nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, err
}
i -= len(encoded)
copy(dAtA[i:], encoded)
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
i--
dAtA[i] = 0x12
}
if len(x.Authority) > 0 {
i -= len(x.Authority)
copy(dAtA[i:], x.Authority)
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority)))
i--
dAtA[i] = 0xa
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParams)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
x.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if postIndex > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if x.Params == nil {
x.Params = &Params{}
}
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
var (
md_MsgUpdateParamsResponse protoreflect.MessageDescriptor
)
func init() {
file_veranablockchain_veranablockchain_tx_proto_init()
md_MsgUpdateParamsResponse = File_veranablockchain_veranablockchain_tx_proto.Messages().ByName("MsgUpdateParamsResponse")
}
var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil)
type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(x)
}
func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message {
mi := &file_veranablockchain_veranablockchain_tx_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType
var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{}
type fastReflection_MsgUpdateParamsResponse_messageType struct{}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message {
return (*fastReflection_MsgUpdateParamsResponse)(nil)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor {
return md_MsgUpdateParamsResponse
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType {
return _fastReflection_MsgUpdateParamsResponse_messageType
}
// New returns a newly allocated and mutable empty message.
func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message {
return new(fastReflection_MsgUpdateParamsResponse)
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage {
return (*MsgUpdateParamsResponse)(x)
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
switch descriptor.FullName() {
default:
if descriptor.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName()))
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: veranablockchain.veranablockchain.MsgUpdateParamsResponse"))
}
panic(fmt.Errorf("message veranablockchain.veranablockchain.MsgUpdateParamsResponse does not contain field %s", fd.FullName()))
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
switch d.FullName() {
default:
panic(fmt.Errorf("%s is not a oneof field in veranablockchain.veranablockchain.MsgUpdateParamsResponse", d.FullName()))
}
panic("unreachable")
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields {
return x.unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) {
x.unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods {
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: 0,
}
}
options := runtime.SizeInputToOptions(input)
_ = options
var n int
var l int
_ = l
if x.unknownFields != nil {
n += len(x.unknownFields)
}
return protoiface.SizeOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Size: n,
}
}
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
options := runtime.MarshalInputToOptions(input)
_ = options
size := options.Size(x)
dAtA := make([]byte, size)
i := len(dAtA)
_ = i
var l int
_ = l
if x.unknownFields != nil {
i -= len(x.unknownFields)
copy(dAtA[i:], x.unknownFields)
}
if input.Buf != nil {
input.Buf = append(input.Buf, dAtA...)
} else {
input.Buf = dAtA
}
return protoiface.MarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Buf: input.Buf,
}, nil
}
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
x := input.Message.Interface().(*MsgUpdateParamsResponse)
if x == nil {
return protoiface.UnmarshalOutput{
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
Flags: input.Flags,
}, nil
}
options := runtime.UnmarshalInputToOptions(input)
_ = options
dAtA := input.Buf
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
}
if iNdEx >= l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := runtime.Skip(dAtA[iNdEx:])
if err != nil {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
}
if (iNdEx + skippy) > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
if !options.DiscardUnknown {
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
}
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
}
return &protoiface.Methods{
NoUnkeyedLiterals: struct{}{},
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
Size: size,
Marshal: marshal,
Unmarshal: unmarshal,
Merge: nil,
CheckInitialized: nil,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc (unknown)
// source: veranablockchain/veranablockchain/tx.proto
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}
func (x *MsgUpdateParams) Reset() {
*x = MsgUpdateParams{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_tx_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParams) ProtoMessage() {}
// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_tx_proto_rawDescGZIP(), []int{0}
}
func (x *MsgUpdateParams) GetAuthority() string {
if x != nil {
return x.Authority
}
return ""
}
func (x *MsgUpdateParams) GetParams() *Params {
if x != nil {
return x.Params
}
return nil
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MsgUpdateParamsResponse) Reset() {
*x = MsgUpdateParamsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_veranablockchain_veranablockchain_tx_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MsgUpdateParamsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MsgUpdateParamsResponse) ProtoMessage() {}
// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return file_veranablockchain_veranablockchain_tx_proto_rawDescGZIP(), []int{1}
}
var File_veranablockchain_veranablockchain_tx_proto protoreflect.FileDescriptor
var file_veranablockchain_veranablockchain_tx_proto_rawDesc = []byte{
0x0a, 0x2a, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68,
0x61, 0x69, 0x6e, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x1a,
0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76,
0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73,
0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a,
0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61,
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06,
0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x46, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74,
0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x33, 0x76, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x76, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x4d,
0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19,
0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8c, 0x01, 0x0a, 0x03, 0x4d, 0x73,
0x67, 0x12, 0x7e, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d,
0x73, 0x12, 0x32, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63,
0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x3a, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xa5, 0x02, 0x0a, 0x25, 0x63, 0x6f, 0x6d,
0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
0x6e, 0x2e, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61,
0x69, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x2d, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x61,
0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72,
0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xa2, 0x02, 0x03,
0x56, 0x56, 0x58, 0xaa, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63,
0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f,
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xca, 0x02, 0x21, 0x56, 0x65, 0x72, 0x61, 0x6e, 0x61,
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56, 0x65, 0x72, 0x61, 0x6e,
0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0xe2, 0x02, 0x2d, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c, 0x56,
0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5c,
0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x22, 0x56, 0x65,
0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x3a, 0x3a,
0x56, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_veranablockchain_veranablockchain_tx_proto_rawDescOnce sync.Once
file_veranablockchain_veranablockchain_tx_proto_rawDescData = file_veranablockchain_veranablockchain_tx_proto_rawDesc
)
func file_veranablockchain_veranablockchain_tx_proto_rawDescGZIP() []byte {
file_veranablockchain_veranablockchain_tx_proto_rawDescOnce.Do(func() {
file_veranablockchain_veranablockchain_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_veranablockchain_veranablockchain_tx_proto_rawDescData)
})
return file_veranablockchain_veranablockchain_tx_proto_rawDescData
}
var file_veranablockchain_veranablockchain_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_veranablockchain_veranablockchain_tx_proto_goTypes = []interface{}{
(*MsgUpdateParams)(nil), // 0: veranablockchain.veranablockchain.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 1: veranablockchain.veranablockchain.MsgUpdateParamsResponse
(*Params)(nil), // 2: veranablockchain.veranablockchain.Params
}
var file_veranablockchain_veranablockchain_tx_proto_depIdxs = []int32{
2, // 0: veranablockchain.veranablockchain.MsgUpdateParams.params:type_name -> veranablockchain.veranablockchain.Params
0, // 1: veranablockchain.veranablockchain.Msg.UpdateParams:input_type -> veranablockchain.veranablockchain.MsgUpdateParams
1, // 2: veranablockchain.veranablockchain.Msg.UpdateParams:output_type -> veranablockchain.veranablockchain.MsgUpdateParamsResponse
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_veranablockchain_veranablockchain_tx_proto_init() }
func file_veranablockchain_veranablockchain_tx_proto_init() {
if File_veranablockchain_veranablockchain_tx_proto != nil {
return
}
file_veranablockchain_veranablockchain_params_proto_init()
if !protoimpl.UnsafeEnabled {
file_veranablockchain_veranablockchain_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParams); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_veranablockchain_veranablockchain_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MsgUpdateParamsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_veranablockchain_veranablockchain_tx_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_veranablockchain_veranablockchain_tx_proto_goTypes,
DependencyIndexes: file_veranablockchain_veranablockchain_tx_proto_depIdxs,
MessageInfos: file_veranablockchain_veranablockchain_tx_proto_msgTypes,
}.Build()
File_veranablockchain_veranablockchain_tx_proto = out.File
file_veranablockchain_veranablockchain_tx_proto_rawDesc = nil
file_veranablockchain_veranablockchain_tx_proto_goTypes = nil
file_veranablockchain_veranablockchain_tx_proto_depIdxs = nil
}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: veranablockchain/veranablockchain/tx.proto
package veranablockchain
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Msg_UpdateParams_FullMethodName = "/veranablockchain.veranablockchain.Msg/UpdateParams"
)
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}
type msgClient struct {
cc grpc.ClientConnInterface
}
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
// All implementations must embed UnimplementedMsgServer
// for forward compatibility
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
mustEmbedUnimplementedMsgServer()
}
// UnimplementedMsgServer must be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {}
// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MsgServer will
// result in compilation errors.
type UnsafeMsgServer interface {
mustEmbedUnimplementedMsgServer()
}
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) {
s.RegisterService(&Msg_ServiceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Msg_UpdateParams_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Msg_ServiceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.veranablockchain.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/veranablockchain/tx.proto",
}
package app
import (
"fmt"
"io"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/verana-labs/verana-blockchain/app/upgrades"
"cosmossdk.io/x/evidence"
"cosmossdk.io/x/upgrade"
"github.com/cosmos/cosmos-sdk/x/auth/vesting"
"github.com/cosmos/cosmos-sdk/x/bank"
"github.com/cosmos/cosmos-sdk/x/consensus"
"github.com/cosmos/cosmos-sdk/x/crisis"
"github.com/cosmos/cosmos-sdk/x/mint"
"github.com/cosmos/cosmos-sdk/x/params"
"github.com/cosmos/cosmos-sdk/x/slashing"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cosmos/ibc-go/modules/capability"
ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts"
ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee"
ibctransfer "github.com/cosmos/ibc-go/v8/modules/apps/transfer"
ibc "github.com/cosmos/ibc-go/v8/modules/core"
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
_ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects
clienthelpers "cosmossdk.io/client/v2/helpers"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
storetypes "cosmossdk.io/store/types"
_ "cosmossdk.io/x/circuit" // import for side-effects
circuitkeeper "cosmossdk.io/x/circuit/keeper"
_ "cosmossdk.io/x/evidence" // import for side-effects
evidencekeeper "cosmossdk.io/x/evidence/keeper"
feegrantkeeper "cosmossdk.io/x/feegrant/keeper"
_ "cosmossdk.io/x/feegrant/module" // import for side-effects
nftkeeper "cosmossdk.io/x/nft/keeper"
_ "cosmossdk.io/x/nft/module" // import for side-effects
_ "cosmossdk.io/x/upgrade" // import for side-effects
upgradekeeper "cosmossdk.io/x/upgrade/keeper"
abci "github.com/cometbft/cometbft/abci/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/server/api"
"github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/auth"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation"
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import for side-effects
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
_ "github.com/cosmos/cosmos-sdk/x/auth/vesting" // import for side-effects
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
_ "github.com/cosmos/cosmos-sdk/x/authz/module" // import for side-effects
_ "github.com/cosmos/cosmos-sdk/x/bank" // import for side-effects
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
_ "github.com/cosmos/cosmos-sdk/x/consensus" // import for side-effects
consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
_ "github.com/cosmos/cosmos-sdk/x/crisis" // import for side-effects
crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
_ "github.com/cosmos/cosmos-sdk/x/distribution" // import for side-effects
distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/cosmos/cosmos-sdk/x/gov"
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper"
_ "github.com/cosmos/cosmos-sdk/x/group/module" // import for side-effects
_ "github.com/cosmos/cosmos-sdk/x/mint" // import for side-effects
mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
_ "github.com/cosmos/cosmos-sdk/x/params" // import for side-effects
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
_ "github.com/cosmos/cosmos-sdk/x/slashing" // import for side-effects
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
_ "github.com/cosmos/cosmos-sdk/x/staking" // import for side-effects
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
_ "github.com/cosmos/ibc-go/modules/capability" // import for side-effects
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
_ "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" // import for side-effects
icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper"
icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
_ "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" // import for side-effects
ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper"
ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
diddirectorymodulekeeper "github.com/verana-labs/verana-blockchain/x/diddirectory/keeper"
trustregistrymodulekeeper "github.com/verana-labs/verana-blockchain/x/trustregistry/keeper"
credentialschemamodulekeeper "github.com/verana-labs/verana-blockchain/x/credentialschema/keeper"
permissionmodulekeeper "github.com/verana-labs/verana-blockchain/x/permission/keeper"
trustdepositmodulekeeper "github.com/verana-labs/verana-blockchain/x/trustdeposit/keeper"
// this line is used by starport scaffolding # stargate/app/moduleImport
authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module"
"github.com/verana-labs/verana-blockchain/docs"
)
const (
AccountAddressPrefix = "verana"
Name = "verana"
)
var (
// DefaultNodeHome default home directories for the application daemon
DefaultNodeHome string
ModuleBasics = module.NewBasicManager(
auth.AppModuleBasic{},
genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
bank.AppModuleBasic{},
capability.AppModuleBasic{},
staking.AppModuleBasic{},
mint.AppModuleBasic{},
//gov.NewAppModuleBasic(GetGovProposalHandlers()),
params.AppModuleBasic{},
crisis.AppModuleBasic{},
slashing.AppModuleBasic{},
authzmodule.AppModuleBasic{},
ibc.AppModuleBasic{},
ibctm.AppModuleBasic{},
upgrade.AppModuleBasic{},
evidence.AppModuleBasic{},
ibctransfer.AppModuleBasic{},
consensus.AppModuleBasic{},
vesting.AppModuleBasic{},
ica.AppModuleBasic{},
ibcfee.AppModuleBasic{},
)
)
var (
_ runtime.AppI = (*App)(nil)
_ servertypes.Application = (*App)(nil)
)
// App extends an ABCI application, but with most of its parameters exported.
// They are exported for convenience in creating helper functions, as object
// capabilities aren't needed for testing.
type App struct {
*runtime.App
legacyAmino *codec.LegacyAmino
appCodec codec.Codec
txConfig client.TxConfig
interfaceRegistry codectypes.InterfaceRegistry
configurator module.Configurator
// keepers
AccountKeeper authkeeper.AccountKeeper
BankKeeper bankkeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
DistrKeeper distrkeeper.Keeper
ConsensusParamsKeeper consensuskeeper.Keeper
SlashingKeeper slashingkeeper.Keeper
MintKeeper mintkeeper.Keeper
GovKeeper *govkeeper.Keeper
CrisisKeeper *crisiskeeper.Keeper
UpgradeKeeper *upgradekeeper.Keeper
ParamsKeeper paramskeeper.Keeper
AuthzKeeper authzkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
GroupKeeper groupkeeper.Keeper
NFTKeeper nftkeeper.Keeper
CircuitBreakerKeeper circuitkeeper.Keeper
// IBC
IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
CapabilityKeeper *capabilitykeeper.Keeper
IBCFeeKeeper ibcfeekeeper.Keeper
ICAControllerKeeper icacontrollerkeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
TransferKeeper ibctransferkeeper.Keeper
// Scoped IBC
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedIBCTransferKeeper capabilitykeeper.ScopedKeeper
ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
ScopedKeepers map[string]capabilitykeeper.ScopedKeeper
TrustregistryKeeper trustregistrymodulekeeper.Keeper
DiddirectoryKeeper diddirectorymodulekeeper.Keeper
CredentialschemaKeeper credentialschemamodulekeeper.Keeper
PermissionKeeper permissionmodulekeeper.Keeper
TrustdepositKeeper trustdepositmodulekeeper.Keeper
// this line is used by starport scaffolding # stargate/app/keeperDeclaration
// simulation manager
sm *module.SimulationManager
}
func init() {
var err error
clienthelpers.EnvPrefix = Name
DefaultNodeHome, err = clienthelpers.GetNodeHomeDirectory("." + Name)
if err != nil {
panic(err)
}
}
// getGovProposalHandlers return the chain proposal handlers.
func getGovProposalHandlers() []govclient.ProposalHandler {
var govProposalHandlers []govclient.ProposalHandler
// this line is used by starport scaffolding # stargate/app/govProposalHandlers
govProposalHandlers = append(govProposalHandlers,
paramsclient.ProposalHandler,
// this line is used by starport scaffolding # stargate/app/govProposalHandler
)
return govProposalHandlers
}
// AppConfig returns the default app config.
func AppConfig() depinject.Config {
return depinject.Configs(
appConfig,
// Alternatively, load the app config from a YAML file.
// appconfig.LoadYAML(AppConfigYAML),
depinject.Supply(
// supply custom module basics
map[string]module.AppModuleBasic{
genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
govtypes.ModuleName: gov.NewAppModuleBasic(getGovProposalHandlers()),
// this line is used by starport scaffolding # stargate/appConfig/moduleBasic
},
),
)
}
func (app *App) GetDidDirectoryKeeper() diddirectorymodulekeeper.Keeper {
return app.DiddirectoryKeeper
}
func (app *App) GetCredentialSchemaKeeper() credentialschemamodulekeeper.Keeper {
return app.CredentialschemaKeeper
}
// New returns a reference to an initialized App.
func New(
logger log.Logger,
db dbm.DB,
traceStore io.Writer,
loadLatest bool,
appOpts servertypes.AppOptions,
baseAppOptions ...func(*baseapp.BaseApp),
) (*App, error) {
var (
app = &App{ScopedKeepers: make(map[string]capabilitykeeper.ScopedKeeper)}
appBuilder *runtime.AppBuilder
// merge the AppConfig and other configuration in one config
appConfig = depinject.Configs(
AppConfig(),
depinject.Supply(
appOpts, // supply app options
logger, // supply logger
// Supply with IBC keeper getter for the IBC modules with App Wiring.
// The IBC Keeper cannot be passed because it has not been initiated yet.
// Passing the getter, the app IBC Keeper will always be accessible.
// This needs to be removed after IBC supports App Wiring.
app.GetIBCKeeper,
app.GetCapabilityScopedKeeper,
// here alternative options can be supplied to the DI container.
// those options can be used f.e to override the default behavior of some modules.
// for instance supplying a custom address codec for not using bech32 addresses.
// read the depinject documentation and depinject module wiring for more information
// on available options and how to use them.
),
)
)
if err := depinject.Inject(appConfig,
&appBuilder,
&app.appCodec,
&app.legacyAmino,
&app.txConfig,
&app.interfaceRegistry,
&app.AccountKeeper,
&app.BankKeeper,
&app.StakingKeeper,
&app.DistrKeeper,
&app.ConsensusParamsKeeper,
&app.SlashingKeeper,
&app.MintKeeper,
&app.GovKeeper,
&app.CrisisKeeper,
&app.UpgradeKeeper,
&app.ParamsKeeper,
&app.AuthzKeeper,
&app.EvidenceKeeper,
&app.FeeGrantKeeper,
&app.NFTKeeper,
&app.GroupKeeper,
&app.CircuitBreakerKeeper,
&app.TrustregistryKeeper,
&app.DiddirectoryKeeper,
&app.CredentialschemaKeeper,
&app.PermissionKeeper,
&app.TrustdepositKeeper,
// this line is used by starport scaffolding # stargate/app/keeperDefinition
); err != nil {
panic(err)
}
// add to default baseapp options
// enable optimistic execution
baseAppOptions = append(baseAppOptions, baseapp.SetOptimisticExecution())
// build app
app.App = appBuilder.Build(db, traceStore, baseAppOptions...)
// register legacy modules
if err := app.registerIBCModules(appOpts); err != nil {
return nil, err
}
// register streaming services
if err := app.RegisterStreamingServices(appOpts, app.kvStoreKeys()); err != nil {
return nil, err
}
/**** Module Options ****/
app.ModuleManager.RegisterInvariants(app.CrisisKeeper)
// create the simulation manager and define the order of the modules for deterministic simulations
overrideModules := map[string]module.AppModuleSimulation{
authtypes.ModuleName: auth.NewAppModule(app.appCodec, app.AccountKeeper, authsims.RandomGenesisAccounts, app.GetSubspace(authtypes.ModuleName)),
}
app.sm = module.NewSimulationManagerFromAppModules(app.ModuleManager.Modules, overrideModules)
app.sm.RegisterStoreDecoders()
// A custom InitChainer sets if extra pre-init-genesis logic is required.
// This is necessary for manually registered modules that do not support app wiring.
// Manually set the module version map as shown below.
// The upgrade module will automatically handle de-duplication of the module version map.
app.SetInitChainer(func(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error) {
if err := app.UpgradeKeeper.SetModuleVersionMap(ctx, app.ModuleManager.GetVersionMap()); err != nil {
return nil, err
}
return app.App.InitChainer(ctx, req)
})
app.configurator = module.NewConfigurator(app.appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter())
// Set up upgrade handlers
app.setupUpgradeHandlers()
app.setupUpgradeStoreLoaders()
if err := app.Load(loadLatest); err != nil {
return nil, err
}
return app, nil
}
func (app *App) setupUpgradeStoreLoaders() {
upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
if err != nil {
panic(fmt.Sprintf("failed to read upgrade info from disk %s", err))
}
if app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
return
}
for _, upgrade := range upgrades.Upgrades {
if upgradeInfo.Name == upgrade.UpgradeName {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &upgrade.StoreUpgrades))
}
}
}
// Add setupUpgradeHandlers function
func (app *App) setupUpgradeHandlers() {
for _, u := range upgrades.Upgrades {
app.UpgradeKeeper.SetUpgradeHandler(
u.UpgradeName,
u.CreateUpgradeHandler(
app.ModuleManager,
app.configurator,
app.BaseApp,
app,
),
)
}
}
// LegacyAmino returns App's amino codec.
//
// NOTE: This is solely to be used for testing purposes as it may be desirable
// for modules to register their own custom testing types.
func (app *App) LegacyAmino() *codec.LegacyAmino {
return app.legacyAmino
}
// AppCodec returns App's app codec.
//
// NOTE: This is solely to be used for testing purposes as it may be desirable
// for modules to register their own custom testing types.
func (app *App) AppCodec() codec.Codec {
return app.appCodec
}
// InterfaceRegistry returns App's interfaceRegistry.
func (app *App) InterfaceRegistry() codectypes.InterfaceRegistry {
return app.interfaceRegistry
}
// TxConfig returns App's tx config.
func (app *App) TxConfig() client.TxConfig {
return app.txConfig
}
// GetKey returns the KVStoreKey for the provided store key.
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey {
kvStoreKey, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.KVStoreKey)
if !ok {
return nil
}
return kvStoreKey
}
// GetMemKey returns the MemoryStoreKey for the provided store key.
func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey {
key, ok := app.UnsafeFindStoreKey(storeKey).(*storetypes.MemoryStoreKey)
if !ok {
return nil
}
return key
}
// kvStoreKeys returns all the kv store keys registered inside App.
func (app *App) kvStoreKeys() map[string]*storetypes.KVStoreKey {
keys := make(map[string]*storetypes.KVStoreKey)
for _, k := range app.GetStoreKeys() {
if kv, ok := k.(*storetypes.KVStoreKey); ok {
keys[kv.Name()] = kv
}
}
return keys
}
// GetSubspace returns a param subspace for a given module name.
func (app *App) GetSubspace(moduleName string) paramstypes.Subspace {
subspace, _ := app.ParamsKeeper.GetSubspace(moduleName)
return subspace
}
// GetIBCKeeper returns the IBC keeper.
func (app *App) GetIBCKeeper() *ibckeeper.Keeper {
return app.IBCKeeper
}
// GetCapabilityScopedKeeper returns the capability scoped keeper.
func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper {
sk, ok := app.ScopedKeepers[moduleName]
if !ok {
sk = app.CapabilityKeeper.ScopeToModule(moduleName)
app.ScopedKeepers[moduleName] = sk
}
return sk
}
// SimulationManager implements the SimulationApp interface.
func (app *App) SimulationManager() *module.SimulationManager {
return app.sm
}
// RegisterAPIRoutes registers all application module routes with the provided
// API server.
func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
ctx := apiSvr.ClientCtx
app.App.RegisterAPIRoutes(apiSvr, apiConfig)
// register swagger API in app.go so that other applications can override easily
if err := server.RegisterSwaggerAPI(apiSvr.ClientCtx, apiSvr.Router, apiConfig.Swagger); err != nil {
panic(err)
}
// Register legacy and grpc-gateway routes for all modules.
ModuleBasics.RegisterGRPCGatewayRoutes(ctx, apiSvr.GRPCGatewayRouter)
// register app's OpenAPI routes.
docs.RegisterOpenAPIService(Name, apiSvr.Router)
}
// GetMaccPerms returns a copy of the module account permissions
//
// NOTE: This is solely to be used for testing purposes.
func GetMaccPerms() map[string][]string {
dup := make(map[string][]string)
for _, perms := range moduleAccPerms {
dup[perms.Account] = perms.Permissions
}
return dup
}
// BlockedAddresses returns all the app's blocked account addresses.
func BlockedAddresses() map[string]bool {
result := make(map[string]bool)
if len(blockAccAddrs) > 0 {
for _, addr := range blockAccAddrs {
result[addr] = true
}
} else {
for addr := range GetMaccPerms() {
result[addr] = true
}
}
return result
}
package app
import sdk "github.com/cosmos/cosmos-sdk/types"
func init() {
// Set prefixes
accountPubKeyPrefix := AccountAddressPrefix + "pub"
validatorAddressPrefix := AccountAddressPrefix + "valoper"
validatorPubKeyPrefix := AccountAddressPrefix + "valoperpub"
consNodeAddressPrefix := AccountAddressPrefix + "valcons"
consNodePubKeyPrefix := AccountAddressPrefix + "valconspub"
// Set and seal config
config := sdk.GetConfig()
config.SetBech32PrefixForAccount(AccountAddressPrefix, accountPubKeyPrefix)
config.SetBech32PrefixForValidator(validatorAddressPrefix, validatorPubKeyPrefix)
config.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix)
config.Seal()
}
package app
import (
"encoding/json"
"fmt"
"log"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)
// ExportAppStateAndValidators exports the state of the application for a genesis
// file.
func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error) {
// as if they could withdraw from the start of the next block
ctx := app.NewContextLegacy(true, cmtproto.Header{Height: app.LastBlockHeight()})
// We export at last height + 1, because that's the height at which
// CometBFT will start InitChain.
height := app.LastBlockHeight() + 1
if forZeroHeight {
height = 0
app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs)
}
genState, err := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport)
if err != nil {
return servertypes.ExportedApp{}, err
}
appState, err := json.MarshalIndent(genState, "", " ")
if err != nil {
return servertypes.ExportedApp{}, err
}
validators, err := staking.WriteValidators(ctx, app.StakingKeeper)
return servertypes.ExportedApp{
AppState: appState,
Validators: validators,
Height: height,
ConsensusParams: app.BaseApp.GetConsensusParams(ctx),
}, err
}
// prepare for fresh start at zero height
// NOTE zero height genesis is a temporary feature which will be deprecated
//
// in favor of export at a block height
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
applyAllowedAddrs := false
// check if there is a allowed address list
if len(jailAllowedAddrs) > 0 {
applyAllowedAddrs = true
}
allowedAddrsMap := make(map[string]bool)
for _, addr := range jailAllowedAddrs {
_, err := sdk.ValAddressFromBech32(addr)
if err != nil {
log.Fatal(err)
}
allowedAddrsMap[addr] = true
}
/* Just to be safe, assert the invariants on current state. */
app.CrisisKeeper.AssertInvariants(ctx)
/* Handle fee distribution state. */
// withdraw all validator commission
err := app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
if err != nil {
panic(err)
}
_, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, valBz)
return false
})
if err != nil {
panic(err)
}
// withdraw all delegator rewards
dels, err := app.StakingKeeper.GetAllDelegations(ctx)
if err != nil {
panic(err)
}
for _, delegation := range dels {
valAddr, err := sdk.ValAddressFromBech32(delegation.ValidatorAddress)
if err != nil {
panic(err)
}
delAddr := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress)
_, _ = app.DistrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr)
}
// clear validator slash events
app.DistrKeeper.DeleteAllValidatorSlashEvents(ctx)
// clear validator historical rewards
app.DistrKeeper.DeleteAllValidatorHistoricalRewards(ctx)
// set context height to zero
height := ctx.BlockHeight()
ctx = ctx.WithBlockHeight(0)
// reinitialize all validators
err = app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(val.GetOperator())
if err != nil {
panic(err)
}
// donate any unwithdrawn outstanding reward fraction tokens to the community pool
scraps, err := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, valBz)
if err != nil {
panic(err)
}
feePool, err := app.DistrKeeper.FeePool.Get(ctx)
if err != nil {
panic(err)
}
feePool.CommunityPool = feePool.CommunityPool.Add(scraps...)
if err := app.DistrKeeper.FeePool.Set(ctx, feePool); err != nil {
panic(err)
}
if err := app.DistrKeeper.Hooks().AfterValidatorCreated(ctx, valBz); err != nil {
panic(err)
}
return false
})
// reinitialize all delegations
for _, del := range dels {
valAddr, err := sdk.ValAddressFromBech32(del.ValidatorAddress)
if err != nil {
panic(err)
}
delAddr := sdk.MustAccAddressFromBech32(del.DelegatorAddress)
if err := app.DistrKeeper.Hooks().BeforeDelegationCreated(ctx, delAddr, valAddr); err != nil {
// never called as BeforeDelegationCreated always returns nil
panic(fmt.Errorf("error while incrementing period: %w", err))
}
if err := app.DistrKeeper.Hooks().AfterDelegationModified(ctx, delAddr, valAddr); err != nil {
// never called as AfterDelegationModified always returns nil
panic(fmt.Errorf("error while creating a new delegation period record: %w", err))
}
}
// reset context height
ctx = ctx.WithBlockHeight(height)
/* Handle staking state. */
// iterate through redelegations, reset creation height
err = app.StakingKeeper.IterateRedelegations(ctx, func(_ int64, red stakingtypes.Redelegation) (stop bool) {
for i := range red.Entries {
red.Entries[i].CreationHeight = 0
}
err = app.StakingKeeper.SetRedelegation(ctx, red)
if err != nil {
panic(err)
}
return false
})
if err != nil {
panic(err)
}
// iterate through unbonding delegations, reset creation height
err = app.StakingKeeper.IterateUnbondingDelegations(ctx, func(_ int64, ubd stakingtypes.UnbondingDelegation) (stop bool) {
for i := range ubd.Entries {
ubd.Entries[i].CreationHeight = 0
}
err = app.StakingKeeper.SetUnbondingDelegation(ctx, ubd)
if err != nil {
panic(err)
}
return false
})
if err != nil {
panic(err)
}
// Iterate through validators by power descending, reset bond heights, and
// update bond intra-tx counters.
store := ctx.KVStore(app.GetKey(stakingtypes.StoreKey))
iter := storetypes.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
counter := int16(0)
for ; iter.Valid(); iter.Next() {
addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key()))
validator, err := app.StakingKeeper.GetValidator(ctx, addr)
if err != nil {
panic("expected validator, not found")
}
validator.UnbondingHeight = 0
if applyAllowedAddrs && !allowedAddrsMap[addr.String()] {
validator.Jailed = true
}
if err := app.StakingKeeper.SetValidator(ctx, validator); err != nil {
panic(err)
}
counter++
}
if err := iter.Close(); err != nil {
app.Logger().Error("error while closing the key-value store reverse prefix iterator: ", err)
return
}
_, err = app.StakingKeeper.ApplyAndReturnValidatorSetUpdates(ctx)
if err != nil {
log.Fatal(err)
}
/* Handle slashing state. */
// reset start height on signing infos
if err := app.SlashingKeeper.IterateValidatorSigningInfos(
ctx,
func(addr sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) (stop bool) {
info.StartHeight = 0
_ = app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info)
return false
},
); err != nil {
log.Fatal(err)
}
}
package app
import (
"errors"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)
var _ authtypes.GenesisAccount = (*GenesisAccount)(nil)
// GenesisAccount defines a type that implements the GenesisAccount interface
// to be used for simulation accounts in the genesis state.
type GenesisAccount struct {
*authtypes.BaseAccount
// vesting account fields
OriginalVesting sdk.Coins `json:"original_vesting" yaml:"original_vesting"` // total vesting coins upon initialization
DelegatedFree sdk.Coins `json:"delegated_free" yaml:"delegated_free"` // delegated vested coins at time of delegation
DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"` // delegated vesting coins at time of delegation
StartTime int64 `json:"start_time" yaml:"start_time"` // vesting start time (UNIX Epoch time)
EndTime int64 `json:"end_time" yaml:"end_time"` // vesting end time (UNIX Epoch time)
// module account fields
ModuleName string `json:"module_name" yaml:"module_name"` // name of the module account
ModulePermissions []string `json:"module_permissions" yaml:"module_permissions"` // permissions of module account
}
// Validate checks for errors on the vesting and module account parameters
func (sga GenesisAccount) Validate() error {
if !sga.OriginalVesting.IsZero() {
if sga.StartTime >= sga.EndTime {
return errors.New("vesting start-time cannot be before end-time")
}
}
if sga.ModuleName != "" {
ma := authtypes.ModuleAccount{
BaseAccount: sga.BaseAccount, Name: sga.ModuleName, Permissions: sga.ModulePermissions,
}
if err := ma.Validate(); err != nil {
return err
}
}
return sga.BaseAccount.Validate()
}
package app
import (
"cosmossdk.io/core/appmodule"
storetypes "cosmossdk.io/store/types"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/cosmos/ibc-go/modules/capability"
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
icamodule "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts"
icacontroller "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller"
icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper"
icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
icahost "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host"
icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
icahosttypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/types"
ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee"
ibcfeekeeper "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/keeper"
ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
ibctransfer "github.com/cosmos/ibc-go/v8/modules/apps/transfer"
ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
ibc "github.com/cosmos/ibc-go/v8/modules/core"
ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"
porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types"
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
solomachine "github.com/cosmos/ibc-go/v8/modules/light-clients/06-solomachine"
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
// this line is used by starport scaffolding # ibc/app/import
)
// registerIBCModules register IBC keepers and non dependency inject modules.
func (app *App) registerIBCModules(appOpts servertypes.AppOptions) error {
// set up non depinject support modules store keys
if err := app.RegisterStores(
storetypes.NewKVStoreKey(capabilitytypes.StoreKey),
storetypes.NewKVStoreKey(ibcexported.StoreKey),
storetypes.NewKVStoreKey(ibctransfertypes.StoreKey),
storetypes.NewKVStoreKey(ibcfeetypes.StoreKey),
storetypes.NewKVStoreKey(icahosttypes.StoreKey),
storetypes.NewKVStoreKey(icacontrollertypes.StoreKey),
storetypes.NewMemoryStoreKey(capabilitytypes.MemStoreKey),
storetypes.NewTransientStoreKey(paramstypes.TStoreKey),
); err != nil {
return err
}
// register the key tables for legacy param subspaces
keyTable := ibcclienttypes.ParamKeyTable()
keyTable.RegisterParamSet(&ibcconnectiontypes.Params{})
app.ParamsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable)
app.ParamsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
app.ParamsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable())
app.ParamsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable())
// add capability keeper and ScopeToModule for ibc module
app.CapabilityKeeper = capabilitykeeper.NewKeeper(
app.AppCodec(),
app.GetKey(capabilitytypes.StoreKey),
app.GetMemKey(capabilitytypes.MemStoreKey),
)
// add capability keeper and ScopeToModule for ibc module
scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
scopedIBCTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
// Create IBC keeper
app.IBCKeeper = ibckeeper.NewKeeper(
app.appCodec,
app.GetKey(ibcexported.StoreKey),
app.GetSubspace(ibcexported.ModuleName),
app.StakingKeeper,
app.UpgradeKeeper,
scopedIBCKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
// Register the proposal types
// Deprecated: Avoid adding new handlers, instead use the new proposal flow
// by granting the governance module the right to execute the message.
// See: https://docs.cosmos.network/main/modules/gov#proposal-messages
govRouter := govv1beta1.NewRouter()
govRouter.AddRoute(govtypes.RouterKey, govv1beta1.ProposalHandler)
app.IBCFeeKeeper = ibcfeekeeper.NewKeeper(
app.appCodec, app.GetKey(ibcfeetypes.StoreKey),
app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware
app.IBCKeeper.ChannelKeeper,
app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper,
)
// Create IBC transfer keeper
app.TransferKeeper = ibctransferkeeper.NewKeeper(
app.appCodec,
app.GetKey(ibctransfertypes.StoreKey),
app.GetSubspace(ibctransfertypes.ModuleName),
app.IBCFeeKeeper,
app.IBCKeeper.ChannelKeeper,
app.IBCKeeper.PortKeeper,
app.AccountKeeper,
app.BankKeeper,
scopedIBCTransferKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
// Create interchain account keepers
app.ICAHostKeeper = icahostkeeper.NewKeeper(
app.appCodec,
app.GetKey(icahosttypes.StoreKey),
app.GetSubspace(icahosttypes.SubModuleName),
app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
app.IBCKeeper.ChannelKeeper,
app.IBCKeeper.PortKeeper,
app.AccountKeeper,
scopedICAHostKeeper,
app.MsgServiceRouter(),
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
app.ICAHostKeeper.WithQueryRouter(app.GRPCQueryRouter())
app.ICAControllerKeeper = icacontrollerkeeper.NewKeeper(
app.appCodec,
app.GetKey(icacontrollertypes.StoreKey),
app.GetSubspace(icacontrollertypes.SubModuleName),
app.IBCFeeKeeper, // use ics29 fee as ics4Wrapper in middleware stack
app.IBCKeeper.ChannelKeeper,
app.IBCKeeper.PortKeeper,
scopedICAControllerKeeper,
app.MsgServiceRouter(),
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
app.GovKeeper.SetLegacyRouter(govRouter)
// Create IBC modules with ibcfee middleware
transferIBCModule := ibcfee.NewIBCMiddleware(ibctransfer.NewIBCModule(app.TransferKeeper), app.IBCFeeKeeper)
// integration point for custom authentication modules
var noAuthzModule porttypes.IBCModule
icaControllerIBCModule := ibcfee.NewIBCMiddleware(
icacontroller.NewIBCMiddleware(noAuthzModule, app.ICAControllerKeeper),
app.IBCFeeKeeper,
)
icaHostIBCModule := ibcfee.NewIBCMiddleware(icahost.NewIBCModule(app.ICAHostKeeper), app.IBCFeeKeeper)
// Create static IBC router, add transfer route, then set and seal it
ibcRouter := porttypes.NewRouter().
AddRoute(ibctransfertypes.ModuleName, transferIBCModule).
AddRoute(icacontrollertypes.SubModuleName, icaControllerIBCModule).
AddRoute(icahosttypes.SubModuleName, icaHostIBCModule)
// this line is used by starport scaffolding # ibc/app/module
app.IBCKeeper.SetRouter(ibcRouter)
app.ScopedIBCKeeper = scopedIBCKeeper
app.ScopedIBCTransferKeeper = scopedIBCTransferKeeper
app.ScopedICAHostKeeper = scopedICAHostKeeper
app.ScopedICAControllerKeeper = scopedICAControllerKeeper
// register IBC modules
if err := app.RegisterModules(
ibc.NewAppModule(app.IBCKeeper),
ibctransfer.NewAppModule(app.TransferKeeper),
ibcfee.NewAppModule(app.IBCFeeKeeper),
icamodule.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper),
capability.NewAppModule(app.appCodec, *app.CapabilityKeeper, false),
ibctm.NewAppModule(),
solomachine.NewAppModule(),
); err != nil {
return err
}
return nil
}
// RegisterIBC Since the IBC modules don't support dependency injection,
// we need to manually register the modules on the client side.
// This needs to be removed after IBC supports App Wiring.
func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule {
modules := map[string]appmodule.AppModule{
ibcexported.ModuleName: ibc.AppModule{},
ibctransfertypes.ModuleName: ibctransfer.AppModule{},
ibcfeetypes.ModuleName: ibcfee.AppModule{},
icatypes.ModuleName: icamodule.AppModule{},
capabilitytypes.ModuleName: capability.AppModule{},
ibctm.ModuleName: ibctm.AppModule{},
solomachine.ModuleName: solomachine.AppModule{},
}
for name, m := range modules {
module.CoreAppModuleBasicAdaptor(name, m).RegisterInterfaces(registry)
}
return modules
}
package v2
import (
"context"
upgradetypes "cosmossdk.io/x/upgrade/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/verana-labs/verana-blockchain/app/upgrades/types"
diddirectory "github.com/verana-labs/verana-blockchain/x/diddirectory/module"
didtypes "github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
_ types.BaseAppParamManager,
keepers types.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(context context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx := sdk.UnwrapSDKContext(context)
migrations, err := mm.RunMigrations(ctx, configurator, fromVM)
if err != nil {
return nil, err
}
diddirectory.InitGenesis(ctx, keepers.GetDidDirectoryKeeper(), *didtypes.DefaultGenesis())
return migrations, nil
}
}
package v3
import (
"context"
upgradetypes "cosmossdk.io/x/upgrade/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/verana-labs/verana-blockchain/app/upgrades/types"
credentialschema "github.com/verana-labs/verana-blockchain/x/credentialschema/module"
credentialschematypes "github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
func CreateUpgradeHandler(
mm *module.Manager,
configurator module.Configurator,
_ types.BaseAppParamManager,
keepers types.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(context context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
ctx := sdk.UnwrapSDKContext(context)
migrations, err := mm.RunMigrations(ctx, configurator, fromVM)
if err != nil {
return nil, err
}
credentialschema.InitGenesis(ctx, keepers.GetCredentialSchemaKeeper(), *credentialschematypes.DefaultGenesis())
return migrations, nil
}
}
package cmd
import (
"errors"
"io"
"github.com/cosmos/cosmos-sdk/codec/address"
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"cosmossdk.io/log"
confixcmd "cosmossdk.io/tools/confix/cmd"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/debug"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/client/pruning"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/client/snapshot"
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/types/module"
authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/verana-labs/verana-blockchain/app"
)
func initRootCmd(
rootCmd *cobra.Command,
txConfig client.TxConfig,
basicManager module.BasicManager,
) {
rootCmd.AddCommand(
genutilcli.InitCmd(basicManager, app.DefaultNodeHome),
NewInPlaceTestnetCmd(addModuleInitFlags),
debug.Cmd(),
confixcmd.ConfigCommand(),
pruning.Cmd(newApp, app.DefaultNodeHome),
snapshot.Cmd(newApp),
)
server.AddCommands(rootCmd, app.DefaultNodeHome, newApp, appExport, addModuleInitFlags)
valOperAddressCodec := address.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix())
// add keybase, auxiliary RPC, query, genesis, and tx child commands
rootCmd.AddCommand(
server.StatusCommand(),
genesisCommand(txConfig, basicManager),
queryCommand(),
txCommand(),
keys.Commands(),
genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, genutiltypes.DefaultMessageValidator, valOperAddressCodec),
AddGenesisAccountCmd(app.DefaultNodeHome),
genutilcli.GenTxCmd(app.ModuleBasics, txConfig, banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, valOperAddressCodec),
genutilcli.ValidateGenesisCmd(app.ModuleBasics),
)
}
func addModuleInitFlags(startCmd *cobra.Command) {
crisis.AddModuleInitFlags(startCmd)
}
// genesisCommand builds genesis-related `veranad genesis` command. Users may provide application specific commands as a parameter
func genesisCommand(txConfig client.TxConfig, basicManager module.BasicManager, cmds ...*cobra.Command) *cobra.Command {
cmd := genutilcli.Commands(txConfig, basicManager, app.DefaultNodeHome)
for _, subCmd := range cmds {
cmd.AddCommand(subCmd)
}
return cmd
}
func queryCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "query",
Aliases: []string{"q"},
Short: "Querying subcommands",
DisableFlagParsing: false,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(
rpc.QueryEventForTxCmd(),
rpc.ValidatorCommand(),
server.QueryBlockCmd(),
authcmd.QueryTxsByEventsCmd(),
server.QueryBlocksCmd(),
authcmd.QueryTxCmd(),
server.QueryBlockResultsCmd(),
)
cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
return cmd
}
func txCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "tx",
Short: "Transactions subcommands",
DisableFlagParsing: false,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(
authcmd.GetSignCommand(),
authcmd.GetSignBatchCommand(),
authcmd.GetMultiSignCommand(),
authcmd.GetMultiSignBatchCmd(),
authcmd.GetValidateSignaturesCommand(),
flags.LineBreak,
authcmd.GetBroadcastCommand(),
authcmd.GetEncodeCommand(),
authcmd.GetDecodeCommand(),
authcmd.GetSimulateCmd(),
)
cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
return cmd
}
// newApp creates the application
func newApp(
logger log.Logger,
db dbm.DB,
traceStore io.Writer,
appOpts servertypes.AppOptions,
) servertypes.Application {
baseappOptions := server.DefaultBaseappOptions(appOpts)
app, err := app.New(
logger, db, traceStore, true,
appOpts,
baseappOptions...,
)
if err != nil {
panic(err)
}
return app
}
// appExport creates a new app (optionally at a given height) and exports state.
func appExport(
logger log.Logger,
db dbm.DB,
traceStore io.Writer,
height int64,
forZeroHeight bool,
jailAllowedAddrs []string,
appOpts servertypes.AppOptions,
modulesToExport []string,
) (servertypes.ExportedApp, error) {
var (
bApp *app.App
err error
)
// this check is necessary as we use the flag in x/upgrade.
// we can exit more gracefully by checking the flag here.
homePath, ok := appOpts.Get(flags.FlagHome).(string)
if !ok || homePath == "" {
return servertypes.ExportedApp{}, errors.New("application home not set")
}
viperAppOpts, ok := appOpts.(*viper.Viper)
if !ok {
return servertypes.ExportedApp{}, errors.New("appOpts is not viper.Viper")
}
// overwrite the FlagInvCheckPeriod
viperAppOpts.Set(server.FlagInvCheckPeriod, 1)
appOpts = viperAppOpts
if height != -1 {
bApp, err = app.New(logger, db, traceStore, false, appOpts)
if err != nil {
return servertypes.ExportedApp{}, err
}
if err := bApp.LoadHeight(height); err != nil {
return servertypes.ExportedApp{}, err
}
} else {
bApp, err = app.New(logger, db, traceStore, true, appOpts)
if err != nil {
return servertypes.ExportedApp{}, err
}
}
return bApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs, modulesToExport)
}
package cmd
import (
cmtcfg "github.com/cometbft/cometbft/config"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
)
// initCometBFTConfig helps to override default CometBFT Config values.
// return cmtcfg.DefaultConfig if no custom configuration is required for the application.
func initCometBFTConfig() *cmtcfg.Config {
cfg := cmtcfg.DefaultConfig()
// these values put a higher strain on node memory
// cfg.P2P.MaxNumInboundPeers = 100
// cfg.P2P.MaxNumOutboundPeers = 40
return cfg
}
// initAppConfig helps to override default appConfig template and configs.
// return "", nil if no custom configuration is required for the application.
func initAppConfig() (string, interface{}) {
// The following code snippet is just for reference.
type CustomAppConfig struct {
serverconfig.Config `mapstructure:",squash"`
}
// Optionally allow the chain developer to overwrite the SDK's default
// server config.
srvCfg := serverconfig.DefaultConfig()
// The SDK's default minimum gas price is set to "" (empty value) inside
// app.toml. If left empty by validators, the node will halt on startup.
// However, the chain developer can set a default app.toml value for their
// validators here.
//
// In summary:
// - if you leave srvCfg.MinGasPrices = "", all validators MUST tweak their
// own app.toml config,
// - if you set srvCfg.MinGasPrices non-empty, validators CAN tweak their
// own app.toml to override, or use this default value.
//
// In tests, we set the min gas prices to 0.
// srvCfg.MinGasPrices = "0stake"
// srvCfg.BaseConfig.IAVLDisableFastNode = true // disable fastnode by default
customAppConfig := CustomAppConfig{
Config: *srvCfg,
}
customAppTemplate := serverconfig.DefaultConfigTemplate
// Edit the default template file
//
// customAppTemplate := serverconfig.DefaultConfigTemplate + `
// [wasm]
// # This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
// query_gas_limit = 300000
// # This is the number of wasm vm instances we keep cached in memory for speed-up
// # Warning: this is currently unstable and may lead to crashes, best to keep for 0 unless testing locally
// lru_size = 0`
return customAppTemplate, customAppConfig
}
package cmd
import (
"bufio"
"encoding/json"
"errors"
"fmt"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/server"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
authvestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/spf13/cobra"
)
const (
flagVestingStart = "vesting-start-time"
flagVestingEnd = "vesting-end-time"
flagVestingAmt = "vesting-amount"
)
func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command {
cmd := &cobra.Command{
Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]",
Short: "Add a genesis account to genesis.json",
Long: `Add a genesis account to genesis.json. The provided account must specify
the account address or key name and a list of initial coins. If a key name is given,
the address will be looked up in the local Keybase. The list of initial tokens must
contain valid denominations. Accounts may optionally be supplied with vesting parameters.
`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)
depCdc := clientCtx.Codec
cdc := depCdc
serverCtx := server.GetServerContextFromCmd(cmd)
config := serverCtx.Config
config.SetRoot(clientCtx.HomeDir)
addr, err := sdk.AccAddressFromBech32(args[0])
if err != nil {
inBuf := bufio.NewReader(cmd.InOrStdin())
keyringBackend, err := cmd.Flags().GetString(flags.FlagKeyringBackend)
if err != nil {
return err
}
kb, err := keyring.New(sdk.KeyringServiceName(), keyringBackend, clientCtx.HomeDir, inBuf, clientCtx.Codec)
if err != nil {
return err
}
info, err := kb.Key(args[0])
if err != nil {
return fmt.Errorf("failed to get address from Keybase: %w", err)
}
addr, err = info.GetAddress()
if err != nil {
return err
}
}
coins, err := sdk.ParseCoinsNormalized(args[1])
if err != nil {
return fmt.Errorf("failed to parse coins: %w", err)
}
vestingStart, err := cmd.Flags().GetInt64(flagVestingStart)
if err != nil {
return err
}
vestingEnd, err := cmd.Flags().GetInt64(flagVestingEnd)
if err != nil {
return err
}
vestingAmtStr, err := cmd.Flags().GetString(flagVestingAmt)
if err != nil {
return err
}
vestingAmt, err := sdk.ParseCoinsNormalized(vestingAmtStr)
if err != nil {
return fmt.Errorf("failed to parse vesting amount: %w", err)
}
var genAccount authtypes.GenesisAccount
balances := banktypes.Balance{Address: addr.String(), Coins: coins.Sort()}
baseAccount := authtypes.NewBaseAccount(addr, nil, 0, 0)
if !vestingAmt.IsZero() {
baseVestingAccount, _ := authvestingtypes.NewBaseVestingAccount(baseAccount, vestingAmt.Sort(), vestingEnd)
if (balances.Coins.IsZero() && !baseVestingAccount.OriginalVesting.IsZero()) ||
baseVestingAccount.OriginalVesting.IsAnyGT(balances.Coins) {
return errors.New("vesting amount cannot be greater than total amount")
}
switch {
case vestingStart != 0 && vestingEnd != 0:
genAccount = authvestingtypes.NewContinuousVestingAccountRaw(baseVestingAccount, vestingStart)
case vestingEnd != 0:
genAccount = authvestingtypes.NewDelayedVestingAccountRaw(baseVestingAccount)
default:
return errors.New("invalid vesting parameters; must supply start and end time or end time")
}
} else {
genAccount = baseAccount
}
if err := genAccount.Validate(); err != nil {
return fmt.Errorf("failed to validate new genesis account: %w", err)
}
genFile := config.GenesisFile()
appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile)
if err != nil {
return fmt.Errorf("failed to unmarshal genesis state: %w", err)
}
authGenState := authtypes.GetGenesisStateFromAppState(cdc, appState)
accs, err := authtypes.UnpackAccounts(authGenState.Accounts)
if err != nil {
return fmt.Errorf("failed to get accounts from any: %w", err)
}
if accs.Contains(addr) {
return fmt.Errorf("cannot add account at existing address %s", addr)
}
accs = append(accs, genAccount)
accs = authtypes.SanitizeGenesisAccounts(accs)
genAccs, err := authtypes.PackAccounts(accs)
if err != nil {
return fmt.Errorf("failed to convert accounts into any's: %w", err)
}
authGenState.Accounts = genAccs
authGenStateBz, err := cdc.MarshalJSON(&authGenState)
if err != nil {
return fmt.Errorf("failed to marshal auth genesis state: %w", err)
}
appState[authtypes.ModuleName] = authGenStateBz
bankGenState := banktypes.GetGenesisStateFromAppState(depCdc, appState)
bankGenState.Balances = append(bankGenState.Balances, balances)
bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances)
bankGenState.Supply = bankGenState.Supply.Add(balances.Coins...)
bankGenStateBz, err := cdc.MarshalJSON(bankGenState)
if err != nil {
return fmt.Errorf("failed to marshal bank genesis state: %w", err)
}
appState[banktypes.ModuleName] = bankGenStateBz
appStateJSON, err := json.Marshal(appState)
if err != nil {
return fmt.Errorf("failed to marshal application genesis state: %w", err)
}
genDoc.AppState = appStateJSON
return genutil.ExportGenesisFile(genDoc, genFile)
},
}
cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory")
cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)")
cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts")
cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts")
cmd.Flags().Int64(flagVestingEnd, 0, "schedule end time (unix epoch) for vesting accounts")
flags.AddQueryFlagsToCmd(cmd)
return cmd
}
package cmd
import (
"os"
"strings"
"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/config"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/auth/tx"
authtxconfig "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
"github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/verana-labs/verana-blockchain/app"
)
// NewRootCmd creates a new root command for veranad. It is called once in the main function.
func NewRootCmd() *cobra.Command {
var (
autoCliOpts autocli.AppOptions
moduleBasicManager module.BasicManager
clientCtx client.Context
)
if err := depinject.Inject(
depinject.Configs(app.AppConfig(),
depinject.Supply(
log.NewNopLogger(),
),
depinject.Provide(
ProvideClientContext,
),
),
&autoCliOpts,
&moduleBasicManager,
&clientCtx,
); err != nil {
panic(err)
}
rootCmd := &cobra.Command{
Use: app.Name + "d",
Short: "Start veranablockchain node",
SilenceErrors: true,
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
// set the default command outputs
cmd.SetOut(cmd.OutOrStdout())
cmd.SetErr(cmd.ErrOrStderr())
clientCtx = clientCtx.WithCmdContext(cmd.Context())
clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags())
if err != nil {
return err
}
clientCtx, err = config.ReadFromClientConfig(clientCtx)
if err != nil {
return err
}
if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
return err
}
customAppTemplate, customAppConfig := initAppConfig()
customCMTConfig := initCometBFTConfig()
return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, customCMTConfig)
},
}
// Since the IBC modules don't support dependency injection, we need to
// manually register the modules on the client side.
// This needs to be removed after IBC supports App Wiring.
ibcModules := app.RegisterIBC(clientCtx.InterfaceRegistry)
for name, mod := range ibcModules {
moduleBasicManager[name] = module.CoreAppModuleBasicAdaptor(name, mod)
autoCliOpts.Modules[name] = mod
}
initRootCmd(rootCmd, clientCtx.TxConfig, moduleBasicManager)
overwriteFlagDefaults(rootCmd, map[string]string{
flags.FlagChainID: strings.ReplaceAll(app.Name, "-", ""),
flags.FlagKeyringBackend: "test",
})
if err := autoCliOpts.EnhanceRootCommand(rootCmd); err != nil {
panic(err)
}
return rootCmd
}
func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
set := func(s *pflag.FlagSet, key, val string) {
if f := s.Lookup(key); f != nil {
f.DefValue = val
_ = f.Value.Set(val)
}
}
for key, val := range defaults {
set(c.Flags(), key, val)
set(c.PersistentFlags(), key, val)
}
for _, c := range c.Commands() {
overwriteFlagDefaults(c, defaults)
}
}
func ProvideClientContext(
appCodec codec.Codec,
interfaceRegistry codectypes.InterfaceRegistry,
txConfigOpts tx.ConfigOptions,
legacyAmino *codec.LegacyAmino,
) client.Context {
clientCtx := client.Context{}.
WithCodec(appCodec).
WithInterfaceRegistry(interfaceRegistry).
WithLegacyAmino(legacyAmino).
WithInput(os.Stdin).
WithAccountRetriever(types.AccountRetriever{}).
WithHomeDir(app.DefaultNodeHome).
WithViper(app.Name) // env variable prefix
// Read the config again to overwrite the default values with the values from the config file
clientCtx, _ = config.ReadFromClientConfig(clientCtx)
// textual is enabled by default, we need to re-create the tx config grpc instead of bank keeper.
txConfigOpts.TextualCoinMetadataQueryFn = authtxconfig.NewGRPCCoinMetadataQueryFn(clientCtx)
txConfig, err := tx.NewTxConfigWithOptions(clientCtx.Codec, txConfigOpts)
if err != nil {
panic(err)
}
clientCtx = clientCtx.WithTxConfig(txConfig)
return clientCtx
}
package cmd
import (
"fmt"
"io"
"strings"
"cosmossdk.io/log"
"cosmossdk.io/math"
storetypes "cosmossdk.io/store/types"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/libs/bytes"
tmos "github.com/cometbft/cometbft/libs/os"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/client/flags"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/verana-labs/verana-blockchain/app"
)
const (
valVotingPower int64 = 900000000000000
)
var (
flagAccountsToFund = "accounts-to-fund"
)
type valArgs struct {
newValAddr bytes.HexBytes
newOperatorAddress string
newValPubKey crypto.PubKey
accountsToFund []sdk.AccAddress
upgradeToTrigger string
homeDir string
}
func NewInPlaceTestnetCmd(addStartFlags servertypes.ModuleInitFlags) *cobra.Command {
cmd := server.InPlaceTestnetCreator(newTestnetApp)
addStartFlags(cmd)
cmd.Short = "Updates chain's application and consensus state with provided validator info and starts the node"
cmd.Long = `The test command modifies both application and consensus stores within a local mainnet node and starts the node,
with the aim of facilitating testing procedures. This command replaces existing validator data with updated information,
thereby removing the old validator set and introducing a new set suitable for local testing purposes. By altering the state extracted from the mainnet node,
it enables developers to configure their local environments to reflect mainnet conditions more accurately.`
cmd.Example = fmt.Sprintf(`%sd in-place-testnet testing-1 cosmosvaloper1w7f3xx7e75p4l7qdym5msqem9rd4dyc4mq79dm --home $HOME/.%sd/validator1 --validator-privkey=6dq+/KHNvyiw2TToCgOpUpQKIzrLs69Rb8Az39xvmxPHNoPxY1Cil8FY+4DhT9YwD6s0tFABMlLcpaylzKKBOg== --accounts-to-fund="cosmos1f7twgcq4ypzg7y24wuywy06xmdet8pc4473tnq,cosmos1qvuhm5m644660nd8377d6l7yz9e9hhm9evmx3x"`, "github.com/verana-labs/verana-blockchain", "github.com/verana-labs/verana-blockchain")
cmd.Flags().String(flagAccountsToFund, "", "Comma-separated list of account addresses that will be funded for testing purposes")
return cmd
}
// newTestnetApp starts by running the normal newApp method. From there, the app interface returned is modified in order
// for a testnet to be created from the provided app.
func newTestnetApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts servertypes.AppOptions) servertypes.Application {
// Create an app and type cast to an App
newApp := newApp(logger, db, traceStore, appOpts)
testApp, ok := newApp.(*app.App)
if !ok {
panic("app created from newApp is not of type App")
}
// Get command args
args, err := getCommandArgs(appOpts)
if err != nil {
panic(err)
}
return initAppForTestnet(testApp, args)
}
func initAppForTestnet(app *app.App, args valArgs) *app.App {
// Required Changes:
//
ctx := app.BaseApp.NewUncachedContext(true, tmproto.Header{})
pubkey := &ed25519.PubKey{Key: args.newValPubKey.Bytes()}
pubkeyAny, err := codectypes.NewAnyWithValue(pubkey)
if err != nil {
tmos.Exit(err.Error())
}
// STAKING
//
// Create Validator struct for our new validator.
newVal := stakingtypes.Validator{
OperatorAddress: args.newOperatorAddress,
ConsensusPubkey: pubkeyAny,
Jailed: false,
Status: stakingtypes.Bonded,
Tokens: math.NewInt(valVotingPower),
DelegatorShares: math.LegacyMustNewDecFromStr("10000000"),
Description: stakingtypes.Description{
Moniker: "Testnet Validator",
},
Commission: stakingtypes.Commission{
CommissionRates: stakingtypes.CommissionRates{
Rate: math.LegacyMustNewDecFromStr("0.05"),
MaxRate: math.LegacyMustNewDecFromStr("0.1"),
MaxChangeRate: math.LegacyMustNewDecFromStr("0.05"),
},
},
MinSelfDelegation: math.OneInt(),
}
validator, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes(newVal.GetOperator())
if err != nil {
tmos.Exit(err.Error())
}
// Remove all validators from power store
stakingKey := app.GetKey(stakingtypes.ModuleName)
stakingStore := ctx.KVStore(stakingKey)
iterator, err := app.StakingKeeper.ValidatorsPowerStoreIterator(ctx)
if err != nil {
tmos.Exit(err.Error())
}
for ; iterator.Valid(); iterator.Next() {
stakingStore.Delete(iterator.Key())
}
iterator.Close()
// Remove all valdiators from last validators store
iterator, err = app.StakingKeeper.LastValidatorsIterator(ctx)
if err != nil {
tmos.Exit(err.Error())
}
for ; iterator.Valid(); iterator.Next() {
stakingStore.Delete(iterator.Key())
}
iterator.Close()
// Remove all validators from validators store
iterator = stakingStore.Iterator(stakingtypes.ValidatorsKey, storetypes.PrefixEndBytes(stakingtypes.ValidatorsKey))
for ; iterator.Valid(); iterator.Next() {
stakingStore.Delete(iterator.Key())
}
iterator.Close()
// Remove all validators from unbonding queue
iterator = stakingStore.Iterator(stakingtypes.ValidatorQueueKey, storetypes.PrefixEndBytes(stakingtypes.ValidatorQueueKey))
for ; iterator.Valid(); iterator.Next() {
stakingStore.Delete(iterator.Key())
}
iterator.Close()
// Add our validator to power and last validators store
app.StakingKeeper.SetValidator(ctx, newVal)
err = app.StakingKeeper.SetValidatorByConsAddr(ctx, newVal)
if err != nil {
tmos.Exit(err.Error())
}
app.StakingKeeper.SetValidatorByPowerIndex(ctx, newVal)
app.StakingKeeper.SetLastValidatorPower(ctx, validator, 0)
if err := app.StakingKeeper.Hooks().AfterValidatorCreated(ctx, validator); err != nil {
tmos.Exit(err.Error())
}
// DISTRIBUTION
//
// Initialize records for this validator across all distribution stores
app.DistrKeeper.SetValidatorHistoricalRewards(ctx, validator, 0, distrtypes.NewValidatorHistoricalRewards(sdk.DecCoins{}, 1))
app.DistrKeeper.SetValidatorCurrentRewards(ctx, validator, distrtypes.NewValidatorCurrentRewards(sdk.DecCoins{}, 1))
app.DistrKeeper.SetValidatorAccumulatedCommission(ctx, validator, distrtypes.InitialValidatorAccumulatedCommission())
app.DistrKeeper.SetValidatorOutstandingRewards(ctx, validator, distrtypes.ValidatorOutstandingRewards{Rewards: sdk.DecCoins{}})
// SLASHING
//
// Set validator signing info for our new validator.
newConsAddr := sdk.ConsAddress(args.newValAddr.Bytes())
newValidatorSigningInfo := slashingtypes.ValidatorSigningInfo{
Address: newConsAddr.String(),
StartHeight: app.LastBlockHeight() - 1,
Tombstoned: false,
}
app.SlashingKeeper.SetValidatorSigningInfo(ctx, newConsAddr, newValidatorSigningInfo)
// BANK
//
bondDenom, err := app.StakingKeeper.BondDenom(ctx)
if err != nil {
tmos.Exit(err.Error())
}
defaultCoins := sdk.NewCoins(sdk.NewInt64Coin(bondDenom, 1000000000))
// Fund local accounts
for _, account := range args.accountsToFund {
err := app.BankKeeper.MintCoins(ctx, minttypes.ModuleName, defaultCoins)
if err != nil {
tmos.Exit(err.Error())
}
err = app.BankKeeper.SendCoinsFromModuleToAccount(ctx, minttypes.ModuleName, account, defaultCoins)
if err != nil {
tmos.Exit(err.Error())
}
}
return app
}
// parse the input flags and returns valArgs
func getCommandArgs(appOpts servertypes.AppOptions) (valArgs, error) {
args := valArgs{}
newValAddr, ok := appOpts.Get(server.KeyNewValAddr).(bytes.HexBytes)
if !ok {
panic("newValAddr is not of type bytes.HexBytes")
}
args.newValAddr = newValAddr
newValPubKey, ok := appOpts.Get(server.KeyUserPubKey).(crypto.PubKey)
if !ok {
panic("newValPubKey is not of type crypto.PubKey")
}
args.newValPubKey = newValPubKey
newOperatorAddress, ok := appOpts.Get(server.KeyNewOpAddr).(string)
if !ok {
panic("newOperatorAddress is not of type string")
}
args.newOperatorAddress = newOperatorAddress
upgradeToTrigger, ok := appOpts.Get(server.KeyTriggerTestnetUpgrade).(string)
if !ok {
panic("upgradeToTrigger is not of type string")
}
args.upgradeToTrigger = upgradeToTrigger
// validate and set accounts to fund
accountsString := cast.ToString(appOpts.Get(flagAccountsToFund))
for _, account := range strings.Split(accountsString, ",") {
if account != "" {
addr, err := sdk.AccAddressFromBech32(account)
if err != nil {
return args, fmt.Errorf("invalid bech32 address format %w", err)
}
args.accountsToFund = append(args.accountsToFund, addr)
}
}
// home dir
homeDir := cast.ToString(appOpts.Get(flags.FlagHome))
if homeDir == "" {
return args, fmt.Errorf("invalid home dir")
}
args.homeDir = homeDir
return args, nil
}
package main
import (
"fmt"
"os"
clienthelpers "cosmossdk.io/client/v2/helpers"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/verana-labs/verana-blockchain/app"
"github.com/verana-labs/verana-blockchain/cmd/veranad/cmd"
)
func main() {
rootCmd := cmd.NewRootCmd()
if err := svrcmd.Execute(rootCmd, clienthelpers.EnvPrefix, app.DefaultNodeHome); err != nil {
fmt.Fprintln(rootCmd.OutOrStderr(), err)
os.Exit(1)
}
}
package docs
import (
"embed"
httptemplate "html/template"
"net/http"
"github.com/gorilla/mux"
)
const (
apiFile = "/static/openapi.yml"
indexFile = "template/index.tpl"
)
//go:embed static
var Static embed.FS
//go:embed template
var template embed.FS
func RegisterOpenAPIService(appName string, rtr *mux.Router) {
rtr.Handle(apiFile, http.FileServer(http.FS(Static)))
rtr.HandleFunc("/", handler(appName))
}
// handler returns an http handler that servers OpenAPI console for an OpenAPI spec at specURL.
func handler(title string) http.HandlerFunc {
t, _ := httptemplate.ParseFS(template, indexFile)
return func(w http.ResponseWriter, req *http.Request) {
_ = t.Execute(w, struct {
Title string
URL string
}{
title,
apiFile,
})
}
}
package keeper
import (
"context"
"testing"
"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/metrics"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/stretchr/testify/require"
"github.com/verana-labs/verana-blockchain/x/credentialschema/keeper"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
trtypes "github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
// MockBankKeeper is a mock implementation of types.BankKeeper
type MockBankKeeper struct {
bankBalances map[string]sdk.Coins
}
func (k *MockBankKeeper) SendCoins(ctx context.Context, from, to sdk.AccAddress, amt sdk.Coins) error {
//TODO implement me
panic("implement me")
}
func (k *MockBankKeeper) HasBalance(ctx context.Context, addr sdk.AccAddress, amt sdk.Coin) bool {
//TODO implement me
panic("implement me")
}
func (k *MockBankKeeper) BurnCoins(ctx context.Context, name string, amt sdk.Coins) error {
//TODO implement me
panic("implement me")
}
func (k *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error {
//TODO implement me
panic("implement me")
}
func (k *MockBankKeeper) SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error {
//TODO implement me
panic("implement me")
}
func (k *MockBankKeeper) SpendableCoins(ctx context.Context, address sdk.AccAddress) sdk.Coins {
//TODO implement me
panic("implement me")
}
func (k *MockBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin {
//TODO implement me
panic("implement me")
}
func NewMockBankKeeper() *MockBankKeeper {
return &MockBankKeeper{
bankBalances: make(map[string]sdk.Coins),
}
}
// Implement required methods from types.BankKeeper interface
func (k *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error {
return nil
}
// MockTrustRegistryKeeper is a mock implementation of types.TrustRegistryKeeper
type MockTrustRegistryKeeper struct {
trustRegistries map[uint64]trtypes.TrustRegistry
}
func (k *MockTrustRegistryKeeper) GetTrustUnitPrice(ctx sdk.Context) uint64 {
return 1
}
func NewMockTrustRegistryKeeper() *MockTrustRegistryKeeper {
return &MockTrustRegistryKeeper{
trustRegistries: make(map[uint64]trtypes.TrustRegistry),
}
}
func (k *MockTrustRegistryKeeper) GetTrustRegistry(ctx sdk.Context, id uint64) (trtypes.TrustRegistry, error) {
if tr, ok := k.trustRegistries[id]; ok {
return tr, nil
}
return trtypes.TrustRegistry{}, trtypes.ErrTrustRegistryNotFound
}
func (k *MockTrustRegistryKeeper) CreateMockTrustRegistry(creator string, did string) uint64 {
id := uint64(len(k.trustRegistries) + 1)
k.trustRegistries[id] = trtypes.TrustRegistry{
Id: id,
Did: did,
Controller: creator,
ActiveVersion: 1,
Language: "en",
}
return id
}
func CredentialschemaKeeper(t testing.TB) (keeper.Keeper, *MockTrustRegistryKeeper, sdk.Context) { // Changed return types
storeKey := storetypes.NewKVStoreKey(types.StoreKey)
db := dbm.NewMemDB()
stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics())
stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db)
require.NoError(t, stateStore.LoadLatestVersion())
registry := codectypes.NewInterfaceRegistry()
cdc := codec.NewProtoCodec(registry)
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
// Create mock keepers
bankKeeper := NewMockBankKeeper()
trustRegistryKeeper := NewMockTrustRegistryKeeper()
mockTrustDepositKeeper := &MockTrustDepositKeeper{}
k := keeper.NewKeeper(
cdc,
runtime.NewKVStoreService(storeKey),
log.NewNopLogger(),
authority.String(),
bankKeeper,
trustRegistryKeeper,
mockTrustDepositKeeper,
)
ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger())
// Initialize params
if err := k.SetParams(ctx, types.DefaultParams()); err != nil {
panic(err)
}
return k, trustRegistryKeeper, ctx // Return the mock keeper
}
package keeper
import (
"testing"
"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/metrics"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/stretchr/testify/require"
"github.com/verana-labs/verana-blockchain/x/diddirectory/keeper"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func DiddirectoryKeeper(t testing.TB) (keeper.Keeper, sdk.Context) {
storeKey := storetypes.NewKVStoreKey(types.StoreKey)
db := dbm.NewMemDB()
stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics())
stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db)
require.NoError(t, stateStore.LoadLatestVersion())
registry := codectypes.NewInterfaceRegistry()
cdc := codec.NewProtoCodec(registry)
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
trustRegistryKeeper := NewMockTrustRegistryKeeper()
mockTrustDepositKeeper := &MockTrustDepositKeeper{}
k := keeper.NewKeeper(
cdc,
runtime.NewKVStoreService(storeKey),
log.NewNopLogger(),
authority.String(),
mockTrustDepositKeeper,
trustRegistryKeeper,
)
ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger())
// Initialize params
if err := k.SetParams(ctx, types.DefaultParams()); err != nil {
panic(err)
}
return k, ctx
}
package keeper
import (
"testing"
"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/metrics"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/stretchr/testify/require"
cstypes "github.com/verana-labs/verana-blockchain/x/credentialschema/types"
"github.com/verana-labs/verana-blockchain/x/permission/keeper"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
func PermissionKeeper(t testing.TB) (keeper.Keeper, *MockCredentialSchemaKeeper, *MockTrustRegistryKeeper, sdk.Context) {
storeKey := storetypes.NewKVStoreKey(types.StoreKey)
db := dbm.NewMemDB()
stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics())
stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db)
require.NoError(t, stateStore.LoadLatestVersion())
registry := codectypes.NewInterfaceRegistry()
cdc := codec.NewProtoCodec(registry)
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
// Create mock keepers
csKeeper := NewMockCredentialSchemaKeeper()
trkKeeper := NewMockTrustRegistryKeeper()
bankKeeper := NewMockBankKeeper()
mockTrustDepositKeeper := &MockTrustDepositKeeper{}
k := keeper.NewKeeper(
cdc,
runtime.NewKVStoreService(storeKey),
log.NewNopLogger(),
authority.String(),
csKeeper,
trkKeeper,
mockTrustDepositKeeper,
bankKeeper,
)
ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger())
// Initialize params
if err := k.SetParams(ctx, types.DefaultParams()); err != nil {
panic(err)
}
return k, csKeeper, trkKeeper, ctx
}
type MockCredentialSchemaKeeper struct {
credentialSchemas map[uint64]cstypes.CredentialSchema
}
func NewMockCredentialSchemaKeeper() *MockCredentialSchemaKeeper {
return &MockCredentialSchemaKeeper{
credentialSchemas: make(map[uint64]cstypes.CredentialSchema),
}
}
func (k *MockCredentialSchemaKeeper) UpdateMockCredentialSchema(id uint64, trId uint64, issuerPermMode, verifierPermMode cstypes.CredentialSchemaPermManagementMode) {
k.credentialSchemas[id] = cstypes.CredentialSchema{
Id: id,
TrId: trId,
IssuerPermManagementMode: issuerPermMode,
VerifierPermManagementMode: verifierPermMode,
}
}
func (k *MockCredentialSchemaKeeper) GetCredentialSchemaById(ctx sdk.Context, id uint64) (cstypes.CredentialSchema, error) {
if cs, ok := k.credentialSchemas[id]; ok {
return cs, nil
}
return cstypes.CredentialSchema{}, cstypes.ErrCredentialSchemaNotFound
}
func (k *MockCredentialSchemaKeeper) CreateMockCredentialSchema(id uint64, issuerPermMode, verifierPermMode cstypes.CredentialSchemaPermManagementMode) {
k.credentialSchemas[id] = cstypes.CredentialSchema{
Id: id,
IssuerPermManagementMode: issuerPermMode,
VerifierPermManagementMode: verifierPermMode,
}
}
package keeper
import (
"testing"
"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/metrics"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/stretchr/testify/require"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/keeper"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
func TrustdepositKeeper(t testing.TB) (keeper.Keeper, sdk.Context) {
storeKey := storetypes.NewKVStoreKey(types.StoreKey)
db := dbm.NewMemDB()
stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics())
stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db)
require.NoError(t, stateStore.LoadLatestVersion())
registry := codectypes.NewInterfaceRegistry()
cdc := codec.NewProtoCodec(registry)
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
bankKeeper := NewMockBankKeeper()
k := keeper.NewKeeper(
cdc,
runtime.NewKVStoreService(storeKey),
log.NewNopLogger(),
authority.String(),
bankKeeper,
)
ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger())
// Initialize params
if err := k.SetParams(ctx, types.DefaultParams()); err != nil {
panic(err)
}
return k, ctx
}
package keeper
import (
"cosmossdk.io/math"
"testing"
"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/metrics"
storetypes "cosmossdk.io/store/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/stretchr/testify/require"
"github.com/verana-labs/verana-blockchain/x/trustregistry/keeper"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
func TrustregistryKeeper(t testing.TB) (keeper.Keeper, sdk.Context) {
storeKey := storetypes.NewKVStoreKey(types.StoreKey)
db := dbm.NewMemDB()
stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics())
stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db)
require.NoError(t, stateStore.LoadLatestVersion())
registry := codectypes.NewInterfaceRegistry()
cdc := codec.NewProtoCodec(registry)
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
// Create mock TrustDepositKeeper
mockTrustDepositKeeper := &MockTrustDepositKeeper{}
k := keeper.NewKeeper(
cdc,
runtime.NewKVStoreService(storeKey),
log.NewNopLogger(),
authority.String(),
mockTrustDepositKeeper,
)
ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger())
// Initialize params
if err := k.SetParams(ctx, types.DefaultParams()); err != nil {
panic(err)
}
return k, ctx
}
// MockTrustDepositKeeper is a mock implementation of the TrustDepositKeeper interface for testing
type MockTrustDepositKeeper struct{}
func (m *MockTrustDepositKeeper) GetUserAgentRewardRate(ctx sdk.Context) math.LegacyDec {
//unimplemented
v, _ := math.LegacyNewDecFromStr("0")
return v
}
func (m *MockTrustDepositKeeper) GetWalletUserAgentRewardRate(ctx sdk.Context) math.LegacyDec {
//unimplemented
v, _ := math.LegacyNewDecFromStr("0")
return v
}
func (m *MockTrustDepositKeeper) GetTrustDepositRate(ctx sdk.Context) math.LegacyDec {
//unimplemented
v, _ := math.LegacyNewDecFromStr("0")
return v
}
// AdjustTrustDeposit implements the TrustDepositKeeper interface
func (m *MockTrustDepositKeeper) AdjustTrustDeposit(ctx sdk.Context, account string, augend int64) error {
// For testing, always succeed
return nil
}
package network
import (
"fmt"
"testing"
"github.com/cosmos/cosmos-sdk/testutil/network"
"github.com/stretchr/testify/require"
"github.com/verana-labs/verana-blockchain/app"
)
type (
Network = network.Network
Config = network.Config
)
// New creates instance with fully configured cosmos network.
// Accepts optional config, that will be used in place of the DefaultConfig() if provided.
func New(t *testing.T, configs ...Config) *Network {
t.Helper()
if len(configs) > 1 {
panic("at most one config should be provided")
}
var cfg network.Config
if len(configs) == 0 {
cfg = DefaultConfig()
} else {
cfg = configs[0]
}
net, err := network.New(t, t.TempDir(), cfg)
require.NoError(t, err)
_, err = net.WaitForHeight(1)
require.NoError(t, err)
t.Cleanup(net.Cleanup)
return net
}
// DefaultConfig will initialize config for the network with custom application,
// genesis and single validator. All other parameters are inherited from cosmos-sdk/testutil/network.DefaultConfig
func DefaultConfig() network.Config {
cfg, err := network.DefaultConfigWithAppConfig(app.AppConfig())
if err != nil {
panic(err)
}
ports, err := freePorts(3)
if err != nil {
panic(err)
}
if cfg.APIAddress == "" {
cfg.APIAddress = fmt.Sprintf("tcp://0.0.0.0:%s", ports[0])
}
if cfg.RPCAddress == "" {
cfg.RPCAddress = fmt.Sprintf("tcp://0.0.0.0:%s", ports[1])
}
if cfg.GRPCAddress == "" {
cfg.GRPCAddress = fmt.Sprintf("0.0.0.0:%s", ports[2])
}
return cfg
}
// freePorts return the available ports based on the number of requested ports.
func freePorts(n int) ([]string, error) {
closeFns := make([]func() error, n)
ports := make([]string, n)
for i := 0; i < n; i++ {
_, port, closeFn, err := network.FreeTCPAddr()
if err != nil {
return nil, err
}
ports[i] = port
closeFns[i] = closeFn
}
for _, closeFn := range closeFns {
if err := closeFn(); err != nil {
return nil, err
}
}
return ports, nil
}
// Package nullify provides methods to init nil values structs for test assertion.
package nullify
import (
"reflect"
"unsafe"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var (
coinType = reflect.TypeOf(sdk.Coin{})
coinsType = reflect.TypeOf(sdk.Coins{})
)
// Fill analyze all struct fields and slices with
// reflection and initialize the nil and empty slices,
// structs, and pointers.
func Fill(x interface{}) interface{} {
v := reflect.Indirect(reflect.ValueOf(x))
switch v.Kind() {
case reflect.Slice:
for i := 0; i < v.Len(); i++ {
obj := v.Index(i)
objPt := reflect.NewAt(obj.Type(), unsafe.Pointer(obj.UnsafeAddr())).Interface()
objPt = Fill(objPt)
obj.Set(reflect.ValueOf(objPt))
}
case reflect.Struct:
for i := 0; i < v.NumField(); i++ {
f := reflect.Indirect(v.Field(i))
if !f.CanSet() {
continue
}
switch f.Kind() {
case reflect.Slice:
f.Set(reflect.MakeSlice(f.Type(), 0, 0))
case reflect.Struct:
switch f.Type() {
case coinType:
coin := reflect.New(coinType).Interface()
s := reflect.ValueOf(coin).Elem()
f.Set(s)
case coinsType:
coins := reflect.New(coinsType).Interface()
s := reflect.ValueOf(coins).Elem()
f.Set(s)
default:
objPt := reflect.NewAt(f.Type(), unsafe.Pointer(f.UnsafeAddr())).Interface()
s := Fill(objPt)
f.Set(reflect.ValueOf(s))
}
}
}
}
return reflect.Indirect(v).Interface()
}
package sample
import (
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// AccAddress returns a sample account address
func AccAddress() string {
pk := ed25519.GenPrivKey().PubKey()
addr := pk.Address()
return sdk.AccAddress(addr).String()
}
package keeper
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
func (ms msgServer) validateCreateCredentialSchemaParams(ctx sdk.Context, msg *types.MsgCreateCredentialSchema) error {
params := ms.GetParams(ctx)
// Validate trust registry ownership
tr, err := ms.trustRegistryKeeper.GetTrustRegistry(ctx, msg.TrId)
if err != nil {
return fmt.Errorf("trust registry not found: %w", err)
}
if tr.Controller != msg.Creator {
return fmt.Errorf("creator is not the controller of the trust registry")
}
// Check schema size
if uint64(len(msg.JsonSchema)) > params.CredentialSchemaSchemaMaxSize {
return fmt.Errorf("schema size exceeds maximum allowed size of %d bytes", params.CredentialSchemaSchemaMaxSize)
}
// Validate validity periods against params
if err := validateValidityPeriodsWithParams(msg, params); err != nil {
return fmt.Errorf("invalid validity period: %w", err)
}
return nil
}
func validateValidityPeriodsWithParams(msg *types.MsgCreateCredentialSchema, params types.Params) error {
if msg.IssuerGrantorValidationValidityPeriod > params.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays {
return fmt.Errorf("issuer grantor validation validity period exceeds maximum of %d days",
params.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays)
}
if msg.VerifierGrantorValidationValidityPeriod > params.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays {
return fmt.Errorf("verifier grantor validation validity period exceeds maximum of %d days",
params.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays)
}
if msg.IssuerValidationValidityPeriod > params.CredentialSchemaIssuerValidationValidityPeriodMaxDays {
return fmt.Errorf("issuer validation validity period exceeds maximum of %d days",
params.CredentialSchemaIssuerValidationValidityPeriodMaxDays)
}
if msg.VerifierValidationValidityPeriod > params.CredentialSchemaVerifierValidationValidityPeriodMaxDays {
return fmt.Errorf("verifier validation validity period exceeds maximum of %d days",
params.CredentialSchemaVerifierValidationValidityPeriodMaxDays)
}
if msg.HolderValidationValidityPeriod > params.CredentialSchemaHolderValidationValidityPeriodMaxDays {
return fmt.Errorf("holder validation validity period exceeds maximum of %d days",
params.CredentialSchemaHolderValidationValidityPeriodMaxDays)
}
return nil
}
func (ms msgServer) executeCreateCredentialSchema(ctx sdk.Context, schemaID uint64, msg *types.MsgCreateCredentialSchema) error {
// Get params using the getter method
params := ms.GetParams(ctx)
// Calculate trust deposit amount
trustDepositAmount := params.CredentialSchemaTrustDeposit * ms.trustRegistryKeeper.GetTrustUnitPrice(ctx)
// Increase trust deposit
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, msg.Creator, int64(trustDepositAmount)); err != nil {
return fmt.Errorf("failed to adjust trust deposit: %w", err)
}
// Create the credential schema
credentialSchema := types.CredentialSchema{
Id: schemaID, // Use the generated ID
TrId: msg.TrId,
Created: ctx.BlockTime(),
Modified: ctx.BlockTime(),
Deposit: trustDepositAmount,
JsonSchema: msg.JsonSchema,
IssuerGrantorValidationValidityPeriod: msg.IssuerGrantorValidationValidityPeriod,
VerifierGrantorValidationValidityPeriod: msg.VerifierGrantorValidationValidityPeriod,
IssuerValidationValidityPeriod: msg.IssuerValidationValidityPeriod,
VerifierValidationValidityPeriod: msg.VerifierValidationValidityPeriod,
HolderValidationValidityPeriod: msg.HolderValidationValidityPeriod,
IssuerPermManagementMode: types.CredentialSchemaPermManagementMode(msg.IssuerPermManagementMode),
VerifierPermManagementMode: types.CredentialSchemaPermManagementMode(msg.VerifierPermManagementMode),
}
// Persist the credential schema using keeper method
if err := ms.SetCredentialSchema(ctx, credentialSchema); err != nil {
return fmt.Errorf("failed to persist credential schema: %w", err)
}
// Emit event
ctx.EventManager().EmitEvent(
sdk.NewEvent(
types.EventTypeCreateCredentialSchema,
sdk.NewAttribute(types.AttributeKeyId, fmt.Sprintf("%d", schemaID)),
sdk.NewAttribute(types.AttributeKeyTrId, fmt.Sprintf("%d", msg.TrId)),
sdk.NewAttribute(types.AttributeKeyCreator, msg.Creator),
sdk.NewAttribute(types.AttributeKeyDeposit, fmt.Sprintf("%d", trustDepositAmount)),
),
)
return nil
}
package keeper
import (
"fmt"
"cosmossdk.io/collections"
"cosmossdk.io/core/store"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
type (
Keeper struct {
cdc codec.BinaryCodec
storeService store.KVStoreService
logger log.Logger
// the address capable of executing a MsgUpdateParams message. Typically, this
// should be the x/gov module account.
authority string
bankKeeper types.BankKeeper
trustRegistryKeeper types.TrustRegistryKeeper
// State management
Schema collections.Schema
//Params collections.Item[types.Params]
CredentialSchema collections.Map[uint64, types.CredentialSchema]
Counter collections.Map[string, uint64]
trustDeposit types.TrustDepositKeeper
}
)
func NewKeeper(
cdc codec.BinaryCodec,
storeService store.KVStoreService,
logger log.Logger,
authority string,
bankKeeper types.BankKeeper,
trustRegistryKeeper types.TrustRegistryKeeper,
trustDeposit types.TrustDepositKeeper,
) Keeper {
if _, err := sdk.AccAddressFromBech32(authority); err != nil {
panic(fmt.Sprintf("invalid authority address: %s", authority))
}
sb := collections.NewSchemaBuilder(storeService)
k := Keeper{
cdc: cdc,
storeService: storeService,
logger: logger,
authority: authority,
bankKeeper: bankKeeper,
trustRegistryKeeper: trustRegistryKeeper,
// Initialize collections
CredentialSchema: collections.NewMap(
sb,
types.CredentialSchemaKey,
"credential_schema",
collections.Uint64Key,
codec.CollValue[types.CredentialSchema](cdc),
),
Counter: collections.NewMap(
sb,
types.CounterKey,
"counter",
collections.StringKey,
collections.Uint64Value,
),
trustDeposit: trustDeposit,
}
schema, err := sb.Build()
if err != nil {
panic(err)
}
k.Schema = schema
return k
}
// GetAuthority returns the module's authority.
func (k Keeper) GetAuthority() string {
return k.authority
}
// Logger returns a module-specific logger.
func (k Keeper) Logger() log.Logger {
return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName))
}
// GetCredentialSchemaById GetCredentialSchema returns a credential schema by ID
func (k Keeper) GetCredentialSchemaById(ctx sdk.Context, id uint64) (types.CredentialSchema, error) {
return k.CredentialSchema.Get(ctx, id)
}
// SetCredentialSchema sets a credential schema
func (k Keeper) SetCredentialSchema(ctx sdk.Context, schema types.CredentialSchema) error {
return k.CredentialSchema.Set(ctx, schema.Id, schema)
}
// DeleteCredentialSchema deletes a credential schema
func (k Keeper) DeleteCredentialSchema(ctx sdk.Context, id uint64) error {
return k.CredentialSchema.Remove(ctx, id)
}
// IterateCredentialSchemas iterates over all credential schemas
func (k Keeper) IterateCredentialSchemas(ctx sdk.Context, fn func(schema types.CredentialSchema) (stop bool)) error {
return k.CredentialSchema.Walk(ctx, nil, func(key uint64, value types.CredentialSchema) (bool, error) {
return fn(value), nil
})
}
func (k Keeper) GetNextID(ctx sdk.Context, entityType string) (uint64, error) {
currentID, err := k.Counter.Get(ctx, entityType)
if err != nil {
currentID = 0
}
nextID := currentID + 1
err = k.Counter.Set(ctx, entityType, nextID)
if err != nil {
return 0, fmt.Errorf("failed to set counter: %w", err)
}
return nextID, nil
}
package keeper
import (
"context"
"errors"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
type msgServer struct {
Keeper
}
// NewMsgServerImpl returns an implementation of the MsgServer interface
// for the provided Keeper.
func NewMsgServerImpl(keeper Keeper) types.MsgServer {
return &msgServer{Keeper: keeper}
}
var _ types.MsgServer = msgServer{}
func (ms msgServer) CreateCredentialSchema(goCtx context.Context, msg *types.MsgCreateCredentialSchema) (*types.MsgCreateCredentialSchemaResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Generate next ID
nextID, err := ms.GetNextID(ctx, "cs")
if err != nil {
return nil, fmt.Errorf("failed to generate schema ID: %w", err)
}
// [MOD-CS-MSG-1-2-1] Basic checks
if err := ms.validateCreateCredentialSchemaParams(ctx, msg); err != nil {
return nil, err
}
// [MOD-CS-MSG-1-2-2] Fee checks
//if err := ms.checkSufficientFees(ctx, msg.Creator); err != nil {
// return nil, err
//}
// [MOD-CS-MSG-1-3] Execution
if err := ms.executeCreateCredentialSchema(ctx, nextID, msg); err != nil {
return nil, err
}
return &types.MsgCreateCredentialSchemaResponse{
Id: nextID,
}, nil
}
func (ms msgServer) UpdateCredentialSchema(goCtx context.Context, msg *types.MsgUpdateCredentialSchema) (*types.MsgUpdateCredentialSchemaResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Get credential schema
cs, err := ms.CredentialSchema.Get(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("credential schema not found: %w", err)
}
// Check trust registry controller
tr, err := ms.trustRegistryKeeper.GetTrustRegistry(ctx, cs.TrId)
if err != nil {
return nil, fmt.Errorf("trust registry not found: %w", err)
}
if tr.Controller != msg.Creator {
return nil, fmt.Errorf("creator is not the controller of the trust registry")
}
// Validate validity periods against params
params := ms.GetParams(ctx)
if err := ValidateValidityPeriods(params, msg); err != nil {
return nil, fmt.Errorf("invalid validity period: %w", err)
}
// [MOD-CS-MSG-2-3] Update mutable fields only
cs.IssuerGrantorValidationValidityPeriod = msg.IssuerGrantorValidationValidityPeriod
cs.VerifierGrantorValidationValidityPeriod = msg.VerifierGrantorValidationValidityPeriod
cs.IssuerValidationValidityPeriod = msg.IssuerValidationValidityPeriod
cs.VerifierValidationValidityPeriod = msg.VerifierValidationValidityPeriod
cs.HolderValidationValidityPeriod = msg.HolderValidationValidityPeriod
cs.Modified = ctx.BlockTime()
if err := ms.CredentialSchema.Set(ctx, cs.Id, cs); err != nil {
return nil, fmt.Errorf("failed to update credential schema: %w", err)
}
return &types.MsgUpdateCredentialSchemaResponse{}, nil
}
// ValidateValidityPeriods checks if all validity periods are within allowed ranges
func ValidateValidityPeriods(
params types.Params,
msg *types.MsgUpdateCredentialSchema,
) error {
if msg.IssuerGrantorValidationValidityPeriod > params.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays {
return errors.New("issuer grantor validation validity period exceeds maximum allowed days")
}
if msg.VerifierGrantorValidationValidityPeriod > params.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays {
return errors.New("verifier grantor validation validity period exceeds maximum allowed days")
}
if msg.IssuerValidationValidityPeriod > params.CredentialSchemaIssuerValidationValidityPeriodMaxDays {
return errors.New("issuer validation validity period exceeds maximum allowed days")
}
if msg.VerifierValidationValidityPeriod > params.CredentialSchemaVerifierValidationValidityPeriodMaxDays {
return errors.New("verifier validation validity period exceeds maximum allowed days")
}
if msg.HolderValidationValidityPeriod > params.CredentialSchemaHolderValidationValidityPeriodMaxDays {
return errors.New("holder validation validity period exceeds maximum allowed days")
}
return nil
}
func (ms msgServer) ArchiveCredentialSchema(goCtx context.Context, msg *types.MsgArchiveCredentialSchema) (*types.MsgArchiveCredentialSchemaResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Get credential schema
cs, err := ms.CredentialSchema.Get(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("credential schema not found: %w", err)
}
// Check trust registry controller
tr, err := ms.trustRegistryKeeper.GetTrustRegistry(ctx, cs.TrId)
if err != nil {
return nil, fmt.Errorf("trust registry not found: %w", err)
}
if tr.Controller != msg.Creator {
return nil, fmt.Errorf("only trust registry controller can archive credential schema")
}
// Check archive state
if msg.Archive {
if cs.Archived != nil {
return nil, fmt.Errorf("credential schema is already archived")
}
} else {
if cs.Archived == nil {
return nil, fmt.Errorf("credential schema is not archived")
}
}
// Update archive state
now := ctx.BlockTime()
if msg.Archive {
cs.Archived = &now
} else {
cs.Archived = nil
}
cs.Modified = now
// Save updated credential schema
if err := ms.CredentialSchema.Set(ctx, cs.Id, cs); err != nil {
return nil, fmt.Errorf("failed to update credential schema: %w", err)
}
return &types.MsgArchiveCredentialSchemaResponse{}, nil
}
package keeper
import (
"context"
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
if ms.GetAuthority() != req.Authority {
return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.GetAuthority(), req.Authority)
}
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.SetParams(ctx, req.Params); err != nil {
return nil, err
}
return &types.MsgUpdateParamsResponse{}, nil
}
package keeper
import (
"context"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
// GetParams get all parameters as types.Params
func (k Keeper) GetParams(ctx context.Context) (params types.Params) {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz := store.Get(types.ParamsKey)
if bz == nil {
return params
}
k.cdc.MustUnmarshal(bz, ¶ms)
return params
}
// SetParams set the params
func (k Keeper) SetParams(ctx context.Context, params types.Params) error {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz, err := k.cdc.Marshal(¶ms)
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)
return nil
}
package keeper
import (
"context"
"fmt"
"sort"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
var _ types.QueryServer = Keeper{}
func (k Keeper) ListCredentialSchemas(goCtx context.Context, req *types.QueryListCredentialSchemasRequest) (*types.QueryListCredentialSchemasResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
// Validate response_max_size
if req.ResponseMaxSize == 0 {
req.ResponseMaxSize = 64
}
if req.ResponseMaxSize > 1024 {
return nil, fmt.Errorf("response_max_size must be between 1 and 1024")
}
var schemas []types.CredentialSchema
err := k.CredentialSchema.Walk(ctx, nil, func(key uint64, schema types.CredentialSchema) (bool, error) {
// Filter by trust registry if specified
if req.TrId != 0 && schema.TrId != req.TrId {
return false, nil
}
// Filter by modification time if specified
if req.ModifiedAfter != nil && schema.Modified.Before(*req.ModifiedAfter) {
return false, nil
}
schemas = append(schemas, schema)
return len(schemas) >= int(req.ResponseMaxSize), nil
})
if err != nil {
return nil, err
}
// Sort by created timestamp ascending
sort.Slice(schemas, func(i, j int) bool {
return schemas[i].Created.Before(schemas[j].Created)
})
return &types.QueryListCredentialSchemasResponse{
Schemas: schemas,
}, nil
}
func (k Keeper) GetCredentialSchema(goCtx context.Context, req *types.QueryGetCredentialSchemaRequest) (*types.QueryGetCredentialSchemaResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
schema, err := k.CredentialSchema.Get(ctx, req.Id)
if err != nil {
return nil, status.Error(codes.NotFound, "credential schema not found")
}
return &types.QueryGetCredentialSchemaResponse{
Schema: schema,
}, nil
}
func (k Keeper) RenderJsonSchema(goCtx context.Context, req *types.QueryRenderJsonSchemaRequest) (*types.QueryRenderJsonSchemaResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
schema, err := k.CredentialSchema.Get(ctx, req.Id)
if err != nil {
return nil, status.Error(codes.NotFound, "credential schema not found")
}
return &types.QueryRenderJsonSchemaResponse{
Schema: schema.JsonSchema,
}, nil
}
package keeper
import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil
}
package credentialschema
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/credentialschema"
)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "Params",
Use: "params",
Short: "Shows the parameters of the module",
},
{
RpcMethod: "ListCredentialSchemas",
Use: "list-schemas",
Short: "List credential schemas with optional filters",
Long: `List credential schemas with optional filters.
Example:
$ veranad query credentialschema list-schemas
$ veranad query credentialschema list-schemas --tr_id 1 --modified_after 2024-01-01T00:00:00Z --response_max_size 100`,
FlagOptions: map[string]*autocliv1.FlagOptions{
"tr_id": {
Name: "tr_id",
Usage: "Filter by trust registry ID",
DefaultValue: "0",
},
"modified_after": {
Name: "modified_after",
Usage: "Show schemas modified after this datetime (RFC3339 format)",
DefaultValue: "",
},
"response_max_size": {
Name: "response_max_size",
Usage: "Maximum number of results (1-1024, default 64)",
DefaultValue: "64",
},
},
},
{
RpcMethod: "GetCredentialSchema",
Use: "get-schema [id]",
Short: "Get a credential schema by ID",
Long: `Get a credential schema by its ID.
Example:
$ veranad query credentialschema get 1`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "id"},
},
},
{
RpcMethod: "RenderJsonSchema",
Use: "render-json-schema [id]",
Short: "Get the JSON schema definition",
Long: `Render the JSON schema definition for a credential schema.
Response will be in application/schema+json format.
Example:
$ veranad query credentialschema schema 1`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
// this line is used by ignite scaffolding # autocli/query
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Msg_ServiceDesc.ServiceName,
EnhanceCustomCommand: true, // only required if you want to use the custom command
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "UpdateParams",
Skip: true, // skipped because authority gated
},
{
RpcMethod: "CreateCredentialSchema",
Use: "create-credential-schema [tr-id] [json-schema] [issuer-grantor-period] [verifier-grantor-period] [issuer-period] [verifier-period] [holder-period] [issuer-mode] [verifier-mode]",
Short: "Create a new credential schema",
Long: `Create a new credential schema with the specified parameters:
- tr-id: trust registry ID
- json-schema: path to JSON schema file or JSON string
- issuer-grantor-period: validation period for issuer grantors (days)
- verifier-grantor-period: validation period for verifier grantors (days)
- issuer-period: validation period for issuers (days)
- verifier-period: validation period for verifiers (days)
- holder-period: validation period for holders (days)
- issuer-mode: permission management mode for issuers (1=OPEN, 2=GRANTOR_VALIDATION, 3=TRUST_REGISTRY_VALIDATION)
- verifier-mode: permission management mode for verifiers (1=OPEN, 2=GRANTOR_VALIDATION, 3=TRUST_REGISTRY_VALIDATION)
Example:
$ veranad tx credentialschema create-credential-schema 1 schema.json 365 365 180 180 180 2 2`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "tr_id",
},
{
ProtoField: "json_schema",
},
{
ProtoField: "issuer_grantor_validation_validity_period",
},
{
ProtoField: "verifier_grantor_validation_validity_period",
},
{
ProtoField: "issuer_validation_validity_period",
},
{
ProtoField: "verifier_validation_validity_period",
},
{
ProtoField: "holder_validation_validity_period",
},
{
ProtoField: "issuer_perm_management_mode",
},
{
ProtoField: "verifier_perm_management_mode",
},
},
},
{
RpcMethod: "UpdateCredentialSchema",
Use: "update [id] [issuer-grantor-period] [verifier-grantor-period] [issuer-period] [verifier-period] [holder-period]",
Short: "Update a credential schema's validity periods",
Long: "Update the validity periods of an existing credential schema",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
{
ProtoField: "issuer_grantor_validation_validity_period",
},
{
ProtoField: "verifier_grantor_validation_validity_period",
},
{
ProtoField: "issuer_validation_validity_period",
},
{
ProtoField: "verifier_validation_validity_period",
},
{
ProtoField: "holder_validation_validity_period",
},
},
},
{
RpcMethod: "ArchiveCredentialSchema",
Use: "archive [id] [archive]",
Short: "Archive or unarchive a credential schema",
Long: "Set the archive status of a credential schema. Use true to archive, false to unarchive",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
{
ProtoField: "archive",
},
},
},
// this line is used by ignite scaffolding # autocli/tx
},
},
}
}
package credentialschema
import (
"fmt"
"sort"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/credentialschema/keeper"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
// Set module parameters
if err := k.SetParams(ctx, genState.Params); err != nil {
panic(fmt.Sprintf("failed to set params: %s", err))
}
// Initialize counter - we'll update with the highest ID after importing
maxID := uint64(0)
// Initialize Credential Schemas - sorted by ID for deterministic import
schemas := genState.CredentialSchemas
sort.Slice(schemas, func(i, j int) bool {
return schemas[i].Id < schemas[j].Id
})
for _, cs := range schemas {
// Set credential schema
if err := k.CredentialSchema.Set(ctx, cs.Id, cs); err != nil {
panic(fmt.Sprintf("failed to set Credential Schema: %s", err))
}
// Track highest ID to set counter correctly
if cs.Id > maxID {
maxID = cs.Id
}
}
// Set counter to the highest existing ID
// This is the fix: Always set the counter, even if maxID is 0
// This ensures the collections key exists for later retrieval
err := k.Counter.Set(ctx, "cs", maxID)
if err != nil {
panic(fmt.Sprintf("failed to set counter: %s", err))
}
k.Logger().Info("Initialized Credential Schema module",
"schemas_count", len(schemas),
"highest_id", maxID)
}
// ExportGenesis returns the module's exported genesis.
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
genesis := types.DefaultGenesis()
genesis.Params = k.GetParams(ctx)
// Export all credential schemas in a deterministic order
var credentialSchemas []types.CredentialSchema
err := k.CredentialSchema.Walk(ctx, nil, func(key uint64, cs types.CredentialSchema) (bool, error) {
credentialSchemas = append(credentialSchemas, cs)
return false, nil
})
if err != nil {
panic(fmt.Sprintf("failed to export Credential Schemas: %s", err))
}
// Sort by ID for deterministic export
sort.Slice(credentialSchemas, func(i, j int) bool {
return credentialSchemas[i].Id < credentialSchemas[j].Id
})
genesis.CredentialSchemas = credentialSchemas
// Export the counter value - THIS IS THE MISSING PART
counter, err := k.Counter.Get(ctx, "cs")
if err != nil {
// If there's no counter but we have schemas, use the highest ID
if len(credentialSchemas) > 0 {
highestID := uint64(0)
for _, cs := range credentialSchemas {
if cs.Id > highestID {
highestID = cs.Id
}
}
counter = highestID
}
}
genesis.SchemaCounter = counter
return genesis
}
package credentialschema
import (
"context"
"encoding/json"
"fmt"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
// this line is used by starport scaffolding # 1
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/credentialschema/module"
"github.com/verana-labs/verana-blockchain/x/credentialschema/keeper"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
var (
_ module.AppModuleBasic = (*AppModule)(nil)
_ module.AppModuleSimulation = (*AppModule)(nil)
_ module.HasGenesis = (*AppModule)(nil)
_ module.HasInvariants = (*AppModule)(nil)
_ module.HasConsensusVersion = (*AppModule)(nil)
_ appmodule.AppModule = (*AppModule)(nil)
_ appmodule.HasBeginBlocker = (*AppModule)(nil)
_ appmodule.HasEndBlocker = (*AppModule)(nil)
)
// ----------------------------------------------------------------------------
// AppModuleBasic
// ----------------------------------------------------------------------------
// AppModuleBasic implements the AppModuleBasic interface that defines the
// independent methods a Cosmos SDK module needs to implement.
type AppModuleBasic struct {
cdc codec.BinaryCodec
}
func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic {
return AppModuleBasic{cdc: cdc}
}
// Name returns the name of the module as a string.
func (AppModuleBasic) Name() string {
return types.ModuleName
}
// RegisterLegacyAminoCodec registers the amino codec for the module, which is used
// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message.
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) {
types.RegisterInterfaces(reg)
}
// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage.
// The default GenesisState need to be defined by the module developer and is primarily used for testing.
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(types.DefaultGenesis())
}
// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form.
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
var genState types.GenesisState
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err)
}
return genState.Validate()
}
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
panic(err)
}
}
// ----------------------------------------------------------------------------
// AppModule
// ----------------------------------------------------------------------------
// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement
type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
}
func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
accountKeeper types.AccountKeeper,
bankKeeper types.BankKeeper,
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(cdc),
keeper: keeper,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
}
}
// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}
// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted)
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
// InitGenesis performs the module's genesis initialization. It returns no validator updates.
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) {
var genState types.GenesisState
// Initialize global index to index in genesis state
cdc.MustUnmarshalJSON(gs, &genState)
InitGenesis(ctx, am.keeper, genState)
}
// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
genState := ExportGenesis(ctx, am.keeper)
return cdc.MustMarshalJSON(genState)
}
// ConsensusVersion is a sequence number for state-breaking change of the module.
// It should be incremented on each consensus-breaking change introduced by the module.
// To avoid wrong/empty versions, the initial version should be set to 1.
func (AppModule) ConsensusVersion() uint64 { return 1 }
// BeginBlock contains the logic that is automatically triggered at the beginning of each block.
// The begin block implementation is optional.
func (am AppModule) BeginBlock(_ context.Context) error {
return nil
}
// EndBlock contains the logic that is automatically triggered at the end of each block.
// The end block implementation is optional.
func (am AppModule) EndBlock(_ context.Context) error {
return nil
}
// IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (am AppModule) IsOnePerModuleType() {}
// IsAppModule implements the appmodule.AppModule interface.
func (am AppModule) IsAppModule() {}
// ----------------------------------------------------------------------------
// App Wiring Setup
// ----------------------------------------------------------------------------
func init() {
appmodule.Register(
&modulev1.Module{},
appmodule.Provide(ProvideModule),
)
}
type ModuleInputs struct {
depinject.In
StoreService store.KVStoreService
Cdc codec.Codec
Config *modulev1.Module
Logger log.Logger
BankKeeper types.BankKeeper `optional:"true"`
AccountKeeper types.AccountKeeper `optional:"true"`
TrustRegistryKeeper types.TrustRegistryKeeper `optional:"true"`
TrustDepositKeeper types.TrustDepositKeeper `optional:"true"`
}
type ModuleOutputs struct {
depinject.Out
CredentialschemaKeeper keeper.Keeper
Module appmodule.AppModule
}
func ProvideModule(in ModuleInputs) ModuleOutputs {
// default to governance authority if not provided
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
k := keeper.NewKeeper(
in.Cdc,
in.StoreService,
in.Logger,
authority.String(),
in.BankKeeper,
in.TrustRegistryKeeper,
in.TrustDepositKeeper,
)
m := NewAppModule(
in.Cdc,
k,
in.AccountKeeper,
in.BankKeeper,
)
return ModuleOutputs{CredentialschemaKeeper: k, Module: m}
}
package credentialschema
import (
"math/rand"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/verana-labs/verana-blockchain/testutil/sample"
credentialschemasimulation "github.com/verana-labs/verana-blockchain/x/credentialschema/simulation"
"github.com/verana-labs/verana-blockchain/x/credentialschema/types"
)
// avoid unused import issue
var (
_ = credentialschemasimulation.FindAccount
_ = rand.Rand{}
_ = sample.AccAddress
_ = sdk.AccAddress{}
_ = simulation.MsgEntryKind
)
const (
// this line is used by starport scaffolding # simapp/module/const
)
// GenerateGenesisState creates a randomized GenState of the module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs := make([]string, len(simState.Accounts))
for i, acc := range simState.Accounts {
accs[i] = acc.Address.String()
}
credentialschemaGenesis := types.GenesisState{
Params: types.DefaultParams(),
// this line is used by starport scaffolding # simapp/module/genesisState
}
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&credentialschemaGenesis)
}
// RegisterStoreDecoder registers a decoder.
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {}
// WeightedOperations returns the all the gov module operations with their respective weights.
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
operations := make([]simtypes.WeightedOperation, 0)
// this line is used by starport scaffolding # simapp/module/operation
return operations
}
// ProposalMsgs returns msgs used for governance proposals for simulations.
func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg {
return []simtypes.WeightedProposalMsg{
// this line is used by starport scaffolding # simapp/module/OpMsg
}
}
package simulation
import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
// FindAccount find a specific address from an account list
func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) {
creator, err := sdk.AccAddressFromBech32(address)
if err != nil {
panic(err)
}
return simtypes.FindAccount(accs, creator)
}
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
// this line is used by starport scaffolding # 1
)
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgCreateCredentialSchema{}, "/vpr/v1/cs/create-credential-schema")
legacy.RegisterAminoMsg(cdc, &MsgUpdateCredentialSchema{}, "/vpr/v1/cs/update-credential-schema")
legacy.RegisterAminoMsg(cdc, &MsgArchiveCredentialSchema{}, "/vpr/v1/cs/archive-credential-schema")
}
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// this line is used by starport scaffolding # 3
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUpdateParams{},
&MsgCreateCredentialSchema{},
&MsgUpdateCredentialSchema{},
&MsgArchiveCredentialSchema{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
package types
import "fmt"
// this line is used by starport scaffolding # genesis/types/import
// DefaultIndex is the default global index
const DefaultIndex uint64 = 1
// DefaultGenesis returns the default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
Params: DefaultParams(),
CredentialSchemas: []CredentialSchema{},
SchemaCounter: 0, // Start counter at 0
}
}
// Validate performs basic genesis state validation returning an error upon any
// failure.
func (gs GenesisState) Validate() error {
// Validate parameters
if err := gs.Params.Validate(); err != nil {
return fmt.Errorf("invalid params: %w", err)
}
// Validate credential schemas
seenCredentialSchemaIDs := make(map[uint64]bool)
// Validate each credential schema and check for duplicates
for i, cs := range gs.CredentialSchemas {
// Check for mandatory fields
if cs.Id == 0 {
return fmt.Errorf("credential schema at index %d has invalid ID 0", i)
}
if cs.TrId == 0 {
return fmt.Errorf("credential schema at index %d has invalid trust registry ID 0", i)
}
if cs.Created.IsZero() {
return fmt.Errorf("credential schema at index %d has invalid creation time", i)
}
if cs.Modified.IsZero() {
return fmt.Errorf("credential schema at index %d has invalid modified time", i)
}
if cs.JsonSchema == "" {
return fmt.Errorf("credential schema at index %d has empty JSON schema", i)
}
// Check permission management modes are valid
if cs.IssuerPermManagementMode <= CredentialSchemaPermManagementMode_MODE_UNSPECIFIED ||
cs.IssuerPermManagementMode > CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION {
return fmt.Errorf("credential schema at index %d has invalid issuer permission management mode: %d",
i, cs.IssuerPermManagementMode)
}
if cs.VerifierPermManagementMode <= CredentialSchemaPermManagementMode_MODE_UNSPECIFIED ||
cs.VerifierPermManagementMode > CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION {
return fmt.Errorf("credential schema at index %d has invalid verifier permission management mode: %d",
i, cs.VerifierPermManagementMode)
}
// Validate JSON schema format (basic check)
if err := validateJSONSchema(cs.JsonSchema); err != nil {
return fmt.Errorf("credential schema at index %d has invalid JSON schema: %w", i, err)
}
// Check for duplicate schema IDs
if seenCredentialSchemaIDs[cs.Id] {
return fmt.Errorf("duplicate credential schema ID found in genesis state: %d", cs.Id)
}
seenCredentialSchemaIDs[cs.Id] = true
// Additional validations for validity periods
if cs.IssuerGrantorValidationValidityPeriod > DefaultCredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays {
return fmt.Errorf("credential schema at index %d has issuer grantor validation validity period exceeding maximum", i)
}
if cs.VerifierGrantorValidationValidityPeriod > DefaultCredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays {
return fmt.Errorf("credential schema at index %d has verifier grantor validation validity period exceeding maximum", i)
}
if cs.IssuerValidationValidityPeriod > DefaultCredentialSchemaIssuerValidationValidityPeriodMaxDays {
return fmt.Errorf("credential schema at index %d has issuer validation validity period exceeding maximum", i)
}
if cs.VerifierValidationValidityPeriod > DefaultCredentialSchemaVerifierValidationValidityPeriodMaxDays {
return fmt.Errorf("credential schema at index %d has verifier validation validity period exceeding maximum", i)
}
if cs.HolderValidationValidityPeriod > DefaultCredentialSchemaHolderValidationValidityPeriodMaxDays {
return fmt.Errorf("credential schema at index %d has holder validation validity period exceeding maximum", i)
}
// Validate consistency with other fields
if cs.Created.After(cs.Modified) {
return fmt.Errorf("credential schema at index %d has creation time after modified time", i)
}
// Validate archive status consistency
if cs.Archived != nil {
if cs.Archived.Before(cs.Created) {
return fmt.Errorf("credential schema at index %d has archive time before creation time", i)
}
}
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/credentialschema/genesis.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the credentialschema module's genesis state.
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
CredentialSchemas []CredentialSchema `protobuf:"bytes,2,rep,name=credential_schemas,json=credentialSchemas,proto3" json:"credential_schemas"`
SchemaCounter uint64 `protobuf:"varint,3,opt,name=schema_counter,json=schemaCounter,proto3" json:"schema_counter,omitempty"`
}
func (m *GenesisState) Reset() { *m = GenesisState{} }
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
func (*GenesisState) ProtoMessage() {}
func (*GenesisState) Descriptor() ([]byte, []int) {
return fileDescriptor_553db90c6f29f4fa, []int{0}
}
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GenesisState) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenesisState.Merge(m, src)
}
func (m *GenesisState) XXX_Size() int {
return m.Size()
}
func (m *GenesisState) XXX_DiscardUnknown() {
xxx_messageInfo_GenesisState.DiscardUnknown(m)
}
var xxx_messageInfo_GenesisState proto.InternalMessageInfo
func (m *GenesisState) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
func (m *GenesisState) GetCredentialSchemas() []CredentialSchema {
if m != nil {
return m.CredentialSchemas
}
return nil
}
func (m *GenesisState) GetSchemaCounter() uint64 {
if m != nil {
return m.SchemaCounter
}
return 0
}
func init() {
proto.RegisterType((*GenesisState)(nil), "veranablockchain.credentialschema.GenesisState")
}
func init() {
proto.RegisterFile("veranablockchain/credentialschema/genesis.proto", fileDescriptor_553db90c6f29f4fa)
}
var fileDescriptor_553db90c6f29f4fa = []byte{
// 298 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2f, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x4f, 0x2e, 0x4a,
0x4d, 0x49, 0xcd, 0x2b, 0xc9, 0x4c, 0xcc, 0x29, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x4f, 0x4f,
0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x44, 0xd7, 0xa0,
0x87, 0xae, 0x41, 0x4a, 0x30, 0x31, 0x37, 0x33, 0x2f, 0x5f, 0x1f, 0x4c, 0x42, 0x74, 0x49, 0x89,
0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x99, 0xfa, 0x20, 0x16, 0x54, 0x54, 0x8f, 0xb0, 0xe5, 0x05, 0x89,
0x45, 0x89, 0xb9, 0x50, 0xbb, 0xa5, 0x74, 0x09, 0xab, 0x2f, 0xa9, 0x2c, 0x48, 0x85, 0x2a, 0x57,
0x7a, 0xcb, 0xc8, 0xc5, 0xe3, 0x0e, 0x71, 0x7c, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, 0x0f, 0x17,
0x1b, 0xc4, 0x3c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x4d, 0x3d, 0x82, 0x9e, 0xd1, 0x0b,
0x00, 0x6b, 0x70, 0xe2, 0x3c, 0x71, 0x4f, 0x9e, 0x61, 0xc5, 0xf3, 0x0d, 0x5a, 0x8c, 0x41, 0x50,
0x33, 0x84, 0x32, 0xb8, 0x84, 0x10, 0xaa, 0xe3, 0x21, 0xca, 0x8b, 0x25, 0x98, 0x14, 0x98, 0x35,
0xb8, 0x8d, 0x8c, 0x89, 0x30, 0xd9, 0x19, 0x2e, 0x10, 0x0c, 0x16, 0x70, 0x62, 0x01, 0xd9, 0x11,
0x24, 0x98, 0x8c, 0x26, 0x5e, 0x2c, 0xa4, 0xca, 0xc5, 0x07, 0xd1, 0x13, 0x9f, 0x9c, 0x5f, 0x9a,
0x57, 0x92, 0x5a, 0x24, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, 0xc4, 0x0b, 0x11, 0x75, 0x86, 0x08,
0x3a, 0x45, 0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13,
0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x63, 0x7a, 0x66,
0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x34, 0xc2, 0x75, 0x73, 0x12, 0x93, 0x8a, 0x61,
0x6c, 0xa4, 0x00, 0xad, 0xc0, 0x11, 0xa4, 0x49, 0x6c, 0xe0, 0x30, 0x35, 0x06, 0x04, 0x00, 0x00,
0xff, 0xff, 0x28, 0x95, 0xe8, 0xc3, 0x31, 0x02, 0x00, 0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.SchemaCounter != 0 {
i = encodeVarintGenesis(dAtA, i, uint64(m.SchemaCounter))
i--
dAtA[i] = 0x18
}
if len(m.CredentialSchemas) > 0 {
for iNdEx := len(m.CredentialSchemas) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.CredentialSchemas[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
offset -= sovGenesis(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *GenesisState) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovGenesis(uint64(l))
if len(m.CredentialSchemas) > 0 {
for _, e := range m.CredentialSchemas {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
if m.SchemaCounter != 0 {
n += 1 + sovGenesis(uint64(m.SchemaCounter))
}
return n
}
func sovGenesis(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozGenesis(x uint64) (n int) {
return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *GenesisState) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemas", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.CredentialSchemas = append(m.CredentialSchemas, CredentialSchema{})
if err := m.CredentialSchemas[len(m.CredentialSchemas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SchemaCounter", wireType)
}
m.SchemaCounter = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SchemaCounter |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGenesis(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthGenesis
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupGenesis
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthGenesis
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
package types
import (
"cosmossdk.io/collections"
)
const (
// ModuleName defines the module name
ModuleName = "credentialschema"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_credentialschema"
// RouterKey defines the module's message routing key
RouterKey = ModuleName
)
var (
ParamsKey = []byte("p_credentialschema")
CredentialSchemaKey = collections.NewPrefix(1)
CounterKey = collections.NewPrefix(2)
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
package types
import (
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var _ sdk.Msg = &MsgUpdateParams{}
// ValidateBasic does a sanity check on the provided data.
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errorsmod.Wrap(err, "invalid authority address")
}
if err := m.Params.Validate(); err != nil {
return err
}
return nil
}
package types
import (
"fmt"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
var _ paramtypes.ParamSet = (*Params)(nil)
const (
// Default parameter values
DefaultCredentialSchemaTrustDeposit = uint64(10) // 10 trust units
DefaultCredentialSchemaSchemaMaxSize = uint64(8192) // 8KB
DefaultCredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays = uint32(3650) // 10 years
DefaultCredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays = uint32(3650)
DefaultCredentialSchemaIssuerValidationValidityPeriodMaxDays = uint32(3650)
DefaultCredentialSchemaVerifierValidationValidityPeriodMaxDays = uint32(3650)
DefaultCredentialSchemaHolderValidationValidityPeriodMaxDays = uint32(3650)
)
// ParamKeyTable the param key table for launch module
func ParamKeyTable() paramtypes.KeyTable {
return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
// NewParams creates a new Params instance
func NewParams(
trustDeposit uint64,
schemaMaxSize uint64,
issuerGrantorValidityPeriod uint32,
verifierGrantorValidityPeriod uint32,
issuerValidityPeriod uint32,
verifierValidityPeriod uint32,
holderValidityPeriod uint32,
) Params {
return Params{
CredentialSchemaTrustDeposit: trustDeposit,
CredentialSchemaSchemaMaxSize: schemaMaxSize,
CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays: issuerGrantorValidityPeriod,
CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays: verifierGrantorValidityPeriod,
CredentialSchemaIssuerValidationValidityPeriodMaxDays: issuerValidityPeriod,
CredentialSchemaVerifierValidationValidityPeriodMaxDays: verifierValidityPeriod,
CredentialSchemaHolderValidationValidityPeriodMaxDays: holderValidityPeriod,
}
}
// DefaultParams returns a default set of parameters
func DefaultParams() Params {
return NewParams(
DefaultCredentialSchemaTrustDeposit,
DefaultCredentialSchemaSchemaMaxSize,
DefaultCredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays,
DefaultCredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays,
DefaultCredentialSchemaIssuerValidationValidityPeriodMaxDays,
DefaultCredentialSchemaVerifierValidationValidityPeriodMaxDays,
DefaultCredentialSchemaHolderValidationValidityPeriodMaxDays,
)
}
// ParamSetPairs get the params.ParamSet
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaTrustDeposit"),
&p.CredentialSchemaTrustDeposit,
validatePositiveUint64,
),
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaSchemaMaxSize"),
&p.CredentialSchemaSchemaMaxSize,
validatePositiveUint64,
),
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays"),
&p.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays,
validatePositiveUint32,
),
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays"),
&p.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays,
validatePositiveUint32,
),
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaIssuerValidationValidityPeriodMaxDays"),
&p.CredentialSchemaIssuerValidationValidityPeriodMaxDays,
validatePositiveUint32,
),
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaVerifierValidationValidityPeriodMaxDays"),
&p.CredentialSchemaVerifierValidationValidityPeriodMaxDays,
validatePositiveUint32,
),
paramtypes.NewParamSetPair(
[]byte("CredentialSchemaHolderValidationValidityPeriodMaxDays"),
&p.CredentialSchemaHolderValidationValidityPeriodMaxDays,
validatePositiveUint32,
),
}
}
// Validate validates the set of params
func (p Params) Validate() error {
if p.CredentialSchemaTrustDeposit == 0 {
return fmt.Errorf("credential schema trust deposit must be positive")
}
if p.CredentialSchemaSchemaMaxSize == 0 {
return fmt.Errorf("credential schema max size must be positive")
}
if p.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays == 0 {
return fmt.Errorf("issuer grantor validation validity period max days must be positive")
}
if p.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays == 0 {
return fmt.Errorf("verifier grantor validation validity period max days must be positive")
}
if p.CredentialSchemaIssuerValidationValidityPeriodMaxDays == 0 {
return fmt.Errorf("issuer validation validity period max days must be positive")
}
if p.CredentialSchemaVerifierValidationValidityPeriodMaxDays == 0 {
return fmt.Errorf("verifier validation validity period max days must be positive")
}
if p.CredentialSchemaHolderValidationValidityPeriodMaxDays == 0 {
return fmt.Errorf("holder validation validity period max days must be positive")
}
return nil
}
// Parameter validation helpers
func validatePositiveUint64(i interface{}) error {
v, ok := i.(uint64)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
if v == 0 {
return fmt.Errorf("value must be positive: %d", v)
}
return nil
}
func validatePositiveUint32(i interface{}) error {
v, ok := i.(uint32)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
if v == 0 {
return fmt.Errorf("value must be positive: %d", v)
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/credentialschema/params.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the parameters for the module.
type Params struct {
CredentialSchemaTrustDeposit uint64 `protobuf:"varint,1,opt,name=credential_schema_trust_deposit,json=credentialSchemaTrustDeposit,proto3" json:"credential_schema_trust_deposit,omitempty"`
CredentialSchemaSchemaMaxSize uint64 `protobuf:"varint,2,opt,name=credential_schema_schema_max_size,json=credentialSchemaSchemaMaxSize,proto3" json:"credential_schema_schema_max_size,omitempty"`
CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays uint32 `protobuf:"varint,3,opt,name=credential_schema_issuer_grantor_validation_validity_period_max_days,json=credentialSchemaIssuerGrantorValidationValidityPeriodMaxDays,proto3" json:"credential_schema_issuer_grantor_validation_validity_period_max_days,omitempty"`
CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays uint32 `protobuf:"varint,4,opt,name=credential_schema_verifier_grantor_validation_validity_period_max_days,json=credentialSchemaVerifierGrantorValidationValidityPeriodMaxDays,proto3" json:"credential_schema_verifier_grantor_validation_validity_period_max_days,omitempty"`
CredentialSchemaIssuerValidationValidityPeriodMaxDays uint32 `protobuf:"varint,5,opt,name=credential_schema_issuer_validation_validity_period_max_days,json=credentialSchemaIssuerValidationValidityPeriodMaxDays,proto3" json:"credential_schema_issuer_validation_validity_period_max_days,omitempty"`
CredentialSchemaVerifierValidationValidityPeriodMaxDays uint32 `protobuf:"varint,6,opt,name=credential_schema_verifier_validation_validity_period_max_days,json=credentialSchemaVerifierValidationValidityPeriodMaxDays,proto3" json:"credential_schema_verifier_validation_validity_period_max_days,omitempty"`
CredentialSchemaHolderValidationValidityPeriodMaxDays uint32 `protobuf:"varint,7,opt,name=credential_schema_holder_validation_validity_period_max_days,json=credentialSchemaHolderValidationValidityPeriodMaxDays,proto3" json:"credential_schema_holder_validation_validity_period_max_days,omitempty"`
}
func (m *Params) Reset() { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage() {}
func (*Params) Descriptor() ([]byte, []int) {
return fileDescriptor_7a095d0f1656254c, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Params.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
xxx_messageInfo_Params.DiscardUnknown(m)
}
var xxx_messageInfo_Params proto.InternalMessageInfo
func (m *Params) GetCredentialSchemaTrustDeposit() uint64 {
if m != nil {
return m.CredentialSchemaTrustDeposit
}
return 0
}
func (m *Params) GetCredentialSchemaSchemaMaxSize() uint64 {
if m != nil {
return m.CredentialSchemaSchemaMaxSize
}
return 0
}
func (m *Params) GetCredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays() uint32 {
if m != nil {
return m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays
}
return 0
}
func (m *Params) GetCredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays() uint32 {
if m != nil {
return m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays
}
return 0
}
func (m *Params) GetCredentialSchemaIssuerValidationValidityPeriodMaxDays() uint32 {
if m != nil {
return m.CredentialSchemaIssuerValidationValidityPeriodMaxDays
}
return 0
}
func (m *Params) GetCredentialSchemaVerifierValidationValidityPeriodMaxDays() uint32 {
if m != nil {
return m.CredentialSchemaVerifierValidationValidityPeriodMaxDays
}
return 0
}
func (m *Params) GetCredentialSchemaHolderValidationValidityPeriodMaxDays() uint32 {
if m != nil {
return m.CredentialSchemaHolderValidationValidityPeriodMaxDays
}
return 0
}
func init() {
proto.RegisterType((*Params)(nil), "veranablockchain.credentialschema.Params")
}
func init() {
proto.RegisterFile("veranablockchain/credentialschema/params.proto", fileDescriptor_7a095d0f1656254c)
}
var fileDescriptor_7a095d0f1656254c = []byte{
// 428 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0x8b, 0xd3, 0x40,
0x18, 0xc6, 0x3b, 0xba, 0x46, 0x18, 0xf0, 0x60, 0xf0, 0x50, 0x16, 0xcd, 0xee, 0x7a, 0x5a, 0x16,
0x4c, 0x0e, 0x8b, 0x08, 0x52, 0x0a, 0x4a, 0xd5, 0x7a, 0x28, 0x94, 0x56, 0x7a, 0xd0, 0x43, 0x78,
0x93, 0x8c, 0xc9, 0x60, 0x92, 0x09, 0x33, 0xd3, 0x92, 0xd4, 0x83, 0xf7, 0x1e, 0xc4, 0x8f, 0xe0,
0x47, 0xf0, 0x63, 0x78, 0xec, 0xd1, 0xa3, 0xb4, 0x87, 0xfa, 0x31, 0xa4, 0x33, 0xd5, 0x42, 0xd2,
0x3f, 0xd1, 0xcb, 0xe4, 0x25, 0x3c, 0xf3, 0x7b, 0x9e, 0x79, 0xe1, 0xc1, 0xf6, 0x84, 0x70, 0x48,
0xc1, 0x8b, 0x99, 0xff, 0xc1, 0x8f, 0x80, 0xa6, 0x8e, 0xcf, 0x49, 0x40, 0x52, 0x49, 0x21, 0x16,
0x7e, 0x44, 0x12, 0x70, 0x32, 0xe0, 0x90, 0x08, 0x3b, 0xe3, 0x4c, 0x32, 0xf3, 0xa2, 0xac, 0xb7,
0xcb, 0xfa, 0xd3, 0xbb, 0x90, 0xd0, 0x94, 0x39, 0xea, 0xd4, 0xb7, 0x4e, 0xef, 0x85, 0x2c, 0x64,
0x6a, 0x74, 0xd6, 0x93, 0xfe, 0xfb, 0x70, 0x65, 0x60, 0xa3, 0xaf, 0xe0, 0xe6, 0x0b, 0x7c, 0xb6,
0xe5, 0xb8, 0x1a, 0xe4, 0x4a, 0x3e, 0x16, 0xd2, 0x0d, 0x48, 0xc6, 0x04, 0x95, 0x4d, 0x74, 0x8e,
0x2e, 0x4f, 0x06, 0xf7, 0xb7, 0xb2, 0xa1, 0x52, 0xbd, 0x59, 0x8b, 0x3a, 0x5a, 0x63, 0x76, 0xf1,
0x45, 0x15, 0xb3, 0xf9, 0x24, 0x90, 0xbb, 0x82, 0x4e, 0x49, 0xf3, 0x86, 0x02, 0x3d, 0x28, 0x83,
0xf4, 0xd9, 0x83, 0x7c, 0x48, 0xa7, 0xc4, 0x9c, 0x21, 0xdc, 0xa9, 0xa2, 0xa8, 0x10, 0x63, 0xc2,
0xdd, 0x90, 0x43, 0x2a, 0x19, 0x77, 0x27, 0x10, 0xd3, 0x00, 0x24, 0x65, 0xa9, 0x1e, 0xa9, 0x2c,
0xdc, 0x8c, 0x70, 0xca, 0x02, 0xe5, 0x16, 0x40, 0x21, 0x9a, 0x37, 0xcf, 0xd1, 0xe5, 0x9d, 0x41,
0xab, 0xec, 0xf6, 0x5a, 0x91, 0x5e, 0x69, 0xd0, 0xe8, 0x2f, 0x67, 0xb4, 0xc1, 0xf4, 0x15, 0xa5,
0x07, 0x79, 0x07, 0x0a, 0x61, 0x7e, 0x46, 0xf8, 0x65, 0x35, 0xcc, 0x84, 0x70, 0xfa, 0x9e, 0xfe,
0x63, 0x9c, 0x13, 0x15, 0xa7, 0x5d, 0x8e, 0x33, 0xda, 0xb0, 0x6a, 0x06, 0xfa, 0x88, 0x5b, 0x7b,
0x97, 0x53, 0x27, 0xc5, 0x2d, 0x95, 0xe2, 0xf1, 0xee, 0xa5, 0x1c, 0x33, 0xff, 0x84, 0xdb, 0x07,
0x96, 0x51, 0xc7, 0xde, 0x50, 0xf6, 0x4f, 0xf6, 0x2d, 0xe1, 0xbf, 0x5e, 0x1f, 0xb1, 0x38, 0xa8,
0x69, 0x7f, 0x7b, 0xf7, 0xeb, 0xbb, 0x8a, 0x70, 0xc4, 0xfc, 0xe9, 0xf5, 0xaf, 0xaf, 0x67, 0x68,
0xb6, 0xfa, 0x76, 0x75, 0x55, 0x69, 0x6e, 0x5e, 0xed, 0xae, 0xae, 0xd7, 0xf3, 0x77, 0xdf, 0x17,
0x16, 0x9a, 0x2f, 0x2c, 0xf4, 0x73, 0x61, 0xa1, 0x2f, 0x4b, 0xab, 0x31, 0x5f, 0x5a, 0x8d, 0x1f,
0x4b, 0xab, 0xf1, 0xf6, 0x59, 0x48, 0x65, 0x34, 0xf6, 0x6c, 0x9f, 0x25, 0x8e, 0x06, 0x3e, 0x8a,
0xc1, 0x13, 0x7f, 0xe6, 0xc3, 0x74, 0x59, 0x64, 0x44, 0x78, 0x86, 0x6a, 0xf3, 0xf5, 0xef, 0x00,
0x00, 0x00, 0xff, 0xff, 0xc7, 0xb8, 0xe9, 0xd0, 0x4b, 0x04, 0x00, 0x00,
}
func (this *Params) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Params)
if !ok {
that2, ok := that.(Params)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.CredentialSchemaTrustDeposit != that1.CredentialSchemaTrustDeposit {
return false
}
if this.CredentialSchemaSchemaMaxSize != that1.CredentialSchemaSchemaMaxSize {
return false
}
if this.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != that1.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays {
return false
}
if this.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != that1.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays {
return false
}
if this.CredentialSchemaIssuerValidationValidityPeriodMaxDays != that1.CredentialSchemaIssuerValidationValidityPeriodMaxDays {
return false
}
if this.CredentialSchemaVerifierValidationValidityPeriodMaxDays != that1.CredentialSchemaVerifierValidationValidityPeriodMaxDays {
return false
}
if this.CredentialSchemaHolderValidationValidityPeriodMaxDays != that1.CredentialSchemaHolderValidationValidityPeriodMaxDays {
return false
}
return true
}
func (m *Params) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Params) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.CredentialSchemaHolderValidationValidityPeriodMaxDays != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaHolderValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x38
}
if m.CredentialSchemaVerifierValidationValidityPeriodMaxDays != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaVerifierValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x30
}
if m.CredentialSchemaIssuerValidationValidityPeriodMaxDays != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaIssuerValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x28
}
if m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x20
}
if m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays))
i--
dAtA[i] = 0x18
}
if m.CredentialSchemaSchemaMaxSize != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaSchemaMaxSize))
i--
dAtA[i] = 0x10
}
if m.CredentialSchemaTrustDeposit != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.CredentialSchemaTrustDeposit))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
offset -= sovParams(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Params) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.CredentialSchemaTrustDeposit != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaTrustDeposit))
}
if m.CredentialSchemaSchemaMaxSize != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaSchemaMaxSize))
}
if m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays))
}
if m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays))
}
if m.CredentialSchemaIssuerValidationValidityPeriodMaxDays != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaIssuerValidationValidityPeriodMaxDays))
}
if m.CredentialSchemaVerifierValidationValidityPeriodMaxDays != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaVerifierValidationValidityPeriodMaxDays))
}
if m.CredentialSchemaHolderValidationValidityPeriodMaxDays != 0 {
n += 1 + sovParams(uint64(m.CredentialSchemaHolderValidationValidityPeriodMaxDays))
}
return n
}
func sovParams(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaTrustDeposit", wireType)
}
m.CredentialSchemaTrustDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaTrustDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaSchemaMaxSize", wireType)
}
m.CredentialSchemaSchemaMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaSchemaMaxSize |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays", wireType)
}
m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays", wireType)
}
m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaIssuerValidationValidityPeriodMaxDays", wireType)
}
m.CredentialSchemaIssuerValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaIssuerValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaVerifierValidationValidityPeriodMaxDays", wireType)
}
m.CredentialSchemaVerifierValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaVerifierValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CredentialSchemaHolderValidationValidityPeriodMaxDays", wireType)
}
m.CredentialSchemaHolderValidationValidityPeriodMaxDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CredentialSchemaHolderValidationValidityPeriodMaxDays |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipParams(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthParams
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipParams(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthParams
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupParams
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthParams
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowParams = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/credentialschema/query.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/query"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
}
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryParamsRequest) ProtoMessage() {}
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{0}
}
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
}
func (m *QueryParamsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryParamsResponse) ProtoMessage() {}
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{1}
}
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
}
func (m *QueryParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
func (m *QueryParamsResponse) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
type QueryListCredentialSchemasRequest struct {
TrId uint64 `protobuf:"varint,1,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
ModifiedAfter *time.Time `protobuf:"bytes,2,opt,name=modified_after,json=modifiedAfter,proto3,stdtime" json:"modified_after,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,3,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (m *QueryListCredentialSchemasRequest) Reset() { *m = QueryListCredentialSchemasRequest{} }
func (m *QueryListCredentialSchemasRequest) String() string { return proto.CompactTextString(m) }
func (*QueryListCredentialSchemasRequest) ProtoMessage() {}
func (*QueryListCredentialSchemasRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{2}
}
func (m *QueryListCredentialSchemasRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListCredentialSchemasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListCredentialSchemasRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListCredentialSchemasRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListCredentialSchemasRequest.Merge(m, src)
}
func (m *QueryListCredentialSchemasRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryListCredentialSchemasRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListCredentialSchemasRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListCredentialSchemasRequest proto.InternalMessageInfo
func (m *QueryListCredentialSchemasRequest) GetTrId() uint64 {
if m != nil {
return m.TrId
}
return 0
}
func (m *QueryListCredentialSchemasRequest) GetModifiedAfter() *time.Time {
if m != nil {
return m.ModifiedAfter
}
return nil
}
func (m *QueryListCredentialSchemasRequest) GetResponseMaxSize() uint32 {
if m != nil {
return m.ResponseMaxSize
}
return 0
}
type QueryListCredentialSchemasResponse struct {
Schemas []CredentialSchema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas"`
}
func (m *QueryListCredentialSchemasResponse) Reset() { *m = QueryListCredentialSchemasResponse{} }
func (m *QueryListCredentialSchemasResponse) String() string { return proto.CompactTextString(m) }
func (*QueryListCredentialSchemasResponse) ProtoMessage() {}
func (*QueryListCredentialSchemasResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{3}
}
func (m *QueryListCredentialSchemasResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListCredentialSchemasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListCredentialSchemasResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListCredentialSchemasResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListCredentialSchemasResponse.Merge(m, src)
}
func (m *QueryListCredentialSchemasResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryListCredentialSchemasResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListCredentialSchemasResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListCredentialSchemasResponse proto.InternalMessageInfo
func (m *QueryListCredentialSchemasResponse) GetSchemas() []CredentialSchema {
if m != nil {
return m.Schemas
}
return nil
}
type QueryGetCredentialSchemaRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *QueryGetCredentialSchemaRequest) Reset() { *m = QueryGetCredentialSchemaRequest{} }
func (m *QueryGetCredentialSchemaRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetCredentialSchemaRequest) ProtoMessage() {}
func (*QueryGetCredentialSchemaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{4}
}
func (m *QueryGetCredentialSchemaRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetCredentialSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetCredentialSchemaRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetCredentialSchemaRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetCredentialSchemaRequest.Merge(m, src)
}
func (m *QueryGetCredentialSchemaRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetCredentialSchemaRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetCredentialSchemaRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetCredentialSchemaRequest proto.InternalMessageInfo
func (m *QueryGetCredentialSchemaRequest) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type QueryGetCredentialSchemaResponse struct {
Schema CredentialSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema"`
}
func (m *QueryGetCredentialSchemaResponse) Reset() { *m = QueryGetCredentialSchemaResponse{} }
func (m *QueryGetCredentialSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetCredentialSchemaResponse) ProtoMessage() {}
func (*QueryGetCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{5}
}
func (m *QueryGetCredentialSchemaResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetCredentialSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetCredentialSchemaResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetCredentialSchemaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetCredentialSchemaResponse.Merge(m, src)
}
func (m *QueryGetCredentialSchemaResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetCredentialSchemaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetCredentialSchemaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetCredentialSchemaResponse proto.InternalMessageInfo
func (m *QueryGetCredentialSchemaResponse) GetSchema() CredentialSchema {
if m != nil {
return m.Schema
}
return CredentialSchema{}
}
type QueryRenderJsonSchemaRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *QueryRenderJsonSchemaRequest) Reset() { *m = QueryRenderJsonSchemaRequest{} }
func (m *QueryRenderJsonSchemaRequest) String() string { return proto.CompactTextString(m) }
func (*QueryRenderJsonSchemaRequest) ProtoMessage() {}
func (*QueryRenderJsonSchemaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{6}
}
func (m *QueryRenderJsonSchemaRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryRenderJsonSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryRenderJsonSchemaRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryRenderJsonSchemaRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRenderJsonSchemaRequest.Merge(m, src)
}
func (m *QueryRenderJsonSchemaRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryRenderJsonSchemaRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRenderJsonSchemaRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRenderJsonSchemaRequest proto.InternalMessageInfo
func (m *QueryRenderJsonSchemaRequest) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type QueryRenderJsonSchemaResponse struct {
Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`
}
func (m *QueryRenderJsonSchemaResponse) Reset() { *m = QueryRenderJsonSchemaResponse{} }
func (m *QueryRenderJsonSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*QueryRenderJsonSchemaResponse) ProtoMessage() {}
func (*QueryRenderJsonSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_abc2dfc1bf61ae30, []int{7}
}
func (m *QueryRenderJsonSchemaResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryRenderJsonSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryRenderJsonSchemaResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryRenderJsonSchemaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRenderJsonSchemaResponse.Merge(m, src)
}
func (m *QueryRenderJsonSchemaResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryRenderJsonSchemaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRenderJsonSchemaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRenderJsonSchemaResponse proto.InternalMessageInfo
func (m *QueryRenderJsonSchemaResponse) GetSchema() string {
if m != nil {
return m.Schema
}
return ""
}
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "veranablockchain.credentialschema.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "veranablockchain.credentialschema.QueryParamsResponse")
proto.RegisterType((*QueryListCredentialSchemasRequest)(nil), "veranablockchain.credentialschema.QueryListCredentialSchemasRequest")
proto.RegisterType((*QueryListCredentialSchemasResponse)(nil), "veranablockchain.credentialschema.QueryListCredentialSchemasResponse")
proto.RegisterType((*QueryGetCredentialSchemaRequest)(nil), "veranablockchain.credentialschema.QueryGetCredentialSchemaRequest")
proto.RegisterType((*QueryGetCredentialSchemaResponse)(nil), "veranablockchain.credentialschema.QueryGetCredentialSchemaResponse")
proto.RegisterType((*QueryRenderJsonSchemaRequest)(nil), "veranablockchain.credentialschema.QueryRenderJsonSchemaRequest")
proto.RegisterType((*QueryRenderJsonSchemaResponse)(nil), "veranablockchain.credentialschema.QueryRenderJsonSchemaResponse")
}
func init() {
proto.RegisterFile("veranablockchain/credentialschema/query.proto", fileDescriptor_abc2dfc1bf61ae30)
}
var fileDescriptor_abc2dfc1bf61ae30 = []byte{
// 677 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x41, 0x4f, 0x13, 0x41,
0x14, 0xc7, 0x3b, 0x05, 0xaa, 0x0c, 0x01, 0xec, 0x14, 0x14, 0x57, 0x6c, 0x61, 0x4f, 0x48, 0xc2,
0x4e, 0x0a, 0x51, 0x8f, 0x4a, 0xd1, 0x18, 0x15, 0x13, 0x59, 0x3c, 0xe9, 0xa1, 0x99, 0xdd, 0x1d,
0x96, 0xd1, 0xee, 0xce, 0xb2, 0x33, 0x6d, 0x00, 0xe3, 0xc5, 0x4f, 0x40, 0xf4, 0x4b, 0x78, 0x94,
0xb3, 0xf1, 0xce, 0xc9, 0x90, 0x78, 0xf1, 0x84, 0x06, 0x4c, 0xfc, 0x1a, 0xa6, 0xb3, 0xb3, 0xa4,
0x14, 0x0a, 0xd5, 0x5e, 0x9a, 0xe9, 0xee, 0x7b, 0xff, 0xff, 0xef, 0xff, 0xfa, 0xb6, 0x0b, 0xe7,
0x1a, 0x34, 0x26, 0x21, 0x71, 0x6a, 0xdc, 0x7d, 0xe3, 0xae, 0x13, 0x16, 0x62, 0x37, 0xa6, 0x1e,
0x0d, 0x25, 0x23, 0x35, 0xe1, 0xae, 0xd3, 0x80, 0xe0, 0x8d, 0x3a, 0x8d, 0xb7, 0xac, 0x28, 0xe6,
0x92, 0xa3, 0xe9, 0xf6, 0x72, 0xab, 0xbd, 0xdc, 0xc8, 0x93, 0x80, 0x85, 0x1c, 0xab, 0xcf, 0xa4,
0xcb, 0x18, 0xf3, 0xb9, 0xcf, 0xd5, 0x11, 0x37, 0x4f, 0xfa, 0xea, 0xa4, 0xcf, 0xb9, 0x5f, 0xa3,
0x98, 0x44, 0x0c, 0x93, 0x30, 0xe4, 0x92, 0x48, 0xc6, 0x43, 0xa1, 0xef, 0xce, 0xba, 0x5c, 0x04,
0x5c, 0x60, 0x87, 0x08, 0x9a, 0x20, 0xe0, 0x46, 0xd9, 0xa1, 0x92, 0x94, 0x71, 0x44, 0x7c, 0x16,
0xaa, 0x62, 0x5d, 0x6b, 0x5d, 0x1c, 0x22, 0x22, 0x31, 0x09, 0x52, 0xed, 0x2e, 0x42, 0xcb, 0xad,
0x88, 0xa6, 0xe5, 0x25, 0x0d, 0xaa, 0xbe, 0x39, 0xf5, 0x35, 0x2c, 0x59, 0x40, 0x85, 0x24, 0x41,
0x94, 0x14, 0x98, 0x63, 0x10, 0xad, 0x34, 0x09, 0x9f, 0x2b, 0x13, 0x9b, 0x6e, 0xd4, 0xa9, 0x90,
0xa6, 0x0b, 0x0b, 0x27, 0xae, 0x8a, 0x88, 0x87, 0x82, 0xa2, 0x65, 0x98, 0x4b, 0x60, 0x26, 0xc0,
0x14, 0x98, 0x19, 0x9a, 0xbf, 0x65, 0x5d, 0x38, 0x53, 0x2b, 0x91, 0xa8, 0x0c, 0xee, 0x1d, 0x94,
0x32, 0x9f, 0xfe, 0x7c, 0x9e, 0x05, 0xb6, 0xd6, 0x30, 0x77, 0x01, 0x9c, 0x56, 0x2e, 0xcb, 0x4c,
0xc8, 0xa5, 0xe3, 0xbe, 0x55, 0xd5, 0x97, 0xa2, 0xa0, 0x02, 0x1c, 0x90, 0x71, 0x95, 0x79, 0xca,
0xb2, 0xdf, 0xee, 0x97, 0xf1, 0x63, 0x0f, 0x3d, 0x85, 0x23, 0x01, 0xf7, 0xd8, 0x1a, 0xa3, 0x5e,
0x95, 0xac, 0x49, 0x1a, 0x4f, 0x64, 0x15, 0x90, 0x61, 0x25, 0x79, 0xad, 0x34, 0xaf, 0xf5, 0x22,
0xcd, 0x5b, 0xb9, 0xbc, 0x77, 0x50, 0x02, 0x3b, 0x3f, 0x4b, 0xc0, 0x1e, 0x4e, 0x7b, 0x17, 0x9b,
0xad, 0x68, 0x16, 0xe6, 0x63, 0x9d, 0xb0, 0x1a, 0x90, 0xcd, 0xaa, 0x60, 0xdb, 0x74, 0xa2, 0x6f,
0x0a, 0xcc, 0x0c, 0xdb, 0xa3, 0xe9, 0x8d, 0x67, 0x64, 0x73, 0x95, 0x6d, 0x53, 0x73, 0x0b, 0x9a,
0xe7, 0x21, 0xeb, 0x39, 0xad, 0xc2, 0x4b, 0x49, 0xfa, 0xe6, 0xa0, 0xfa, 0x66, 0x86, 0xe6, 0x17,
0xba, 0x18, 0x54, 0xbb, 0x5c, 0xa5, 0xbf, 0x39, 0x32, 0x3b, 0x55, 0x32, 0xcb, 0xb0, 0xa4, 0xac,
0x1f, 0xd1, 0x53, 0xce, 0xe9, 0xac, 0x46, 0x60, 0xf6, 0x78, 0x50, 0x59, 0xe6, 0x99, 0x75, 0x38,
0xd5, 0xb9, 0x45, 0xb3, 0xae, 0xc0, 0x5c, 0xe2, 0xa0, 0x7f, 0xd3, 0x1e, 0x50, 0xb5, 0x90, 0x69,
0xc1, 0x49, 0x65, 0x6b, 0xd3, 0xd0, 0xa3, 0xf1, 0x13, 0xc1, 0xc3, 0xf3, 0x31, 0xef, 0xc2, 0x9b,
0x1d, 0xea, 0x35, 0xe3, 0xd5, 0x13, 0x8c, 0x83, 0xa9, 0xd1, 0xfc, 0xb7, 0x01, 0x38, 0xa0, 0x3a,
0xd1, 0x07, 0x00, 0x73, 0xc9, 0xa6, 0xa1, 0xdb, 0x5d, 0x04, 0x38, 0xbd, 0xf2, 0xc6, 0x9d, 0x7f,
0x6d, 0x4b, 0xd8, 0xcc, 0xeb, 0xef, 0xbf, 0xff, 0xfe, 0x98, 0x2d, 0xa0, 0x3c, 0x6e, 0x44, 0x31,
0x6e, 0x94, 0xb1, 0x2b, 0xf4, 0x13, 0x8b, 0xbe, 0x02, 0x38, 0x7e, 0xe6, 0xa2, 0xa0, 0x07, 0xdd,
0x9a, 0x9d, 0xf7, 0x68, 0x18, 0x0f, 0x7b, 0x54, 0xd1, 0x09, 0xae, 0xa9, 0x04, 0x79, 0x34, 0xda,
0x92, 0xa0, 0xc6, 0x84, 0x44, 0x5f, 0x00, 0x2c, 0x9c, 0xb1, 0x3a, 0xa8, 0xd2, 0xad, 0x6f, 0xe7,
0x55, 0x35, 0x96, 0x7a, 0xd2, 0xd0, 0xe4, 0x37, 0x14, 0xf9, 0x38, 0x2a, 0xb4, 0x90, 0xfb, 0x54,
0xe2, 0xb7, 0xcc, 0x7b, 0x87, 0x76, 0x01, 0xbc, 0xd2, 0xbe, 0x51, 0xe8, 0x5e, 0xb7, 0xb6, 0x1d,
0x76, 0xd7, 0xb8, 0xff, 0xff, 0x02, 0x1a, 0xda, 0x50, 0xd0, 0x63, 0x08, 0xb5, 0x40, 0xbf, 0x16,
0x8a, 0xb9, 0xf2, 0x6a, 0xef, 0xb0, 0x08, 0xf6, 0x0f, 0x8b, 0xe0, 0xd7, 0x61, 0x11, 0xec, 0x1c,
0x15, 0x33, 0xfb, 0x47, 0xc5, 0xcc, 0x8f, 0xa3, 0x62, 0xe6, 0xe5, 0xa2, 0xcf, 0xe4, 0x7a, 0xdd,
0xb1, 0x5c, 0x1e, 0xe0, 0x84, 0x60, 0xae, 0x46, 0x1c, 0x91, 0x9e, 0x5b, 0xde, 0x07, 0x9b, 0x1d,
0xde, 0x08, 0x4e, 0x4e, 0xfd, 0x29, 0x2e, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x09, 0x0e, 0x5c,
0xa3, 0x38, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ListCredentialSchemas queries a list of CredentialSchema items.
ListCredentialSchemas(ctx context.Context, in *QueryListCredentialSchemasRequest, opts ...grpc.CallOption) (*QueryListCredentialSchemasResponse, error)
// GetCredentialSchema returns a credential schema by ID
GetCredentialSchema(ctx context.Context, in *QueryGetCredentialSchemaRequest, opts ...grpc.CallOption) (*QueryGetCredentialSchemaResponse, error)
// RenderJsonSchema returns the JSON schema definition
RenderJsonSchema(ctx context.Context, in *QueryRenderJsonSchemaRequest, opts ...grpc.CallOption) (*QueryRenderJsonSchemaResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListCredentialSchemas(ctx context.Context, in *QueryListCredentialSchemasRequest, opts ...grpc.CallOption) (*QueryListCredentialSchemasResponse, error) {
out := new(QueryListCredentialSchemasResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Query/ListCredentialSchemas", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetCredentialSchema(ctx context.Context, in *QueryGetCredentialSchemaRequest, opts ...grpc.CallOption) (*QueryGetCredentialSchemaResponse, error) {
out := new(QueryGetCredentialSchemaResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Query/GetCredentialSchema", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) RenderJsonSchema(ctx context.Context, in *QueryRenderJsonSchemaRequest, opts ...grpc.CallOption) (*QueryRenderJsonSchemaResponse, error) {
out := new(QueryRenderJsonSchemaResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Query/RenderJsonSchema", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ListCredentialSchemas queries a list of CredentialSchema items.
ListCredentialSchemas(context.Context, *QueryListCredentialSchemasRequest) (*QueryListCredentialSchemasResponse, error)
// GetCredentialSchema returns a credential schema by ID
GetCredentialSchema(context.Context, *QueryGetCredentialSchemaRequest) (*QueryGetCredentialSchemaResponse, error)
// RenderJsonSchema returns the JSON schema definition
RenderJsonSchema(context.Context, *QueryRenderJsonSchemaRequest) (*QueryRenderJsonSchemaResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (*UnimplementedQueryServer) ListCredentialSchemas(ctx context.Context, req *QueryListCredentialSchemasRequest) (*QueryListCredentialSchemasResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCredentialSchemas not implemented")
}
func (*UnimplementedQueryServer) GetCredentialSchema(ctx context.Context, req *QueryGetCredentialSchemaRequest) (*QueryGetCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCredentialSchema not implemented")
}
func (*UnimplementedQueryServer) RenderJsonSchema(ctx context.Context, req *QueryRenderJsonSchemaRequest) (*QueryRenderJsonSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenderJsonSchema not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListCredentialSchemas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListCredentialSchemasRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListCredentialSchemas(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Query/ListCredentialSchemas",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListCredentialSchemas(ctx, req.(*QueryListCredentialSchemasRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetCredentialSchemaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Query/GetCredentialSchema",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetCredentialSchema(ctx, req.(*QueryGetCredentialSchemaRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_RenderJsonSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRenderJsonSchemaRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).RenderJsonSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Query/RenderJsonSchema",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).RenderJsonSchema(ctx, req.(*QueryRenderJsonSchemaRequest))
}
return interceptor(ctx, in, info, handler)
}
var Query_serviceDesc = _Query_serviceDesc
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.credentialschema.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListCredentialSchemas",
Handler: _Query_ListCredentialSchemas_Handler,
},
{
MethodName: "GetCredentialSchema",
Handler: _Query_GetCredentialSchema_Handler,
},
{
MethodName: "RenderJsonSchema",
Handler: _Query_RenderJsonSchema_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/credentialschema/query.proto",
}
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryListCredentialSchemasRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListCredentialSchemasRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListCredentialSchemasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ResponseMaxSize != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.ResponseMaxSize))
i--
dAtA[i] = 0x18
}
if m.ModifiedAfter != nil {
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ModifiedAfter, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintQuery(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x12
}
if m.TrId != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.TrId))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryListCredentialSchemasResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListCredentialSchemasResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListCredentialSchemasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Schemas) > 0 {
for iNdEx := len(m.Schemas) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Schemas[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *QueryGetCredentialSchemaRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetCredentialSchemaRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetCredentialSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryGetCredentialSchemaResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetCredentialSchemaResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetCredentialSchemaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Schema.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryRenderJsonSchemaRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryRenderJsonSchemaRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryRenderJsonSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryRenderJsonSchemaResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryRenderJsonSchemaResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryRenderJsonSchemaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Schema) > 0 {
i -= len(m.Schema)
copy(dAtA[i:], m.Schema)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Schema)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *QueryParamsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryListCredentialSchemasRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.TrId != 0 {
n += 1 + sovQuery(uint64(m.TrId))
}
if m.ModifiedAfter != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter)
n += 1 + l + sovQuery(uint64(l))
}
if m.ResponseMaxSize != 0 {
n += 1 + sovQuery(uint64(m.ResponseMaxSize))
}
return n
}
func (m *QueryListCredentialSchemasResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Schemas) > 0 {
for _, e := range m.Schemas {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func (m *QueryGetCredentialSchemaRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovQuery(uint64(m.Id))
}
return n
}
func (m *QueryGetCredentialSchemaResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Schema.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryRenderJsonSchemaRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovQuery(uint64(m.Id))
}
return n
}
func (m *QueryRenderJsonSchemaResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Schema)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func sovQuery(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQuery(x uint64) (n int) {
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListCredentialSchemasRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListCredentialSchemasRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListCredentialSchemasRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
m.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ModifiedAfter == nil {
m.ModifiedAfter = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ModifiedAfter, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
m.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListCredentialSchemasResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListCredentialSchemasResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListCredentialSchemasResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Schemas", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Schemas = append(m.Schemas, CredentialSchema{})
if err := m.Schemas[len(m.Schemas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetCredentialSchemaRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetCredentialSchemaRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetCredentialSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetCredentialSchemaResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Schema.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryRenderJsonSchemaRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryRenderJsonSchemaRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRenderJsonSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryRenderJsonSchemaResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryRenderJsonSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryRenderJsonSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Schema = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQuery(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthQuery
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupQuery
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthQuery
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: veranablockchain/credentialschema/query.proto
/*
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package types
import (
"context"
"io"
"net/http"
"github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/proto"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/utilities"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = descriptor.ForMessage
var _ = metadata.Join
func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := server.Params(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_ListCredentialSchemas_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_ListCredentialSchemas_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListCredentialSchemasRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListCredentialSchemas_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.ListCredentialSchemas(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_ListCredentialSchemas_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListCredentialSchemasRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListCredentialSchemas_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.ListCredentialSchemas(ctx, &protoReq)
return msg, metadata, err
}
func request_Query_GetCredentialSchema_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetCredentialSchemaRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := client.GetCredentialSchema(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetCredentialSchema_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetCredentialSchemaRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := server.GetCredentialSchema(ctx, &protoReq)
return msg, metadata, err
}
func request_Query_RenderJsonSchema_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRenderJsonSchemaRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := client.RenderJsonSchema(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_RenderJsonSchema_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryRenderJsonSchemaRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := server.RenderJsonSchema(ctx, &protoReq)
return msg, metadata, err
}
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
// UnaryRPC :call QueryServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListCredentialSchemas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_ListCredentialSchemas_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListCredentialSchemas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetCredentialSchema_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetCredentialSchema_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetCredentialSchema_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_RenderJsonSchema_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_RenderJsonSchema_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_RenderJsonSchema_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
conn, err := grpc.Dial(endpoint, opts...)
if err != nil {
return err
}
defer func() {
if err != nil {
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
}()
}()
return RegisterQueryHandler(ctx, mux, conn)
}
// RegisterQueryHandler registers the http handlers for service Query to "mux".
// The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn))
}
// RegisterQueryHandlerClient registers the http handlers for service Query
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient".
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient"
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListCredentialSchemas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_ListCredentialSchemas_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListCredentialSchemas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetCredentialSchema_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetCredentialSchema_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetCredentialSchema_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_RenderJsonSchema_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_RenderJsonSchema_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_RenderJsonSchema_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
var (
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vpr", "v1", "cs", "params"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_ListCredentialSchemas_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"vpr", "v1", "cs", "list"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetCredentialSchema_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vpr", "v1", "cs", "get", "id"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_RenderJsonSchema_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"vpr", "v1", "cs", "js", "id"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
forward_Query_Params_0 = runtime.ForwardResponseMessage
forward_Query_ListCredentialSchemas_0 = runtime.ForwardResponseMessage
forward_Query_GetCredentialSchema_0 = runtime.ForwardResponseMessage
forward_Query_RenderJsonSchema_0 = runtime.ForwardResponseMessage
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/credentialschema/tx.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParams) ProtoMessage() {}
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{0}
}
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParams.Merge(m, src)
}
func (m *MsgUpdateParams) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
func (m *MsgUpdateParams) GetAuthority() string {
if m != nil {
return m.Authority
}
return ""
}
func (m *MsgUpdateParams) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
}
func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParamsResponse) ProtoMessage() {}
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{1}
}
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
}
func (m *MsgUpdateParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
type MsgCreateCredentialSchema struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
JsonSchema string `protobuf:"bytes,3,opt,name=json_schema,json=jsonSchema,proto3" json:"json_schema,omitempty"`
IssuerGrantorValidationValidityPeriod uint32 `protobuf:"varint,4,opt,name=issuer_grantor_validation_validity_period,json=issuerGrantorValidationValidityPeriod,proto3" json:"issuer_grantor_validation_validity_period,omitempty"`
VerifierGrantorValidationValidityPeriod uint32 `protobuf:"varint,5,opt,name=verifier_grantor_validation_validity_period,json=verifierGrantorValidationValidityPeriod,proto3" json:"verifier_grantor_validation_validity_period,omitempty"`
IssuerValidationValidityPeriod uint32 `protobuf:"varint,6,opt,name=issuer_validation_validity_period,json=issuerValidationValidityPeriod,proto3" json:"issuer_validation_validity_period,omitempty"`
VerifierValidationValidityPeriod uint32 `protobuf:"varint,7,opt,name=verifier_validation_validity_period,json=verifierValidationValidityPeriod,proto3" json:"verifier_validation_validity_period,omitempty"`
HolderValidationValidityPeriod uint32 `protobuf:"varint,8,opt,name=holder_validation_validity_period,json=holderValidationValidityPeriod,proto3" json:"holder_validation_validity_period,omitempty"`
IssuerPermManagementMode uint32 `protobuf:"varint,9,opt,name=issuer_perm_management_mode,json=issuerPermManagementMode,proto3" json:"issuer_perm_management_mode,omitempty"`
VerifierPermManagementMode uint32 `protobuf:"varint,10,opt,name=verifier_perm_management_mode,json=verifierPermManagementMode,proto3" json:"verifier_perm_management_mode,omitempty"`
}
func (m *MsgCreateCredentialSchema) Reset() { *m = MsgCreateCredentialSchema{} }
func (m *MsgCreateCredentialSchema) String() string { return proto.CompactTextString(m) }
func (*MsgCreateCredentialSchema) ProtoMessage() {}
func (*MsgCreateCredentialSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{2}
}
func (m *MsgCreateCredentialSchema) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateCredentialSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateCredentialSchema.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateCredentialSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateCredentialSchema.Merge(m, src)
}
func (m *MsgCreateCredentialSchema) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateCredentialSchema) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateCredentialSchema.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateCredentialSchema proto.InternalMessageInfo
func (m *MsgCreateCredentialSchema) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgCreateCredentialSchema) GetTrId() uint64 {
if m != nil {
return m.TrId
}
return 0
}
func (m *MsgCreateCredentialSchema) GetJsonSchema() string {
if m != nil {
return m.JsonSchema
}
return ""
}
func (m *MsgCreateCredentialSchema) GetIssuerGrantorValidationValidityPeriod() uint32 {
if m != nil {
return m.IssuerGrantorValidationValidityPeriod
}
return 0
}
func (m *MsgCreateCredentialSchema) GetVerifierGrantorValidationValidityPeriod() uint32 {
if m != nil {
return m.VerifierGrantorValidationValidityPeriod
}
return 0
}
func (m *MsgCreateCredentialSchema) GetIssuerValidationValidityPeriod() uint32 {
if m != nil {
return m.IssuerValidationValidityPeriod
}
return 0
}
func (m *MsgCreateCredentialSchema) GetVerifierValidationValidityPeriod() uint32 {
if m != nil {
return m.VerifierValidationValidityPeriod
}
return 0
}
func (m *MsgCreateCredentialSchema) GetHolderValidationValidityPeriod() uint32 {
if m != nil {
return m.HolderValidationValidityPeriod
}
return 0
}
func (m *MsgCreateCredentialSchema) GetIssuerPermManagementMode() uint32 {
if m != nil {
return m.IssuerPermManagementMode
}
return 0
}
func (m *MsgCreateCredentialSchema) GetVerifierPermManagementMode() uint32 {
if m != nil {
return m.VerifierPermManagementMode
}
return 0
}
type MsgCreateCredentialSchemaResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgCreateCredentialSchemaResponse) Reset() { *m = MsgCreateCredentialSchemaResponse{} }
func (m *MsgCreateCredentialSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateCredentialSchemaResponse) ProtoMessage() {}
func (*MsgCreateCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{3}
}
func (m *MsgCreateCredentialSchemaResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateCredentialSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateCredentialSchemaResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateCredentialSchemaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateCredentialSchemaResponse.Merge(m, src)
}
func (m *MsgCreateCredentialSchemaResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateCredentialSchemaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateCredentialSchemaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateCredentialSchemaResponse proto.InternalMessageInfo
func (m *MsgCreateCredentialSchemaResponse) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type MsgUpdateCredentialSchema struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
IssuerGrantorValidationValidityPeriod uint32 `protobuf:"varint,3,opt,name=issuer_grantor_validation_validity_period,json=issuerGrantorValidationValidityPeriod,proto3" json:"issuer_grantor_validation_validity_period,omitempty"`
VerifierGrantorValidationValidityPeriod uint32 `protobuf:"varint,4,opt,name=verifier_grantor_validation_validity_period,json=verifierGrantorValidationValidityPeriod,proto3" json:"verifier_grantor_validation_validity_period,omitempty"`
IssuerValidationValidityPeriod uint32 `protobuf:"varint,5,opt,name=issuer_validation_validity_period,json=issuerValidationValidityPeriod,proto3" json:"issuer_validation_validity_period,omitempty"`
VerifierValidationValidityPeriod uint32 `protobuf:"varint,6,opt,name=verifier_validation_validity_period,json=verifierValidationValidityPeriod,proto3" json:"verifier_validation_validity_period,omitempty"`
HolderValidationValidityPeriod uint32 `protobuf:"varint,7,opt,name=holder_validation_validity_period,json=holderValidationValidityPeriod,proto3" json:"holder_validation_validity_period,omitempty"`
}
func (m *MsgUpdateCredentialSchema) Reset() { *m = MsgUpdateCredentialSchema{} }
func (m *MsgUpdateCredentialSchema) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateCredentialSchema) ProtoMessage() {}
func (*MsgUpdateCredentialSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{4}
}
func (m *MsgUpdateCredentialSchema) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateCredentialSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateCredentialSchema.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateCredentialSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateCredentialSchema.Merge(m, src)
}
func (m *MsgUpdateCredentialSchema) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateCredentialSchema) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateCredentialSchema.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateCredentialSchema proto.InternalMessageInfo
func (m *MsgUpdateCredentialSchema) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgUpdateCredentialSchema) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgUpdateCredentialSchema) GetIssuerGrantorValidationValidityPeriod() uint32 {
if m != nil {
return m.IssuerGrantorValidationValidityPeriod
}
return 0
}
func (m *MsgUpdateCredentialSchema) GetVerifierGrantorValidationValidityPeriod() uint32 {
if m != nil {
return m.VerifierGrantorValidationValidityPeriod
}
return 0
}
func (m *MsgUpdateCredentialSchema) GetIssuerValidationValidityPeriod() uint32 {
if m != nil {
return m.IssuerValidationValidityPeriod
}
return 0
}
func (m *MsgUpdateCredentialSchema) GetVerifierValidationValidityPeriod() uint32 {
if m != nil {
return m.VerifierValidationValidityPeriod
}
return 0
}
func (m *MsgUpdateCredentialSchema) GetHolderValidationValidityPeriod() uint32 {
if m != nil {
return m.HolderValidationValidityPeriod
}
return 0
}
type MsgUpdateCredentialSchemaResponse struct {
}
func (m *MsgUpdateCredentialSchemaResponse) Reset() { *m = MsgUpdateCredentialSchemaResponse{} }
func (m *MsgUpdateCredentialSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateCredentialSchemaResponse) ProtoMessage() {}
func (*MsgUpdateCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{5}
}
func (m *MsgUpdateCredentialSchemaResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateCredentialSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateCredentialSchemaResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateCredentialSchemaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateCredentialSchemaResponse.Merge(m, src)
}
func (m *MsgUpdateCredentialSchemaResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateCredentialSchemaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateCredentialSchemaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateCredentialSchemaResponse proto.InternalMessageInfo
type MsgArchiveCredentialSchema struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Archive bool `protobuf:"varint,3,opt,name=archive,proto3" json:"archive,omitempty"`
}
func (m *MsgArchiveCredentialSchema) Reset() { *m = MsgArchiveCredentialSchema{} }
func (m *MsgArchiveCredentialSchema) String() string { return proto.CompactTextString(m) }
func (*MsgArchiveCredentialSchema) ProtoMessage() {}
func (*MsgArchiveCredentialSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{6}
}
func (m *MsgArchiveCredentialSchema) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgArchiveCredentialSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgArchiveCredentialSchema.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgArchiveCredentialSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgArchiveCredentialSchema.Merge(m, src)
}
func (m *MsgArchiveCredentialSchema) XXX_Size() int {
return m.Size()
}
func (m *MsgArchiveCredentialSchema) XXX_DiscardUnknown() {
xxx_messageInfo_MsgArchiveCredentialSchema.DiscardUnknown(m)
}
var xxx_messageInfo_MsgArchiveCredentialSchema proto.InternalMessageInfo
func (m *MsgArchiveCredentialSchema) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgArchiveCredentialSchema) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgArchiveCredentialSchema) GetArchive() bool {
if m != nil {
return m.Archive
}
return false
}
type MsgArchiveCredentialSchemaResponse struct {
}
func (m *MsgArchiveCredentialSchemaResponse) Reset() { *m = MsgArchiveCredentialSchemaResponse{} }
func (m *MsgArchiveCredentialSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*MsgArchiveCredentialSchemaResponse) ProtoMessage() {}
func (*MsgArchiveCredentialSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_6387a03fec1778ea, []int{7}
}
func (m *MsgArchiveCredentialSchemaResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgArchiveCredentialSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgArchiveCredentialSchemaResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgArchiveCredentialSchemaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgArchiveCredentialSchemaResponse.Merge(m, src)
}
func (m *MsgArchiveCredentialSchemaResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgArchiveCredentialSchemaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgArchiveCredentialSchemaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgArchiveCredentialSchemaResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgUpdateParams)(nil), "veranablockchain.credentialschema.MsgUpdateParams")
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "veranablockchain.credentialschema.MsgUpdateParamsResponse")
proto.RegisterType((*MsgCreateCredentialSchema)(nil), "veranablockchain.credentialschema.MsgCreateCredentialSchema")
proto.RegisterType((*MsgCreateCredentialSchemaResponse)(nil), "veranablockchain.credentialschema.MsgCreateCredentialSchemaResponse")
proto.RegisterType((*MsgUpdateCredentialSchema)(nil), "veranablockchain.credentialschema.MsgUpdateCredentialSchema")
proto.RegisterType((*MsgUpdateCredentialSchemaResponse)(nil), "veranablockchain.credentialschema.MsgUpdateCredentialSchemaResponse")
proto.RegisterType((*MsgArchiveCredentialSchema)(nil), "veranablockchain.credentialschema.MsgArchiveCredentialSchema")
proto.RegisterType((*MsgArchiveCredentialSchemaResponse)(nil), "veranablockchain.credentialschema.MsgArchiveCredentialSchemaResponse")
}
func init() {
proto.RegisterFile("veranablockchain/credentialschema/tx.proto", fileDescriptor_6387a03fec1778ea)
}
var fileDescriptor_6387a03fec1778ea = []byte{
// 776 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x96, 0x4d, 0x4f, 0xdb, 0x48,
0x1c, 0xc6, 0xe3, 0x90, 0x17, 0x32, 0xb0, 0xbb, 0x5a, 0x2f, 0x5a, 0x8c, 0xab, 0x86, 0x10, 0x5a,
0x15, 0x52, 0x91, 0xa8, 0x41, 0xea, 0x01, 0xc1, 0x21, 0xd0, 0x17, 0x21, 0x35, 0x12, 0x32, 0x2a,
0xaa, 0xda, 0x4a, 0xd6, 0xc4, 0x9e, 0x3a, 0xd3, 0xc6, 0x9e, 0x68, 0x66, 0x88, 0xe0, 0x52, 0x55,
0x3d, 0x55, 0x9c, 0xfa, 0x01, 0x2a, 0xf5, 0xda, 0x23, 0xaa, 0xfa, 0x21, 0x38, 0xa2, 0x9e, 0x7a,
0x6a, 0x2b, 0x38, 0x70, 0xe9, 0x87, 0xa8, 0x32, 0x63, 0x1b, 0x61, 0x70, 0x12, 0x0a, 0x5c, 0x12,
0x7b, 0xe6, 0xf9, 0xff, 0xe6, 0xf9, 0x5b, 0x8f, 0x3d, 0x03, 0x4a, 0x1d, 0x44, 0xa1, 0x07, 0x1b,
0x2d, 0x62, 0xbd, 0xb2, 0x9a, 0x10, 0x7b, 0x15, 0x8b, 0x22, 0x1b, 0x79, 0x1c, 0xc3, 0x16, 0xb3,
0x9a, 0xc8, 0x85, 0x15, 0xbe, 0x55, 0x6e, 0x53, 0xc2, 0x89, 0x3a, 0x15, 0xd5, 0x96, 0xa3, 0x5a,
0xfd, 0x5f, 0xe8, 0x62, 0x8f, 0x54, 0xc4, 0xaf, 0xac, 0xd2, 0xc7, 0x2d, 0xc2, 0x5c, 0xc2, 0x2a,
0x2e, 0x73, 0x2a, 0x9d, 0x3b, 0xdd, 0x3f, 0x7f, 0x62, 0x42, 0x4e, 0x98, 0xe2, 0xae, 0x22, 0x6f,
0xfc, 0xa9, 0x31, 0x87, 0x38, 0x44, 0x8e, 0x77, 0xaf, 0xfc, 0xd1, 0x72, 0x7f, 0xaf, 0x6d, 0x48,
0xa1, 0x1b, 0x50, 0xe6, 0x06, 0xe8, 0x6d, 0xbb, 0x8d, 0x7c, 0x79, 0xf1, 0x87, 0x02, 0xfe, 0xa9,
0x33, 0xe7, 0x71, 0xdb, 0x86, 0x1c, 0xad, 0x09, 0x90, 0x7a, 0x17, 0xe4, 0xe0, 0x26, 0x6f, 0x12,
0x8a, 0xf9, 0xb6, 0xa6, 0x14, 0x94, 0x99, 0xdc, 0xb2, 0xf6, 0xf5, 0xcb, 0xdc, 0x98, 0xef, 0xb6,
0x66, 0xdb, 0x14, 0x31, 0xb6, 0xce, 0x29, 0xf6, 0x1c, 0xe3, 0x58, 0xaa, 0x3e, 0x02, 0x19, 0x69,
0x45, 0x4b, 0x16, 0x94, 0x99, 0x91, 0xea, 0x6c, 0xb9, 0xef, 0xb3, 0x2b, 0xcb, 0x25, 0x97, 0x73,
0x7b, 0xdf, 0x27, 0x13, 0x9f, 0x8e, 0x76, 0x4b, 0x8a, 0xe1, 0x33, 0x16, 0x1e, 0xbc, 0x3d, 0xda,
0x2d, 0x1d, 0xd3, 0x77, 0x8e, 0x76, 0x4b, 0xf3, 0xa7, 0x7a, 0xdb, 0x3a, 0xdd, 0x5d, 0xa4, 0x9b,
0xe2, 0x04, 0x18, 0x8f, 0x0c, 0x19, 0x88, 0xb5, 0x89, 0xc7, 0x50, 0xf1, 0x73, 0x1a, 0x4c, 0xd4,
0x99, 0xb3, 0x42, 0x11, 0xe4, 0x68, 0x25, 0x04, 0xad, 0x0b, 0x90, 0x5a, 0x05, 0x59, 0xab, 0x3b,
0x43, 0x68, 0xdf, 0x87, 0x10, 0x08, 0xd5, 0xff, 0x40, 0x9a, 0x53, 0x13, 0xdb, 0xe2, 0x09, 0xa4,
0x8c, 0x14, 0xa7, 0xab, 0xb6, 0x3a, 0x09, 0x46, 0x5e, 0x32, 0xe2, 0x99, 0xd2, 0xa0, 0x36, 0xd4,
0x85, 0x19, 0xa0, 0x3b, 0xe4, 0xaf, 0xf4, 0x04, 0xcc, 0x62, 0xc6, 0x36, 0x11, 0x35, 0x1d, 0x0a,
0x3d, 0x4e, 0xa8, 0xd9, 0x81, 0x2d, 0x6c, 0x43, 0x8e, 0x89, 0x27, 0x2f, 0x31, 0xdf, 0x36, 0xdb,
0x88, 0x62, 0x62, 0x6b, 0xa9, 0x82, 0x32, 0xf3, 0x97, 0x71, 0x53, 0x16, 0x3c, 0x94, 0xfa, 0x8d,
0x50, 0xbe, 0xe1, 0xab, 0xd7, 0x84, 0x58, 0x7d, 0x0e, 0x6e, 0x77, 0x10, 0xc5, 0x2f, 0xf0, 0x60,
0xec, 0xb4, 0x60, 0xdf, 0x0a, 0x4a, 0xfa, 0xd1, 0x57, 0xc1, 0x94, 0xef, 0xbb, 0x07, 0x33, 0x23,
0x98, 0x79, 0x29, 0x8c, 0x45, 0xd5, 0xc1, 0x74, 0x68, 0xb4, 0x07, 0x2c, 0x2b, 0x60, 0x85, 0x40,
0xda, 0xcb, 0x59, 0x93, 0xb4, 0xec, 0xde, 0xb0, 0x61, 0xe9, 0x4c, 0x0a, 0x63, 0x51, 0x4b, 0xe0,
0x9a, 0xdf, 0x64, 0x1b, 0x51, 0xd7, 0x74, 0xa1, 0x07, 0x1d, 0xe4, 0x22, 0x8f, 0x9b, 0x2e, 0xb1,
0x91, 0x96, 0x13, 0x10, 0x4d, 0x4a, 0xd6, 0x10, 0x75, 0xeb, 0xa1, 0xa0, 0x4e, 0x6c, 0xa4, 0xd6,
0xc0, 0xf5, 0xb0, 0xb1, 0x33, 0x01, 0x40, 0x00, 0xf4, 0x40, 0x74, 0x1a, 0xb1, 0x30, 0xda, 0x7d,
0x13, 0x82, 0x88, 0x15, 0xe7, 0xc1, 0x54, 0x6c, 0x66, 0x83, 0x64, 0xab, 0x7f, 0x83, 0x24, 0xb6,
0x45, 0x6c, 0x53, 0x46, 0x12, 0xdb, 0xc5, 0x9d, 0x94, 0x48, 0xba, 0x7c, 0x0b, 0x2e, 0x25, 0xe9,
0x72, 0x85, 0x64, 0xb0, 0xc2, 0xf9, 0x32, 0x3c, 0x74, 0x85, 0x19, 0x4e, 0x5d, 0x41, 0x86, 0xd3,
0x97, 0x99, 0xe1, 0xcc, 0x65, 0x66, 0x38, 0x3b, 0x48, 0x86, 0x23, 0x09, 0x9a, 0x16, 0x09, 0x3a,
0x3b, 0x0b, 0xe1, 0xb7, 0xf1, 0x9d, 0x02, 0xf4, 0x3a, 0x73, 0x6a, 0xd4, 0x6a, 0xe2, 0xce, 0xd5,
0x44, 0x46, 0x03, 0x59, 0x28, 0xf1, 0x22, 0x10, 0xc3, 0x46, 0x70, 0x1b, 0xf1, 0x7b, 0x03, 0x14,
0xe3, 0x9d, 0x04, 0x86, 0xab, 0xbf, 0x52, 0x60, 0xa8, 0xce, 0x1c, 0xf5, 0x35, 0x18, 0x3d, 0xb1,
0x9b, 0x55, 0x07, 0xd8, 0x85, 0x22, 0x1b, 0x84, 0xbe, 0x70, 0xfe, 0x9a, 0xf0, 0xd5, 0xfb, 0xa0,
0x80, 0xff, 0x63, 0x76, 0x94, 0xc5, 0xc1, 0xb0, 0x67, 0x57, 0xeb, 0xf7, 0x2e, 0x52, 0x7d, 0xc2,
0x5e, 0xcc, 0x67, 0x60, 0xf1, 0x3c, 0x5d, 0xff, 0xa9, 0xbd, 0xde, 0xb1, 0x53, 0x3f, 0x2a, 0x60,
0x3c, 0x2e, 0x73, 0x4b, 0x83, 0xad, 0x10, 0x53, 0xae, 0xdf, 0xbf, 0x50, 0x79, 0xe0, 0x50, 0x4f,
0xbf, 0xe9, 0x1e, 0x53, 0x96, 0x9f, 0xed, 0x1d, 0xe4, 0x95, 0xfd, 0x83, 0xbc, 0xf2, 0xf3, 0x20,
0xaf, 0xbc, 0x3f, 0xcc, 0x27, 0xf6, 0x0f, 0xf3, 0x89, 0x6f, 0x87, 0xf9, 0xc4, 0xd3, 0x9a, 0x83,
0x79, 0x73, 0xb3, 0x51, 0xb6, 0x88, 0x5b, 0x91, 0x2b, 0xce, 0xb5, 0x60, 0x83, 0x05, 0xd7, 0xbd,
0x4f, 0x2f, 0xe2, 0x6c, 0xd6, 0xc8, 0x88, 0xc3, 0xd9, 0xfc, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff,
0x83, 0x75, 0x30, 0x3b, 0xa9, 0x0a, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// CreateCredentialSchema defines a method for creating a new credential schema.
CreateCredentialSchema(ctx context.Context, in *MsgCreateCredentialSchema, opts ...grpc.CallOption) (*MsgCreateCredentialSchemaResponse, error)
// UpdateCredentialSchema defines a method for updating a credential schema.
UpdateCredentialSchema(ctx context.Context, in *MsgUpdateCredentialSchema, opts ...grpc.CallOption) (*MsgUpdateCredentialSchemaResponse, error)
// ArchiveCredentialSchema defines a method for archiving a credential schema.
ArchiveCredentialSchema(ctx context.Context, in *MsgArchiveCredentialSchema, opts ...grpc.CallOption) (*MsgArchiveCredentialSchemaResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Msg/UpdateParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateCredentialSchema(ctx context.Context, in *MsgCreateCredentialSchema, opts ...grpc.CallOption) (*MsgCreateCredentialSchemaResponse, error) {
out := new(MsgCreateCredentialSchemaResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Msg/CreateCredentialSchema", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) UpdateCredentialSchema(ctx context.Context, in *MsgUpdateCredentialSchema, opts ...grpc.CallOption) (*MsgUpdateCredentialSchemaResponse, error) {
out := new(MsgUpdateCredentialSchemaResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Msg/UpdateCredentialSchema", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ArchiveCredentialSchema(ctx context.Context, in *MsgArchiveCredentialSchema, opts ...grpc.CallOption) (*MsgArchiveCredentialSchemaResponse, error) {
out := new(MsgArchiveCredentialSchemaResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.credentialschema.Msg/ArchiveCredentialSchema", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// CreateCredentialSchema defines a method for creating a new credential schema.
CreateCredentialSchema(context.Context, *MsgCreateCredentialSchema) (*MsgCreateCredentialSchemaResponse, error)
// UpdateCredentialSchema defines a method for updating a credential schema.
UpdateCredentialSchema(context.Context, *MsgUpdateCredentialSchema) (*MsgUpdateCredentialSchemaResponse, error)
// ArchiveCredentialSchema defines a method for archiving a credential schema.
ArchiveCredentialSchema(context.Context, *MsgArchiveCredentialSchema) (*MsgArchiveCredentialSchemaResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (*UnimplementedMsgServer) CreateCredentialSchema(ctx context.Context, req *MsgCreateCredentialSchema) (*MsgCreateCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCredentialSchema not implemented")
}
func (*UnimplementedMsgServer) UpdateCredentialSchema(ctx context.Context, req *MsgUpdateCredentialSchema) (*MsgUpdateCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCredentialSchema not implemented")
}
func (*UnimplementedMsgServer) ArchiveCredentialSchema(ctx context.Context, req *MsgArchiveCredentialSchema) (*MsgArchiveCredentialSchemaResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArchiveCredentialSchema not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Msg/UpdateParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateCredentialSchema)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Msg/CreateCredentialSchema",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateCredentialSchema(ctx, req.(*MsgCreateCredentialSchema))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_UpdateCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateCredentialSchema)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Msg/UpdateCredentialSchema",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateCredentialSchema(ctx, req.(*MsgUpdateCredentialSchema))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ArchiveCredentialSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgArchiveCredentialSchema)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ArchiveCredentialSchema(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.credentialschema.Msg/ArchiveCredentialSchema",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ArchiveCredentialSchema(ctx, req.(*MsgArchiveCredentialSchema))
}
return interceptor(ctx, in, info, handler)
}
var Msg_serviceDesc = _Msg_serviceDesc
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.credentialschema.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "CreateCredentialSchema",
Handler: _Msg_CreateCredentialSchema_Handler,
},
{
MethodName: "UpdateCredentialSchema",
Handler: _Msg_UpdateCredentialSchema_Handler,
},
{
MethodName: "ArchiveCredentialSchema",
Handler: _Msg_ArchiveCredentialSchema_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/credentialschema/tx.proto",
}
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
if len(m.Authority) > 0 {
i -= len(m.Authority)
copy(dAtA[i:], m.Authority)
i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgCreateCredentialSchema) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateCredentialSchema) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateCredentialSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.VerifierPermManagementMode != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerifierPermManagementMode))
i--
dAtA[i] = 0x50
}
if m.IssuerPermManagementMode != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuerPermManagementMode))
i--
dAtA[i] = 0x48
}
if m.HolderValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.HolderValidationValidityPeriod))
i--
dAtA[i] = 0x40
}
if m.VerifierValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerifierValidationValidityPeriod))
i--
dAtA[i] = 0x38
}
if m.IssuerValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuerValidationValidityPeriod))
i--
dAtA[i] = 0x30
}
if m.VerifierGrantorValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerifierGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x28
}
if m.IssuerGrantorValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuerGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x20
}
if len(m.JsonSchema) > 0 {
i -= len(m.JsonSchema)
copy(dAtA[i:], m.JsonSchema)
i = encodeVarintTx(dAtA, i, uint64(len(m.JsonSchema)))
i--
dAtA[i] = 0x1a
}
if m.TrId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.TrId))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgCreateCredentialSchemaResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateCredentialSchemaResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateCredentialSchemaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateCredentialSchema) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateCredentialSchema) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateCredentialSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.HolderValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.HolderValidationValidityPeriod))
i--
dAtA[i] = 0x38
}
if m.VerifierValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerifierValidationValidityPeriod))
i--
dAtA[i] = 0x30
}
if m.IssuerValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuerValidationValidityPeriod))
i--
dAtA[i] = 0x28
}
if m.VerifierGrantorValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerifierGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x20
}
if m.IssuerGrantorValidationValidityPeriod != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuerGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x18
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateCredentialSchemaResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateCredentialSchemaResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateCredentialSchemaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgArchiveCredentialSchema) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgArchiveCredentialSchema) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgArchiveCredentialSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Archive {
i--
if m.Archive {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgArchiveCredentialSchemaResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgArchiveCredentialSchemaResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgArchiveCredentialSchemaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgUpdateParams) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Authority)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = m.Params.Size()
n += 1 + l + sovTx(uint64(l))
return n
}
func (m *MsgUpdateParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgCreateCredentialSchema) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.TrId != 0 {
n += 1 + sovTx(uint64(m.TrId))
}
l = len(m.JsonSchema)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.IssuerGrantorValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.IssuerGrantorValidationValidityPeriod))
}
if m.VerifierGrantorValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.VerifierGrantorValidationValidityPeriod))
}
if m.IssuerValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.IssuerValidationValidityPeriod))
}
if m.VerifierValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.VerifierValidationValidityPeriod))
}
if m.HolderValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.HolderValidationValidityPeriod))
}
if m.IssuerPermManagementMode != 0 {
n += 1 + sovTx(uint64(m.IssuerPermManagementMode))
}
if m.VerifierPermManagementMode != 0 {
n += 1 + sovTx(uint64(m.VerifierPermManagementMode))
}
return n
}
func (m *MsgCreateCredentialSchemaResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgUpdateCredentialSchema) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
if m.IssuerGrantorValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.IssuerGrantorValidationValidityPeriod))
}
if m.VerifierGrantorValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.VerifierGrantorValidationValidityPeriod))
}
if m.IssuerValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.IssuerValidationValidityPeriod))
}
if m.VerifierValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.VerifierValidationValidityPeriod))
}
if m.HolderValidationValidityPeriod != 0 {
n += 1 + sovTx(uint64(m.HolderValidationValidityPeriod))
}
return n
}
func (m *MsgUpdateCredentialSchemaResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgArchiveCredentialSchema) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
if m.Archive {
n += 2
}
return n
}
func (m *MsgArchiveCredentialSchemaResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateCredentialSchema) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateCredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateCredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
m.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field JsonSchema", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.JsonSchema = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerGrantorValidationValidityPeriod", wireType)
}
m.IssuerGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierGrantorValidationValidityPeriod", wireType)
}
m.VerifierGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerValidationValidityPeriod", wireType)
}
m.IssuerValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierValidationValidityPeriod", wireType)
}
m.VerifierValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field HolderValidationValidityPeriod", wireType)
}
m.HolderValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.HolderValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerPermManagementMode", wireType)
}
m.IssuerPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerPermManagementMode |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierPermManagementMode", wireType)
}
m.VerifierPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierPermManagementMode |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateCredentialSchemaResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateCredentialSchema) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateCredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateCredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerGrantorValidationValidityPeriod", wireType)
}
m.IssuerGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierGrantorValidationValidityPeriod", wireType)
}
m.VerifierGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerValidationValidityPeriod", wireType)
}
m.IssuerValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierValidationValidityPeriod", wireType)
}
m.VerifierValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field HolderValidationValidityPeriod", wireType)
}
m.HolderValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.HolderValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateCredentialSchemaResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgArchiveCredentialSchema) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgArchiveCredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgArchiveCredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Archive", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.Archive = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgArchiveCredentialSchemaResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgArchiveCredentialSchemaResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgArchiveCredentialSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
package types
import (
"encoding/json"
"fmt"
"regexp"
"cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/xeipuuv/gojsonschema"
)
// Official meta-schema for Draft 2020-12
const jsonSchemaMetaSchema = `{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/meta-schema/credential-schema",
"title": "Credential Schema Meta-Schema",
"type": "object",
"required": ["$id", "$schema", "type", "properties"],
"properties": {
"$id": {
"type": "string",
"format": "uri-reference",
"pattern": "^/vpr/v1/cs/js/\\d+$",
"description": "$id must be a URI matching the rendering URL format"
},
"$schema": {
"type": "string",
"enum": ["https://json-schema.org/draft/2020-12/schema"],
"description": "$schema must be the Draft 2020-12 URI"
},
"type": {
"type": "string",
"enum": ["object"],
"description": "The root type must be 'object'"
},
"properties": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["string", "number", "integer", "boolean", "object", "array"],
"description": "The type of each property"
},
"description": {
"type": "string"
},
"default": {
"type": ["string", "number", "integer", "boolean", "object", "array", "null"]
}
},
"required": ["type"]
}
},
"required": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of required properties"
},
"additionalProperties": {
"type": "boolean",
"default": true
},
"$defs": {
"type": "object",
"additionalProperties": {
"type": "object"
},
"description": "Optional definitions for reusable schema components"
}
},
"additionalProperties": false,
"examples": [
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "/vpr/v1/cs/js/1",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the entity"
}
},
"required": ["name"],
"additionalProperties": false
}
]
}
`
const TypeMsgCreateCredentialSchema = "create_credential_schema"
var _ sdk.Msg = &MsgCreateCredentialSchema{}
// NewMsgCreateCredentialSchema creates a new MsgCreateCredentialSchema instance
func NewMsgCreateCredentialSchema(
creator string,
trId uint64,
jsonSchema string,
issuerGrantorValidationValidityPeriod uint32,
verifierGrantorValidationValidityPeriod uint32,
issuerValidationValidityPeriod uint32,
verifierValidationValidityPeriod uint32,
holderValidationValidityPeriod uint32,
issuerPermManagementMode uint32,
verifierPermManagementMode uint32,
) *MsgCreateCredentialSchema {
return &MsgCreateCredentialSchema{
Creator: creator,
TrId: trId,
JsonSchema: jsonSchema,
IssuerGrantorValidationValidityPeriod: issuerGrantorValidationValidityPeriod,
VerifierGrantorValidationValidityPeriod: verifierGrantorValidationValidityPeriod,
IssuerValidationValidityPeriod: issuerValidationValidityPeriod,
VerifierValidationValidityPeriod: verifierValidationValidityPeriod,
HolderValidationValidityPeriod: holderValidationValidityPeriod,
IssuerPermManagementMode: issuerPermManagementMode,
VerifierPermManagementMode: verifierPermManagementMode,
}
}
// Route implements sdk.Msg
func (msg *MsgCreateCredentialSchema) Route() string {
return RouterKey
}
// Type implements sdk.Msg
func (msg *MsgCreateCredentialSchema) Type() string {
return TypeMsgCreateCredentialSchema
}
// GetSigners implements sdk.Msg
func (msg *MsgCreateCredentialSchema) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}
// ValidateBasic implements sdk.Msg
func (msg *MsgCreateCredentialSchema) ValidateBasic() error {
// Validate creator address
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err)
}
// Check mandatory parameters
if msg.TrId == 0 {
return errors.Wrap(sdkerrors.ErrInvalidRequest, "tr_id cannot be 0")
}
// Validate JSON Schema (without ID since it will be generated later)
if err := validateJSONSchema(msg.JsonSchema); err != nil {
return errors.Wrapf(ErrInvalidJSONSchema, err.Error())
}
// Validate validity periods (must be >= 0)
if err := validateValidityPeriods(msg); err != nil {
return errors.Wrap(sdkerrors.ErrInvalidRequest, err.Error())
}
// Validate permission management modes
if err := validatePermManagementModes(msg); err != nil {
return errors.Wrap(sdkerrors.ErrInvalidRequest, err.Error())
}
return nil
}
func validateJSONSchema(schemaJSON string) error {
if schemaJSON == "" {
return fmt.Errorf("json schema cannot be empty")
}
if len(schemaJSON) > int(DefaultCredentialSchemaSchemaMaxSize) {
return fmt.Errorf("json schema exceeds maximum size of %d bytes", DefaultCredentialSchemaSchemaMaxSize)
}
// Parse JSON
var schemaDoc map[string]interface{}
if err := json.Unmarshal([]byte(schemaJSON), &schemaDoc); err != nil {
return fmt.Errorf("invalid JSON format: %w", err)
}
// Check for $id field
schemaId, ok := schemaDoc["$id"].(string)
if !ok {
return fmt.Errorf("$id must be a string")
}
// Only validate that $id follows the basic pattern, actual ID will be set later
if !isValidSchemaIdPattern(schemaId) {
return fmt.Errorf("$id must match the pattern '/vpr/v1/cs/js/{number}'")
}
// Load the meta-schema and validate
metaSchemaLoader := gojsonschema.NewStringLoader(jsonSchemaMetaSchema)
schemaLoader := gojsonschema.NewStringLoader(schemaJSON)
result, err := gojsonschema.Validate(metaSchemaLoader, schemaLoader)
if err != nil {
return fmt.Errorf("schema validation error: %w", err)
}
if !result.Valid() {
var errMsgs []string
for _, err := range result.Errors() {
errMsgs = append(errMsgs, err.String())
}
return fmt.Errorf("invalid JSON schema: %v", errMsgs)
}
// Check required fields
requiredFields := []string{"$schema", "$id", "type"}
for _, field := range requiredFields {
if _, ok := schemaDoc[field]; !ok {
return fmt.Errorf("missing required field: %s", field)
}
}
// Validate type is 'object'
if schemaType, ok := schemaDoc["type"].(string); !ok || schemaType != "object" {
return fmt.Errorf("root schema type must be 'object'")
}
// Validate properties exist
properties, ok := schemaDoc["properties"].(map[string]interface{})
if !ok || len(properties) == 0 {
return fmt.Errorf("schema must define non-empty properties")
}
return nil
}
func isValidSchemaIdPattern(schemaId string) bool {
pattern := regexp.MustCompile(`^/vpr/v1/cs/js/\d+$`)
return pattern.MatchString(schemaId)
}
func validateValidityPeriods(msg *MsgCreateCredentialSchema) error {
// A value of 0 indicates no expiration (never expire)
// All other values must be within the allowed range
if msg.IssuerGrantorValidationValidityPeriod < 0 {
return fmt.Errorf("issuer grantor validation validity period cannot be negative")
}
if msg.VerifierGrantorValidationValidityPeriod < 0 {
return fmt.Errorf("verifier grantor validation validity period cannot be negative")
}
// Add maximum value checks
if msg.IssuerGrantorValidationValidityPeriod > 0 &&
msg.IssuerGrantorValidationValidityPeriod > DefaultCredentialSchemaIssuerGrantorValidationValidityPeriodMaxDays {
return fmt.Errorf("issuer grantor validation validity period exceeds maximum allowed days")
}
if msg.VerifierGrantorValidationValidityPeriod > 0 &&
msg.VerifierGrantorValidationValidityPeriod > DefaultCredentialSchemaVerifierGrantorValidationValidityPeriodMaxDays {
return fmt.Errorf("verifier grantor validation validity period exceeds maximum allowed days")
}
if msg.IssuerValidationValidityPeriod < 0 {
return fmt.Errorf("issuer validation validity period cannot be negative")
}
if msg.VerifierValidationValidityPeriod < 0 {
return fmt.Errorf("verifier validation validity period cannot be negative")
}
if msg.HolderValidationValidityPeriod < 0 {
return fmt.Errorf("holder validation validity period cannot be negative")
}
return nil
}
func validatePermManagementModes(msg *MsgCreateCredentialSchema) error {
// Check issuer permission management mode
if msg.IssuerPermManagementMode == 0 {
return fmt.Errorf("issuer permission management mode must be specified")
}
if msg.IssuerPermManagementMode > 3 {
return fmt.Errorf("invalid issuer permission management mode: must be between 1 and 3")
}
// Check verifier permission management mode
if msg.VerifierPermManagementMode == 0 {
return fmt.Errorf("verifier permission management mode must be specified")
}
if msg.VerifierPermManagementMode > 3 {
return fmt.Errorf("invalid verifier permission management mode: must be between 1 and 3")
}
return nil
}
func (msg *MsgUpdateCredentialSchema) ValidateBasic() error {
// Validate creator address
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err)
}
// Check mandatory parameters
if msg.Id == 0 {
return errors.Wrap(sdkerrors.ErrInvalidRequest, "id cannot be 0")
}
if msg.Id == 0 {
return fmt.Errorf("credential schema id is required")
}
return nil
}
func (msg *MsgArchiveCredentialSchema) ValidateBasic() error {
if msg.Creator == "" {
return fmt.Errorf("creator address is required")
}
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err)
}
if msg.Id == 0 {
return fmt.Errorf("credential schema id is required")
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/credentialschema/types.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// CredentialSchemaPermManagementMode defines how permissions are managed
type CredentialSchemaPermManagementMode int32
const (
// Default to prevent accidental omission
CredentialSchemaPermManagementMode_MODE_UNSPECIFIED CredentialSchemaPermManagementMode = 0
// Anyone can create their own permission
CredentialSchemaPermManagementMode_OPEN CredentialSchemaPermManagementMode = 1
// Requires validation from a grantor
CredentialSchemaPermManagementMode_GRANTOR_VALIDATION CredentialSchemaPermManagementMode = 2
// Requires validation from trust registry
CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION CredentialSchemaPermManagementMode = 3
)
var CredentialSchemaPermManagementMode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
1: "OPEN",
2: "GRANTOR_VALIDATION",
3: "TRUST_REGISTRY_VALIDATION",
}
var CredentialSchemaPermManagementMode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"OPEN": 1,
"GRANTOR_VALIDATION": 2,
"TRUST_REGISTRY_VALIDATION": 3,
}
func (x CredentialSchemaPermManagementMode) String() string {
return proto.EnumName(CredentialSchemaPermManagementMode_name, int32(x))
}
func (CredentialSchemaPermManagementMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0c3fce670cd1c45d, []int{0}
}
// CredentialSchema defines the structure for a credential schema
type CredentialSchema struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
Created time.Time `protobuf:"bytes,3,opt,name=created,proto3,stdtime" json:"created"`
Modified time.Time `protobuf:"bytes,4,opt,name=modified,proto3,stdtime" json:"modified"`
Archived *time.Time `protobuf:"bytes,5,opt,name=archived,proto3,stdtime" json:"archived,omitempty"`
Deposit uint64 `protobuf:"varint,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
JsonSchema string `protobuf:"bytes,7,opt,name=json_schema,json=jsonSchema,proto3" json:"json_schema,omitempty"`
IssuerGrantorValidationValidityPeriod uint32 `protobuf:"varint,8,opt,name=issuer_grantor_validation_validity_period,json=issuerGrantorValidationValidityPeriod,proto3" json:"issuer_grantor_validation_validity_period,omitempty"`
VerifierGrantorValidationValidityPeriod uint32 `protobuf:"varint,9,opt,name=verifier_grantor_validation_validity_period,json=verifierGrantorValidationValidityPeriod,proto3" json:"verifier_grantor_validation_validity_period,omitempty"`
IssuerValidationValidityPeriod uint32 `protobuf:"varint,10,opt,name=issuer_validation_validity_period,json=issuerValidationValidityPeriod,proto3" json:"issuer_validation_validity_period,omitempty"`
VerifierValidationValidityPeriod uint32 `protobuf:"varint,11,opt,name=verifier_validation_validity_period,json=verifierValidationValidityPeriod,proto3" json:"verifier_validation_validity_period,omitempty"`
HolderValidationValidityPeriod uint32 `protobuf:"varint,12,opt,name=holder_validation_validity_period,json=holderValidationValidityPeriod,proto3" json:"holder_validation_validity_period,omitempty"`
IssuerPermManagementMode CredentialSchemaPermManagementMode `protobuf:"varint,13,opt,name=issuer_perm_management_mode,json=issuerPermManagementMode,proto3,enum=veranablockchain.credentialschema.CredentialSchemaPermManagementMode" json:"issuer_perm_management_mode,omitempty"`
VerifierPermManagementMode CredentialSchemaPermManagementMode `protobuf:"varint,14,opt,name=verifier_perm_management_mode,json=verifierPermManagementMode,proto3,enum=veranablockchain.credentialschema.CredentialSchemaPermManagementMode" json:"verifier_perm_management_mode,omitempty"`
}
func (m *CredentialSchema) Reset() { *m = CredentialSchema{} }
func (m *CredentialSchema) String() string { return proto.CompactTextString(m) }
func (*CredentialSchema) ProtoMessage() {}
func (*CredentialSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_0c3fce670cd1c45d, []int{0}
}
func (m *CredentialSchema) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CredentialSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CredentialSchema.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *CredentialSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_CredentialSchema.Merge(m, src)
}
func (m *CredentialSchema) XXX_Size() int {
return m.Size()
}
func (m *CredentialSchema) XXX_DiscardUnknown() {
xxx_messageInfo_CredentialSchema.DiscardUnknown(m)
}
var xxx_messageInfo_CredentialSchema proto.InternalMessageInfo
func (m *CredentialSchema) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *CredentialSchema) GetTrId() uint64 {
if m != nil {
return m.TrId
}
return 0
}
func (m *CredentialSchema) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *CredentialSchema) GetModified() time.Time {
if m != nil {
return m.Modified
}
return time.Time{}
}
func (m *CredentialSchema) GetArchived() *time.Time {
if m != nil {
return m.Archived
}
return nil
}
func (m *CredentialSchema) GetDeposit() uint64 {
if m != nil {
return m.Deposit
}
return 0
}
func (m *CredentialSchema) GetJsonSchema() string {
if m != nil {
return m.JsonSchema
}
return ""
}
func (m *CredentialSchema) GetIssuerGrantorValidationValidityPeriod() uint32 {
if m != nil {
return m.IssuerGrantorValidationValidityPeriod
}
return 0
}
func (m *CredentialSchema) GetVerifierGrantorValidationValidityPeriod() uint32 {
if m != nil {
return m.VerifierGrantorValidationValidityPeriod
}
return 0
}
func (m *CredentialSchema) GetIssuerValidationValidityPeriod() uint32 {
if m != nil {
return m.IssuerValidationValidityPeriod
}
return 0
}
func (m *CredentialSchema) GetVerifierValidationValidityPeriod() uint32 {
if m != nil {
return m.VerifierValidationValidityPeriod
}
return 0
}
func (m *CredentialSchema) GetHolderValidationValidityPeriod() uint32 {
if m != nil {
return m.HolderValidationValidityPeriod
}
return 0
}
func (m *CredentialSchema) GetIssuerPermManagementMode() CredentialSchemaPermManagementMode {
if m != nil {
return m.IssuerPermManagementMode
}
return CredentialSchemaPermManagementMode_MODE_UNSPECIFIED
}
func (m *CredentialSchema) GetVerifierPermManagementMode() CredentialSchemaPermManagementMode {
if m != nil {
return m.VerifierPermManagementMode
}
return CredentialSchemaPermManagementMode_MODE_UNSPECIFIED
}
func init() {
proto.RegisterEnum("veranablockchain.credentialschema.CredentialSchemaPermManagementMode", CredentialSchemaPermManagementMode_name, CredentialSchemaPermManagementMode_value)
proto.RegisterType((*CredentialSchema)(nil), "veranablockchain.credentialschema.CredentialSchema")
}
func init() {
proto.RegisterFile("veranablockchain/credentialschema/types.proto", fileDescriptor_0c3fce670cd1c45d)
}
var fileDescriptor_0c3fce670cd1c45d = []byte{
// 619 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x4f, 0x4f, 0x13, 0x41,
0x18, 0xc6, 0x3b, 0xa5, 0xd0, 0x32, 0x08, 0xa9, 0x23, 0x31, 0x4b, 0x0d, 0xdb, 0x82, 0x31, 0x56,
0x0d, 0xbb, 0x09, 0xde, 0x8d, 0x05, 0x2a, 0xd9, 0xc4, 0xfe, 0xc9, 0xb6, 0x10, 0xff, 0x25, 0x9b,
0xe9, 0xce, 0xb0, 0x1d, 0xed, 0xec, 0x34, 0xb3, 0x43, 0x23, 0xf1, 0xea, 0xc1, 0x23, 0x1f, 0x8b,
0x23, 0x47, 0x4f, 0x6a, 0x20, 0x7e, 0x0f, 0xd3, 0x9d, 0xee, 0x86, 0x80, 0x14, 0x4c, 0xbc, 0x34,
0xef, 0xcc, 0xfb, 0x3c, 0xbf, 0xf7, 0x99, 0x69, 0x66, 0xe1, 0xc6, 0x88, 0x4a, 0x1c, 0xe2, 0xde,
0x40, 0xf8, 0x9f, 0xfc, 0x3e, 0x66, 0xa1, 0xed, 0x4b, 0x4a, 0x68, 0xa8, 0x18, 0x1e, 0x44, 0x7e,
0x9f, 0x72, 0x6c, 0xab, 0xa3, 0x21, 0x8d, 0xac, 0xa1, 0x14, 0x4a, 0xa0, 0xb5, 0xcb, 0x72, 0xeb,
0xb2, 0xbc, 0x74, 0x17, 0x73, 0x16, 0x0a, 0x3b, 0xfe, 0xd5, 0xae, 0xd2, 0x72, 0x20, 0x02, 0x11,
0x97, 0xf6, 0xb8, 0x9a, 0xec, 0x96, 0x03, 0x21, 0x82, 0x01, 0xb5, 0xe3, 0x55, 0xef, 0xf0, 0xc0,
0x56, 0x8c, 0xd3, 0x48, 0x61, 0x3e, 0x9c, 0x08, 0x56, 0x7c, 0x11, 0x71, 0x11, 0x79, 0xda, 0xa9,
0x17, 0xba, 0xb5, 0xfe, 0x3b, 0x0f, 0x8b, 0xdb, 0xe9, 0xe4, 0x4e, 0x3c, 0x19, 0x2d, 0xc1, 0x2c,
0x23, 0x06, 0xa8, 0x80, 0x6a, 0xce, 0xcd, 0x32, 0x82, 0xee, 0xc1, 0x59, 0x25, 0x3d, 0x46, 0x8c,
0x6c, 0xbc, 0x95, 0x53, 0xd2, 0x21, 0xe8, 0x05, 0xcc, 0xfb, 0x92, 0x62, 0x45, 0x89, 0x31, 0x53,
0x01, 0xd5, 0x85, 0xcd, 0x92, 0xa5, 0x73, 0x58, 0x49, 0x0e, 0xab, 0x9b, 0xe4, 0xd8, 0x2a, 0x9c,
0xfc, 0x28, 0x67, 0x8e, 0x7f, 0x96, 0x81, 0x9b, 0x98, 0xd0, 0x4b, 0x58, 0xe0, 0x82, 0xb0, 0x03,
0x46, 0x89, 0x91, 0xfb, 0x07, 0x40, 0xea, 0x1a, 0x13, 0xb0, 0xf4, 0xfb, 0x6c, 0x44, 0x89, 0x31,
0x7b, 0x2b, 0x02, 0xd0, 0x84, 0xc4, 0x85, 0x0c, 0x98, 0x27, 0x74, 0x28, 0x22, 0xa6, 0x8c, 0xb9,
0xf8, 0x68, 0xc9, 0x12, 0x95, 0xe1, 0xc2, 0xc7, 0x48, 0x84, 0x9e, 0xfe, 0x2f, 0x8c, 0x7c, 0x05,
0x54, 0xe7, 0x5d, 0x38, 0xde, 0x9a, 0xdc, 0xd1, 0x1b, 0xf8, 0x84, 0x45, 0xd1, 0x21, 0x95, 0x5e,
0x20, 0x71, 0xa8, 0x84, 0xf4, 0x46, 0x78, 0xc0, 0x08, 0x56, 0x4c, 0x84, 0xba, 0x64, 0xea, 0xc8,
0x1b, 0x52, 0xc9, 0x04, 0x31, 0x0a, 0x15, 0x50, 0x5d, 0x74, 0x1f, 0x69, 0xc3, 0xae, 0xd6, 0xef,
0xa7, 0xf2, 0xfd, 0x89, 0xba, 0x1d, 0x8b, 0xd1, 0x07, 0xf8, 0x6c, 0x44, 0xe5, 0xf8, 0x88, 0xb7,
0x62, 0xcf, 0xc7, 0xec, 0xc7, 0x89, 0xe5, 0x26, 0xba, 0x03, 0xd7, 0x26, 0xb9, 0xa7, 0x30, 0x61,
0xcc, 0x34, 0xb5, 0xf0, 0x5a, 0x54, 0x03, 0x3e, 0x4c, 0x83, 0x4e, 0x81, 0x2d, 0xc4, 0xb0, 0x4a,
0x22, 0x9d, 0x96, 0xac, 0x2f, 0x06, 0x64, 0x3a, 0xec, 0x8e, 0x4e, 0xa6, 0x85, 0xd7, 0xa2, 0xbe,
0x02, 0xf8, 0x60, 0x72, 0xca, 0x21, 0x95, 0xdc, 0xe3, 0x38, 0xc4, 0x01, 0xe5, 0x34, 0x54, 0x1e,
0x17, 0x84, 0x1a, 0x8b, 0x15, 0x50, 0x5d, 0xda, 0xac, 0x5b, 0x37, 0x3e, 0x42, 0xeb, 0xf2, 0xdb,
0x68, 0x53, 0xc9, 0x1b, 0x29, 0xad, 0x21, 0x08, 0x75, 0x0d, 0x3d, 0xe9, 0x6a, 0x07, 0x7d, 0x03,
0x70, 0x35, 0xbd, 0xa1, 0xbf, 0x06, 0x59, 0xfa, 0x9f, 0x41, 0x4a, 0xc9, 0xac, 0xab, 0xbd, 0xa7,
0x5f, 0xe0, 0xfa, 0xcd, 0x04, 0xb4, 0x0c, 0x8b, 0x8d, 0xd6, 0x4e, 0xdd, 0xdb, 0x6b, 0x76, 0xda,
0xf5, 0x6d, 0xe7, 0x95, 0x53, 0xdf, 0x29, 0x66, 0x50, 0x01, 0xe6, 0x5a, 0xed, 0x7a, 0xb3, 0x08,
0xd0, 0x7d, 0x88, 0x76, 0xdd, 0x5a, 0xb3, 0xdb, 0x72, 0xbd, 0xfd, 0xda, 0x6b, 0x67, 0xa7, 0xd6,
0x75, 0x5a, 0xcd, 0x62, 0x16, 0xad, 0xc2, 0x95, 0xae, 0xbb, 0xd7, 0xe9, 0x7a, 0x6e, 0x7d, 0xd7,
0xe9, 0x74, 0xdd, 0xb7, 0x17, 0xdb, 0x33, 0x5b, 0xef, 0x4f, 0xce, 0x4c, 0x70, 0x7a, 0x66, 0x82,
0x5f, 0x67, 0x26, 0x38, 0x3e, 0x37, 0x33, 0xa7, 0xe7, 0x66, 0xe6, 0xfb, 0xb9, 0x99, 0x79, 0x57,
0x0b, 0x98, 0xea, 0x1f, 0xf6, 0x2c, 0x5f, 0x70, 0x5b, 0xdf, 0xc1, 0xc6, 0x00, 0xf7, 0xa2, 0xa4,
0xbe, 0xf0, 0x35, 0xfd, 0x7c, 0xcd, 0xf7, 0xb4, 0x37, 0x17, 0xbf, 0xf5, 0xe7, 0x7f, 0x02, 0x00,
0x00, 0xff, 0xff, 0xb2, 0xd6, 0x28, 0xc9, 0x81, 0x05, 0x00, 0x00,
}
func (m *CredentialSchema) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *CredentialSchema) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CredentialSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.VerifierPermManagementMode != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VerifierPermManagementMode))
i--
dAtA[i] = 0x70
}
if m.IssuerPermManagementMode != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.IssuerPermManagementMode))
i--
dAtA[i] = 0x68
}
if m.HolderValidationValidityPeriod != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.HolderValidationValidityPeriod))
i--
dAtA[i] = 0x60
}
if m.VerifierValidationValidityPeriod != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VerifierValidationValidityPeriod))
i--
dAtA[i] = 0x58
}
if m.IssuerValidationValidityPeriod != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.IssuerValidationValidityPeriod))
i--
dAtA[i] = 0x50
}
if m.VerifierGrantorValidationValidityPeriod != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VerifierGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x48
}
if m.IssuerGrantorValidationValidityPeriod != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.IssuerGrantorValidationValidityPeriod))
i--
dAtA[i] = 0x40
}
if len(m.JsonSchema) > 0 {
i -= len(m.JsonSchema)
copy(dAtA[i:], m.JsonSchema)
i = encodeVarintTypes(dAtA, i, uint64(len(m.JsonSchema)))
i--
dAtA[i] = 0x3a
}
if m.Deposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Deposit))
i--
dAtA[i] = 0x30
}
if m.Archived != nil {
n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Archived, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Archived):])
if err1 != nil {
return 0, err1
}
i -= n1
i = encodeVarintTypes(dAtA, i, uint64(n1))
i--
dAtA[i] = 0x2a
}
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Modified, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintTypes(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x22
n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err3 != nil {
return 0, err3
}
i -= n3
i = encodeVarintTypes(dAtA, i, uint64(n3))
i--
dAtA[i] = 0x1a
if m.TrId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.TrId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
offset -= sovTypes(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *CredentialSchema) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
if m.TrId != 0 {
n += 1 + sovTypes(uint64(m.TrId))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified)
n += 1 + l + sovTypes(uint64(l))
if m.Archived != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Archived)
n += 1 + l + sovTypes(uint64(l))
}
if m.Deposit != 0 {
n += 1 + sovTypes(uint64(m.Deposit))
}
l = len(m.JsonSchema)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.IssuerGrantorValidationValidityPeriod != 0 {
n += 1 + sovTypes(uint64(m.IssuerGrantorValidationValidityPeriod))
}
if m.VerifierGrantorValidationValidityPeriod != 0 {
n += 1 + sovTypes(uint64(m.VerifierGrantorValidationValidityPeriod))
}
if m.IssuerValidationValidityPeriod != 0 {
n += 1 + sovTypes(uint64(m.IssuerValidationValidityPeriod))
}
if m.VerifierValidationValidityPeriod != 0 {
n += 1 + sovTypes(uint64(m.VerifierValidationValidityPeriod))
}
if m.HolderValidationValidityPeriod != 0 {
n += 1 + sovTypes(uint64(m.HolderValidationValidityPeriod))
}
if m.IssuerPermManagementMode != 0 {
n += 1 + sovTypes(uint64(m.IssuerPermManagementMode))
}
if m.VerifierPermManagementMode != 0 {
n += 1 + sovTypes(uint64(m.VerifierPermManagementMode))
}
return n
}
func sovTypes(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTypes(x uint64) (n int) {
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *CredentialSchema) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: CredentialSchema: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CredentialSchema: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
m.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Modified, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Archived == nil {
m.Archived = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Archived, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
m.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field JsonSchema", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.JsonSchema = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerGrantorValidationValidityPeriod", wireType)
}
m.IssuerGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierGrantorValidationValidityPeriod", wireType)
}
m.VerifierGrantorValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierGrantorValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerValidationValidityPeriod", wireType)
}
m.IssuerValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 11:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierValidationValidityPeriod", wireType)
}
m.VerifierValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 12:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field HolderValidationValidityPeriod", wireType)
}
m.HolderValidationValidityPeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.HolderValidationValidityPeriod |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 13:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerPermManagementMode", wireType)
}
m.IssuerPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerPermManagementMode |= CredentialSchemaPermManagementMode(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 14:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierPermManagementMode", wireType)
}
m.VerifierPermManagementMode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierPermManagementMode |= CredentialSchemaPermManagementMode(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTypes(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTypes
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTypes
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTypes
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
package keeper
import (
"errors"
"fmt"
"regexp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func (ms msgServer) validateAddDIDParams(ctx sdk.Context, msg *types.MsgAddDID) error {
if msg.Did == "" {
return errors.New("DID is required")
}
// Validate DID format
if !isValidDID(msg.Did) {
return errors.New("invalid DID syntax")
}
// Check if DID already exists
_, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err == nil {
return errors.New("DID already exists")
}
// Validate years (1-31)
years := msg.Years
if years == 0 {
years = 1
}
if years > 31 {
return errors.New("years must be between 1 and 31")
}
return nil
}
func isValidDID(did string) bool {
// Basic DID validation regex
// This is a simplified version and may need to be expanded based on specific DID method requirements
didRegex := regexp.MustCompile(`^did:[a-zA-Z0-9]+:[a-zA-Z0-9._-]+$`)
return didRegex.MatchString(did)
}
func (ms msgServer) checkSufficientFees(_ sdk.Context, _ string, _ uint32) error {
return nil
}
func (ms msgServer) executeAddDID(ctx sdk.Context, msg *types.MsgAddDID) error {
params := ms.GetParams(ctx)
trustUnitPrice := ms.trustRegistryKeeper.GetTrustUnitPrice(ctx)
// Verify creator address
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Set years (default to 1 if not specified)
years := msg.Years
if years == 0 {
years = 1
}
now := ctx.BlockTime()
expiration := now.AddDate(int(years), 0, 0)
// Calculate trust deposit
trustDeposit := params.DidDirectoryTrustDeposit * trustUnitPrice * uint64(years)
// Increase trust deposit
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, msg.Creator, int64(trustDeposit)); err != nil {
return fmt.Errorf("failed to adjust trust deposit: %w", err)
}
// Create DID entry
didEntry := types.DIDDirectory{
Did: msg.Did,
Controller: msg.Creator,
Created: now,
Modified: now,
Exp: expiration,
Deposit: int64(trustDeposit),
}
// Store the DID entry
if err = ms.DIDDirectory.Set(ctx, msg.Did, didEntry); err != nil {
return fmt.Errorf("failed to store DID: %w", err)
}
// Emit event
ctx.EventManager().EmitEvent(
sdk.NewEvent(
types.EventTypeAddDID,
sdk.NewAttribute(types.AttributeKeyDID, msg.Did),
sdk.NewAttribute(types.AttributeKeyController, msg.Creator),
sdk.NewAttribute(types.AttributeKeyExpiration, expiration.String()),
sdk.NewAttribute(types.AttributeKeyDeposit, fmt.Sprintf("%d", trustDeposit)),
sdk.NewAttribute(types.AttributeKeyYears, fmt.Sprintf("%d", years)),
),
)
return nil
}
package keeper
import (
"fmt"
"cosmossdk.io/collections"
"cosmossdk.io/core/store"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
type (
Keeper struct {
cdc codec.BinaryCodec
storeService store.KVStoreService
logger log.Logger
// the address capable of executing a MsgUpdateParams message. Typically, this
// should be the x/gov module account.
authority string
// state management
Schema collections.Schema
DIDDirectory collections.Map[string, types.DIDDirectory]
trustDeposit types.TrustDepositKeeper
trustRegistryKeeper types.TrustRegistryKeeper
}
)
func NewKeeper(
cdc codec.BinaryCodec,
storeService store.KVStoreService,
logger log.Logger,
authority string,
trustDeposit types.TrustDepositKeeper,
trustRegistryKeeper types.TrustRegistryKeeper,
) Keeper {
if _, err := sdk.AccAddressFromBech32(authority); err != nil {
panic(fmt.Sprintf("invalid authority address: %s", authority))
}
sb := collections.NewSchemaBuilder(storeService)
return Keeper{
cdc: cdc,
storeService: storeService,
authority: authority,
logger: logger,
DIDDirectory: collections.NewMap(sb, types.DIDDirectoryKey, "did_directory", collections.StringKey, codec.CollValue[types.DIDDirectory](cdc)),
trustDeposit: trustDeposit,
trustRegistryKeeper: trustRegistryKeeper,
}
}
// GetAuthority returns the module's authority.
func (k Keeper) GetAuthority() string {
return k.authority
}
// Logger returns a module-specific logger.
func (k Keeper) Logger() log.Logger {
return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName))
}
package keeper
import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
type msgServer struct {
Keeper
}
// NewMsgServerImpl returns an implementation of the MsgServer interface
// for the provided Keeper.
func NewMsgServerImpl(keeper Keeper) types.MsgServer {
return &msgServer{Keeper: keeper}
}
var _ types.MsgServer = msgServer{}
func (ms msgServer) AddDID(goCtx context.Context, msg *types.MsgAddDID) (*types.MsgAddDIDResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Basic parameter validation
if err := ms.validateAddDIDParams(ctx, msg); err != nil {
return nil, err
}
// Fee checks
if err := ms.checkSufficientFees(ctx, msg.Creator, msg.Years); err != nil {
return nil, err
}
// Execute the addition
if err := ms.executeAddDID(ctx, msg); err != nil {
return nil, err
}
return &types.MsgAddDIDResponse{}, nil
}
func (ms msgServer) RenewDID(goCtx context.Context, msg *types.MsgRenewDID) (*types.MsgRenewDIDResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Basic parameter validation
if err := ms.validateRenewDIDParams(ctx, msg); err != nil {
return nil, err
}
// Fee checks
if err := ms.checkSufficientFees(ctx, msg.Creator, msg.Years); err != nil {
return nil, err
}
// Execute the renewal
if err := ms.executeRenewDID(ctx, msg); err != nil {
return nil, err
}
return &types.MsgRenewDIDResponse{}, nil
}
func (ms msgServer) RemoveDID(goCtx context.Context, msg *types.MsgRemoveDID) (*types.MsgRemoveDIDResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.validateRemoveDIDParams(ctx, msg); err != nil {
return nil, err
}
if err := ms.checkSufficientFees(ctx, msg.Creator, 0); err != nil {
return nil, err
}
if err := ms.executeRemoveDID(ctx, msg); err != nil {
return nil, err
}
return &types.MsgRemoveDIDResponse{}, nil
}
func (ms msgServer) TouchDID(goCtx context.Context, msg *types.MsgTouchDID) (*types.MsgTouchDIDResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.validateTouchDIDParams(ctx, msg); err != nil {
return nil, err
}
if err := ms.executeTouchDID(ctx, msg); err != nil {
return nil, err
}
return &types.MsgTouchDIDResponse{}, nil
}
package keeper
import (
"context"
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
if ms.GetAuthority() != req.Authority {
return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.GetAuthority(), req.Authority)
}
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.SetParams(ctx, req.Params); err != nil {
return nil, err
}
return &types.MsgUpdateParamsResponse{}, nil
}
package keeper
import (
"context"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
// GetParams get all parameters as types.Params
func (k Keeper) GetParams(ctx context.Context) (params types.Params) {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz := store.Get(types.ParamsKey)
if bz == nil {
return params
}
k.cdc.MustUnmarshal(bz, ¶ms)
return params
}
// SetParams set the params
func (k Keeper) SetParams(ctx context.Context, params types.Params) error {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz, err := k.cdc.Marshal(¶ms)
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)
return nil
}
package keeper
import (
"context"
"fmt"
"sort"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
var _ types.QueryServer = Keeper{}
func (k Keeper) ListDIDs(ctx context.Context, req *types.QueryListDIDsRequest) (*types.QueryListDIDsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
// Validate response_max_size
if req.ResponseMaxSize == 0 {
req.ResponseMaxSize = 64 // default value
}
if req.ResponseMaxSize > 1024 {
return nil, status.Error(codes.InvalidArgument, "response_max_size must be between 1 and 1,024")
}
sdkCtx := sdk.UnwrapSDKContext(ctx)
params := k.GetParams(ctx)
var dids []types.DIDDirectory
now := sdkCtx.BlockTime()
gracePeriod := now.AddDate(0, 0, -int(params.DidDirectoryGracePeriod))
err := k.DIDDirectory.Walk(sdkCtx, nil, func(key string, did types.DIDDirectory) (bool, error) {
// Apply basic filters first
if req.Account != "" && did.Controller != req.Account {
return false, nil
}
if req.Changed != nil && !did.Modified.After(*req.Changed) {
return false, nil
}
// Check expiration status
isExpired := did.Exp.Before(now)
isOverGrace := did.Exp.Before(gracePeriod)
// Special filtering cases
if req.OverGrace {
// When over_grace is true, show only over grace period DIDs
if !isOverGrace {
return false, nil
}
} else if req.Expired {
// When expired is true, show all expired DIDs (both normal expired and over grace)
if !isExpired {
return false, nil
}
}
// When neither flag is set, show all DIDs (no filtering on expiration)
dids = append(dids, did)
return len(dids) >= int(req.ResponseMaxSize), nil
})
if err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to list DIDs: %v", err))
}
// Sort by modified time ascending
sort.Slice(dids, func(i, j int) bool {
return dids[i].Modified.Before(dids[j].Modified)
})
return &types.QueryListDIDsResponse{
Dids: dids,
}, nil
}
func (k Keeper) GetDID(ctx context.Context, req *types.QueryGetDIDRequest) (*types.QueryGetDIDResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
// Check DID format
if !isValidDID(req.Did) {
return nil, status.Error(codes.InvalidArgument, "invalid DID syntax")
}
// Get the DID entry
didEntry, err := k.DIDDirectory.Get(ctx, req.Did)
if err != nil {
return nil, status.Error(codes.NotFound, fmt.Sprintf("DID %s not found", req.Did))
}
return &types.QueryGetDIDResponse{
DidEntry: didEntry,
}, nil
}
package keeper
import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil
}
package keeper
import (
"errors"
"fmt"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func (ms msgServer) validateRemoveDIDParams(ctx sdk.Context, msg *types.MsgRemoveDID) error {
if msg.Did == "" {
return errors.New("DID is required")
}
if !isValidDID(msg.Did) {
return errors.New("invalid DID syntax")
}
// Get DID entry
didEntry, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err != nil {
return fmt.Errorf("DID not found: %w", err)
}
// Get grace period
params := ms.GetParams(ctx)
gracePeriod := time.Duration(params.DidDirectoryGracePeriod) * 24 * time.Hour
// Check authorization
now := ctx.BlockTime()
if now.Before(didEntry.Exp.Add(gracePeriod)) {
// Before grace period: only controller can remove
if msg.Creator != didEntry.Controller {
return errors.New("only the controller can remove this DID before grace period")
}
}
return nil
}
func (ms msgServer) executeRemoveDID(ctx sdk.Context, msg *types.MsgRemoveDID) error {
_, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err != nil {
return fmt.Errorf("error retrieving DID: %w", err)
}
// Release trust deposit to controller
// Remove DID entry
if err = ms.DIDDirectory.Remove(ctx, msg.Did); err != nil {
return fmt.Errorf("failed to remove DID: %w", err)
}
return nil
}
package keeper
import (
"errors"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func (ms msgServer) validateRenewDIDParams(ctx sdk.Context, msg *types.MsgRenewDID) error {
if msg.Did == "" {
return errors.New("DID is required")
}
// Validate DID format
if !isValidDID(msg.Did) {
return errors.New("invalid DID syntax")
}
// Get existing DID entry
didEntry, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err != nil {
return fmt.Errorf("DID not found: %w", err)
}
// Check if caller is the controller
if didEntry.Controller != msg.Creator {
return errors.New("only the controller can renew a DID")
}
// Validate years (1-31)
years := msg.Years
if years == 0 {
years = 1
}
if years > 31 {
return errors.New("years must be between 1 and 31")
}
return nil
}
func (ms msgServer) executeRenewDID(ctx sdk.Context, msg *types.MsgRenewDID) error {
params := ms.GetParams(ctx)
trustUnitPrice := ms.trustRegistryKeeper.GetTrustUnitPrice(ctx)
// Get existing DID entry
didEntry, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err != nil {
return fmt.Errorf("error retrieving DID: %w", err)
}
years := msg.Years
if years == 0 {
years = 1
}
now := ctx.BlockTime()
// Add years to current expiration
newExpiration := didEntry.Exp.AddDate(int(years), 0, 0)
// Calculate additional deposit
additionalDeposit := params.DidDirectoryTrustDeposit * trustUnitPrice * uint64(years)
// Increase trust deposit
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, msg.Creator, int64(additionalDeposit)); err != nil {
return fmt.Errorf("failed to adjust trust deposit: %w", err)
}
// Update DID entry
didEntry.Modified = now
didEntry.Exp = newExpiration
didEntry.Deposit += int64(additionalDeposit)
// Store the updated DID entry
if err = ms.DIDDirectory.Set(ctx, msg.Did, didEntry); err != nil {
return fmt.Errorf("failed to update DID: %w", err)
}
// Emit event
ctx.EventManager().EmitEvent(
sdk.NewEvent(
types.EventTypeRenewDID,
sdk.NewAttribute(types.AttributeKeyDID, msg.Did),
sdk.NewAttribute(types.AttributeKeyController, msg.Creator),
sdk.NewAttribute(types.AttributeKeyDeposit, fmt.Sprintf("%d", additionalDeposit)),
sdk.NewAttribute(types.AttributeKeyYears, fmt.Sprintf("%d", years)),
),
)
return nil
}
package keeper
import (
"errors"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
func (ms msgServer) validateTouchDIDParams(ctx sdk.Context, msg *types.MsgTouchDID) error {
if msg.Did == "" {
return errors.New("DID is required")
}
if !isValidDID(msg.Did) {
return errors.New("invalid DID syntax")
}
// Check if DID exists
_, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err != nil {
return fmt.Errorf("DID not found: %w", err)
}
return nil
}
func (ms msgServer) executeTouchDID(ctx sdk.Context, msg *types.MsgTouchDID) error {
// Get current DID entry
didEntry, err := ms.DIDDirectory.Get(ctx, msg.Did)
if err != nil {
return fmt.Errorf("error retrieving DID: %w", err)
}
// Update modified time
didEntry.Modified = ctx.BlockTime()
// Save updated entry
if err = ms.DIDDirectory.Set(ctx, msg.Did, didEntry); err != nil {
return fmt.Errorf("failed to update DID: %w", err)
}
return nil
}
package diddirectory
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/diddirectory"
)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "Params",
Use: "params",
Short: "Shows the parameters of the module",
},
{
RpcMethod: "ListDIDs",
Use: "list-dids",
Short: "List DIDs with optional filtering",
Long: "List DIDs in the directory with optional filtering by controller, changed time, expiration status, and pagination",
FlagOptions: map[string]*autocliv1.FlagOptions{
"account": {
Name: "account",
Usage: "Filter by controller account address",
DefaultValue: "",
},
"changed": {
Name: "changed",
Usage: "Filter by changed time (RFC3339 format)",
DefaultValue: "",
},
"expired": {
Name: "expired",
Usage: "Show expired services",
DefaultValue: "false",
},
"over_grace": {
Name: "over-grace",
Usage: "Show services over grace period",
DefaultValue: "false",
},
"response_max_size": {
Name: "max-results",
Usage: "Maximum number of results (1-1024, default 64)",
DefaultValue: "64",
},
},
},
{
RpcMethod: "GetDID",
Use: "get-did [did]",
Short: "Get details of a DID entry",
Long: "Get the full details of a DID entry from the directory",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
},
},
// this line is used by ignite scaffolding # autocli/query
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Msg_ServiceDesc.ServiceName,
EnhanceCustomCommand: true, // only required if you want to use the custom command
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "UpdateParams",
Skip: true, // skipped because authority gated
},
{
RpcMethod: "AddDID",
Use: "add-did [did] [years]",
Short: "Add a new DID to the directory",
Long: "Add a new DID to the directory with optional years parameter (1-31, default 1)",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
{
ProtoField: "years",
Optional: true,
},
},
},
{
RpcMethod: "RenewDID",
Use: "renew-did [did] [years]",
Short: "Renew an existing DID registration",
Long: "Renew an existing DID registration for additional years (1-31, default 1). Must be called by the DID controller.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
{
ProtoField: "years",
Optional: true,
},
},
},
{
RpcMethod: "RemoveDID",
Use: "remove-did [did]",
Short: "Remove a DID from the directory",
Long: "Remove a DID from the directory. Only the controller can remove before grace period, anyone can remove after grace period has passed.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
},
},
{
RpcMethod: "TouchDID",
Use: "touch-did [did]",
Short: "Update the last modified time of a DID",
Long: "Update the last modified time of a DID to indicate it should be reindexed by DID resolvers and crawlers",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
},
},
// this line is used by ignite scaffolding # autocli/tx
},
},
}
}
package diddirectory
import (
"fmt"
"sort"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/diddirectory/keeper"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
// Validate genesis state first
if err := genState.Validate(); err != nil {
panic(fmt.Sprintf("invalid diddirectory genesis state: %s", err))
}
// Set module parameters
if err := k.SetParams(ctx, genState.Params); err != nil {
panic(fmt.Sprintf("failed to set parameters: %s", err))
}
// Initialize DID directories in deterministic order
// Sort them by DID to ensure deterministic initialization
didDirectories := genState.DidDirectories
sort.SliceStable(didDirectories, func(i, j int) bool {
return didDirectories[i].Did < didDirectories[j].Did
})
// Track DIDs to prevent duplicates during import
seenDIDs := make(map[string]bool)
// Set all DID directory entries
for _, dd := range didDirectories {
// Double-check for duplicates (should already be caught by Validate)
if seenDIDs[dd.Did] {
panic(fmt.Sprintf("duplicate DID in genesis state: %s", dd.Did))
}
seenDIDs[dd.Did] = true
// Set DID directory
if err := k.DIDDirectory.Set(ctx, dd.Did, dd); err != nil {
panic(fmt.Sprintf("failed to set DID directory: %s", err))
}
}
k.Logger().Info("Initialized DID directory genesis state",
"params", genState.Params,
"did_count", len(didDirectories))
}
// ExportGenesis returns the module's exported genesis.
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
genesis := types.DefaultGenesis()
genesis.Params = k.GetParams(ctx)
// Export all DID directories
var didDirectories []types.DIDDirectory
// Use collections.Walk to get all DID entries
err := k.DIDDirectory.Walk(ctx, nil, func(key string, did types.DIDDirectory) (bool, error) {
didDirectories = append(didDirectories, did)
return false, nil
})
if err != nil {
panic(fmt.Sprintf("failed to export DID directory: %s", err))
}
// Sort DID directories by DID to ensure deterministic export order
sort.SliceStable(didDirectories, func(i, j int) bool {
return didDirectories[i].Did < didDirectories[j].Did
})
genesis.DidDirectories = didDirectories
// Perform a final sanitization to ensure deterministic ordering
return types.SanitizeGenesisState(genesis)
}
package diddirectory
import (
"context"
"encoding/json"
"fmt"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
// this line is used by starport scaffolding # 1
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/diddirectory/module"
"github.com/verana-labs/verana-blockchain/x/diddirectory/keeper"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
var (
_ module.AppModuleBasic = (*AppModule)(nil)
_ module.AppModuleSimulation = (*AppModule)(nil)
_ module.HasGenesis = (*AppModule)(nil)
_ module.HasInvariants = (*AppModule)(nil)
_ module.HasConsensusVersion = (*AppModule)(nil)
_ appmodule.AppModule = (*AppModule)(nil)
_ appmodule.HasBeginBlocker = (*AppModule)(nil)
_ appmodule.HasEndBlocker = (*AppModule)(nil)
)
// ----------------------------------------------------------------------------
// AppModuleBasic
// ----------------------------------------------------------------------------
// AppModuleBasic implements the AppModuleBasic interface that defines the
// independent methods a Cosmos SDK module needs to implement.
type AppModuleBasic struct {
cdc codec.BinaryCodec
}
func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic {
return AppModuleBasic{cdc: cdc}
}
// Name returns the name of the module as a string.
func (AppModuleBasic) Name() string {
return types.ModuleName
}
// RegisterLegacyAminoCodec registers the amino codec for the module, which is used
// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message.
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) {
types.RegisterInterfaces(reg)
}
// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage.
// The default GenesisState need to be defined by the module developer and is primarily used for testing.
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(types.DefaultGenesis())
}
// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form.
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
var genState types.GenesisState
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err)
}
return genState.Validate()
}
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
panic(err)
}
}
// ----------------------------------------------------------------------------
// AppModule
// ----------------------------------------------------------------------------
// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement
type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
}
func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
accountKeeper types.AccountKeeper,
bankKeeper types.BankKeeper,
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(cdc),
keeper: keeper,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
}
}
// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}
// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted)
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
// InitGenesis performs the module's genesis initialization. It returns no validator updates.
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) {
var genState types.GenesisState
// Initialize global index to index in genesis state
cdc.MustUnmarshalJSON(gs, &genState)
InitGenesis(ctx, am.keeper, genState)
}
// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
genState := ExportGenesis(ctx, am.keeper)
return cdc.MustMarshalJSON(genState)
}
// ConsensusVersion is a sequence number for state-breaking change of the module.
// It should be incremented on each consensus-breaking change introduced by the module.
// To avoid wrong/empty versions, the initial version should be set to 1.
func (AppModule) ConsensusVersion() uint64 { return 1 }
// BeginBlock contains the logic that is automatically triggered at the beginning of each block.
// The begin block implementation is optional.
func (am AppModule) BeginBlock(_ context.Context) error {
return nil
}
// EndBlock contains the logic that is automatically triggered at the end of each block.
// The end block implementation is optional.
func (am AppModule) EndBlock(_ context.Context) error {
return nil
}
// IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (am AppModule) IsOnePerModuleType() {}
// IsAppModule implements the appmodule.AppModule interface.
func (am AppModule) IsAppModule() {}
// ----------------------------------------------------------------------------
// App Wiring Setup
// ----------------------------------------------------------------------------
func init() {
appmodule.Register(
&modulev1.Module{},
appmodule.Provide(ProvideModule),
)
}
type ModuleInputs struct {
depinject.In
StoreService store.KVStoreService
Cdc codec.Codec
Config *modulev1.Module
Logger log.Logger
AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
TrustDepositKeeper types.TrustDepositKeeper `optional:"true"`
TrustRegistryKeeper types.TrustRegistryKeeper `optional:"true"`
}
type ModuleOutputs struct {
depinject.Out
DiddirectoryKeeper keeper.Keeper
Module appmodule.AppModule
}
func ProvideModule(in ModuleInputs) ModuleOutputs {
// default to governance authority if not provided
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
k := keeper.NewKeeper(
in.Cdc,
in.StoreService,
in.Logger,
authority.String(),
in.TrustDepositKeeper,
in.TrustRegistryKeeper,
)
m := NewAppModule(
in.Cdc,
k,
in.AccountKeeper,
in.BankKeeper,
)
return ModuleOutputs{DiddirectoryKeeper: k, Module: m}
}
package diddirectory
import (
"math/rand"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/verana-labs/verana-blockchain/testutil/sample"
diddirectorysimulation "github.com/verana-labs/verana-blockchain/x/diddirectory/simulation"
"github.com/verana-labs/verana-blockchain/x/diddirectory/types"
)
// avoid unused import issue
var (
_ = diddirectorysimulation.FindAccount
_ = rand.Rand{}
_ = sample.AccAddress
_ = sdk.AccAddress{}
_ = simulation.MsgEntryKind
)
const (
// this line is used by starport scaffolding # simapp/module/const
)
// GenerateGenesisState creates a randomized GenState of the module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs := make([]string, len(simState.Accounts))
for i, acc := range simState.Accounts {
accs[i] = acc.Address.String()
}
diddirectoryGenesis := types.GenesisState{
Params: types.DefaultParams(),
// this line is used by starport scaffolding # simapp/module/genesisState
}
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&diddirectoryGenesis)
}
// RegisterStoreDecoder registers a decoder.
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {}
// WeightedOperations returns the all the gov module operations with their respective weights.
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
operations := make([]simtypes.WeightedOperation, 0)
// this line is used by starport scaffolding # simapp/module/operation
return operations
}
// ProposalMsgs returns msgs used for governance proposals for simulations.
func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg {
return []simtypes.WeightedProposalMsg{
// this line is used by starport scaffolding # simapp/module/OpMsg
}
}
package simulation
import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
// FindAccount find a specific address from an account list
func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) {
creator, err := sdk.AccAddressFromBech32(address)
if err != nil {
panic(err)
}
return simtypes.FindAccount(accs, creator)
}
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
// this line is used by starport scaffolding # 1
)
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgAddDID{}, "/dtr/v1/dd/add-did")
legacy.RegisterAminoMsg(cdc, &MsgRenewDID{}, "/dtr/v1/dd/renew-did")
legacy.RegisterAminoMsg(cdc, &MsgRemoveDID{}, "/dtr/v1/dd/remove-did")
legacy.RegisterAminoMsg(cdc, &MsgTouchDID{}, "/dtr/v1/dd/touch-did")
}
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// this line is used by starport scaffolding # 3
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgUpdateParams{},
&MsgAddDID{},
&MsgRenewDID{},
&MsgRemoveDID{},
&MsgTouchDID{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
package types
import (
"fmt"
"sort"
)
// DefaultIndex is the default global index
const DefaultIndex uint64 = 1
// DefaultGenesis returns the default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
Params: DefaultParams(),
DidDirectories: []DIDDirectory{},
}
}
// Validate performs basic genesis state validation returning an error upon any
// failure.
func (gs GenesisState) Validate() error {
if err := gs.Params.Validate(); err != nil {
return fmt.Errorf("invalid parameters: %w", err)
}
// Validate did directories
seenDIDs := make(map[string]bool)
for i, didEntry := range gs.DidDirectories {
// Check for required fields
if didEntry.Did == "" {
return fmt.Errorf("empty DID at index %d", i)
}
if didEntry.Controller == "" {
return fmt.Errorf("empty controller for DID %s", didEntry.Did)
}
// Check for duplicate DIDs
if seenDIDs[didEntry.Did] {
return fmt.Errorf("duplicate DID Directory found in genesis state: %s", didEntry.Did)
}
seenDIDs[didEntry.Did] = true
// Check for valid DID syntax (simplified for genesis validation)
if !isValidDIDFormat(didEntry.Did) {
return fmt.Errorf("invalid DID format: %s", didEntry.Did)
}
// Validate timestamps
if didEntry.Created.IsZero() {
return fmt.Errorf("DID %s has zero created timestamp", didEntry.Did)
}
if didEntry.Modified.IsZero() {
return fmt.Errorf("DID %s has zero modified timestamp", didEntry.Did)
}
if didEntry.Exp.IsZero() {
return fmt.Errorf("DID %s has zero expiration timestamp", didEntry.Did)
}
// Modified shouldn't be before Created
if didEntry.Modified.Before(didEntry.Created) {
return fmt.Errorf("DID %s has modified timestamp before created timestamp", didEntry.Did)
}
// Check that expiration is reasonable (after creation)
if didEntry.Exp.Before(didEntry.Created) {
return fmt.Errorf("DID %s has expiration before created timestamp", didEntry.Did)
}
// Check for reasonable deposit value
if didEntry.Deposit <= 0 {
return fmt.Errorf("DID %s has non-positive deposit value: %d", didEntry.Did, didEntry.Deposit)
}
}
return nil
}
// isValidDIDFormat performs a basic validation of DID format for genesis validation
func isValidDIDFormat(did string) bool {
// Basic check that it has 'did:' prefix and at least one more segment
// We'll use a simplified format validation for genesis
parts := 0
for i := 0; i < len(did); i++ {
if did[i] == ':' {
parts++
}
}
return len(did) >= 8 && did[0:4] == "did:" && parts >= 2
}
// SanitizeGenesisState sorts all DID entries to ensure deterministic ordering
func SanitizeGenesisState(genesisState *GenesisState) *GenesisState {
// Sort DID directories by DID to ensure deterministic ordering
sort.SliceStable(genesisState.DidDirectories, func(i, j int) bool {
return genesisState.DidDirectories[i].Did < genesisState.DidDirectories[j].Did
})
return genesisState
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/diddirectory/genesis.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the diddirectory module's genesis state.
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
DidDirectories []DIDDirectory `protobuf:"bytes,2,rep,name=did_directories,json=didDirectories,proto3" json:"did_directories"`
}
func (m *GenesisState) Reset() { *m = GenesisState{} }
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
func (*GenesisState) ProtoMessage() {}
func (*GenesisState) Descriptor() ([]byte, []int) {
return fileDescriptor_a9491e69f4382298, []int{0}
}
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GenesisState) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenesisState.Merge(m, src)
}
func (m *GenesisState) XXX_Size() int {
return m.Size()
}
func (m *GenesisState) XXX_DiscardUnknown() {
xxx_messageInfo_GenesisState.DiscardUnknown(m)
}
var xxx_messageInfo_GenesisState proto.InternalMessageInfo
func (m *GenesisState) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
func (m *GenesisState) GetDidDirectories() []DIDDirectory {
if m != nil {
return m.DidDirectories
}
return nil
}
func init() {
proto.RegisterType((*GenesisState)(nil), "veranablockchain.diddirectory.GenesisState")
}
func init() {
proto.RegisterFile("veranablockchain/diddirectory/genesis.proto", fileDescriptor_a9491e69f4382298)
}
var fileDescriptor_a9491e69f4382298 = []byte{
// 273 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x4f, 0xc9, 0x4c,
0x49, 0xc9, 0x2c, 0x4a, 0x4d, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce,
0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x45, 0x57, 0xac, 0x87, 0xac, 0x58, 0x4a,
0x30, 0x31, 0x37, 0x33, 0x2f, 0x5f, 0x1f, 0x4c, 0x42, 0x74, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7,
0x83, 0x99, 0xfa, 0x20, 0x16, 0x54, 0x54, 0x0b, 0xbf, 0xa5, 0x05, 0x89, 0x45, 0x89, 0xb9, 0x50,
0x3b, 0xa5, 0x34, 0xf1, 0xab, 0x2d, 0xa9, 0x2c, 0x48, 0x85, 0x2a, 0x55, 0xda, 0xc2, 0xc8, 0xc5,
0xe3, 0x0e, 0x71, 0x70, 0x70, 0x49, 0x62, 0x49, 0xaa, 0x90, 0x07, 0x17, 0x1b, 0xc4, 0x2c, 0x09,
0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x55, 0x3d, 0xbc, 0x1e, 0xd0, 0x0b, 0x00, 0x2b, 0x76, 0xe2,
0x3c, 0x71, 0x4f, 0x9e, 0x61, 0xc5, 0xf3, 0x0d, 0x5a, 0x8c, 0x41, 0x50, 0xfd, 0x42, 0x51, 0x5c,
0xfc, 0x29, 0x99, 0x29, 0xf1, 0x30, 0xa5, 0x99, 0xa9, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xdc,
0x46, 0xda, 0x04, 0x8c, 0x74, 0xf1, 0x74, 0x71, 0x81, 0x71, 0x9c, 0x58, 0x40, 0x06, 0x07, 0xf1,
0xa5, 0x64, 0xa6, 0xb8, 0x20, 0x0c, 0x72, 0x0a, 0x3f, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39,
0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63,
0x39, 0x86, 0x28, 0xdb, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x88,
0x35, 0xba, 0x39, 0x89, 0x49, 0xc5, 0x30, 0x36, 0x52, 0x98, 0x54, 0x60, 0x09, 0x95, 0x24, 0x36,
0x70, 0xb0, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x26, 0x64, 0x6c, 0xfe, 0xe4, 0x01, 0x00,
0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.DidDirectories) > 0 {
for iNdEx := len(m.DidDirectories) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.DidDirectories[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
offset -= sovGenesis(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *GenesisState) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovGenesis(uint64(l))
if len(m.DidDirectories) > 0 {
for _, e := range m.DidDirectories {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
return n
}
func sovGenesis(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozGenesis(x uint64) (n int) {
return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *GenesisState) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DidDirectories", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DidDirectories = append(m.DidDirectories, DIDDirectory{})
if err := m.DidDirectories[len(m.DidDirectories)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGenesis(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthGenesis
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupGenesis
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthGenesis
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
package types
import "cosmossdk.io/collections"
const (
// ModuleName defines the module name
ModuleName = "diddirectory"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_diddirectory"
)
var (
ParamsKey = []byte("p_diddirectory")
DIDDirectoryKey = collections.NewPrefix(1)
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
package types
import (
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var _ sdk.Msg = &MsgUpdateParams{}
// ValidateBasic does a sanity check on the provided data.
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errorsmod.Wrap(err, "invalid authority address")
}
if err := m.Params.Validate(); err != nil {
return err
}
return nil
}
package types
import (
"fmt"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
var _ paramtypes.ParamSet = (*Params)(nil)
const (
DefaultDidDirectoryTrustDeposit = uint64(5)
DefaultDidDirectoryGracePeriod = uint64(30)
)
// ParamKeyTable the param key table for launch module
func ParamKeyTable() paramtypes.KeyTable {
return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
// NewParams creates a new Params instance
func NewParams(trustDeposit, gracePeriod uint64) Params {
return Params{
DidDirectoryTrustDeposit: trustDeposit,
DidDirectoryGracePeriod: gracePeriod,
}
}
// DefaultParams returns a default set of parameters
func DefaultParams() Params {
return NewParams(
DefaultDidDirectoryTrustDeposit,
DefaultDidDirectoryGracePeriod,
)
}
// ParamSetPairs get the params.ParamSet
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{}
}
// Validate validates the set of params
// Validate validates the set of params
func (p Params) Validate() error {
if p.DidDirectoryTrustDeposit == 0 {
return fmt.Errorf("did directory trust deposit must be positive")
}
if p.DidDirectoryGracePeriod == 0 {
return fmt.Errorf("did directory grace period must be positive")
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/diddirectory/params.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the parameters for the module.
type Params struct {
DidDirectoryTrustDeposit uint64 `protobuf:"varint,1,opt,name=did_directory_trust_deposit,json=didDirectoryTrustDeposit,proto3" json:"did_directory_trust_deposit,omitempty" yaml:"did_directory_trust_deposit"`
DidDirectoryGracePeriod uint64 `protobuf:"varint,2,opt,name=did_directory_grace_period,json=didDirectoryGracePeriod,proto3" json:"did_directory_grace_period,omitempty" yaml:"did_directory_grace_period"`
}
func (m *Params) Reset() { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage() {}
func (*Params) Descriptor() ([]byte, []int) {
return fileDescriptor_cf14f2fc78c62258, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Params.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
xxx_messageInfo_Params.DiscardUnknown(m)
}
var xxx_messageInfo_Params proto.InternalMessageInfo
func (m *Params) GetDidDirectoryTrustDeposit() uint64 {
if m != nil {
return m.DidDirectoryTrustDeposit
}
return 0
}
func (m *Params) GetDidDirectoryGracePeriod() uint64 {
if m != nil {
return m.DidDirectoryGracePeriod
}
return 0
}
func init() {
proto.RegisterType((*Params)(nil), "veranablockchain.diddirectory.Params")
}
func init() {
proto.RegisterFile("veranablockchain/diddirectory/params.proto", fileDescriptor_cf14f2fc78c62258)
}
var fileDescriptor_cf14f2fc78c62258 = []byte{
// 297 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2a, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x4f, 0xc9, 0x4c,
0x49, 0xc9, 0x2c, 0x4a, 0x4d, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d,
0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x45, 0x57, 0xab, 0x87, 0xac, 0x56, 0x4a, 0x30,
0x31, 0x37, 0x33, 0x2f, 0x5f, 0x1f, 0x4c, 0x42, 0x74, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83,
0x99, 0xfa, 0x20, 0x16, 0x44, 0x54, 0xa9, 0x8f, 0x89, 0x8b, 0x2d, 0x00, 0x6c, 0xb0, 0x50, 0x16,
0x97, 0x74, 0x4a, 0x66, 0x4a, 0x3c, 0xdc, 0x90, 0xf8, 0x92, 0xa2, 0xd2, 0xe2, 0x92, 0xf8, 0x94,
0xd4, 0x82, 0xfc, 0xe2, 0xcc, 0x12, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x16, 0x27, 0xed, 0x4f, 0xf7,
0xe4, 0x95, 0x2a, 0x13, 0x73, 0x73, 0xac, 0x94, 0xf0, 0x28, 0x56, 0x5a, 0xf1, 0x7c, 0x83, 0x16,
0x63, 0x90, 0x44, 0x4a, 0x66, 0x8a, 0x0b, 0x4c, 0x45, 0x08, 0x48, 0x81, 0x0b, 0x44, 0x5e, 0x28,
0x9d, 0x4b, 0x0a, 0x55, 0x7b, 0x7a, 0x51, 0x62, 0x72, 0x6a, 0x7c, 0x41, 0x6a, 0x51, 0x66, 0x7e,
0x8a, 0x04, 0x13, 0xd8, 0x2a, 0xad, 0x4f, 0xf7, 0xe4, 0x15, 0xb1, 0x59, 0x85, 0xac, 0x16, 0x6a,
0x93, 0x38, 0xb2, 0x4d, 0xee, 0x20, 0xf9, 0x00, 0xb0, 0xb4, 0x95, 0xfe, 0x8b, 0x05, 0xf2, 0x8c,
0x5d, 0xcf, 0x37, 0x68, 0xa9, 0x61, 0x04, 0x6e, 0x05, 0x6a, 0xf0, 0x42, 0x42, 0xc1, 0x29, 0xfc,
0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e,
0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0x6c, 0xd3, 0x33, 0x4b, 0x32, 0x4a,
0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x21, 0x86, 0xe9, 0xe6, 0x24, 0x26, 0x15, 0xc3, 0xd8, 0xb8,
0x4d, 0x2e, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x07, 0xb8, 0x31, 0x20, 0x00, 0x00, 0xff,
0xff, 0xec, 0x5e, 0x26, 0x64, 0xe6, 0x01, 0x00, 0x00,
}
func (this *Params) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Params)
if !ok {
that2, ok := that.(Params)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.DidDirectoryTrustDeposit != that1.DidDirectoryTrustDeposit {
return false
}
if this.DidDirectoryGracePeriod != that1.DidDirectoryGracePeriod {
return false
}
return true
}
func (m *Params) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Params) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.DidDirectoryGracePeriod != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.DidDirectoryGracePeriod))
i--
dAtA[i] = 0x10
}
if m.DidDirectoryTrustDeposit != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.DidDirectoryTrustDeposit))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
offset -= sovParams(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Params) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.DidDirectoryTrustDeposit != 0 {
n += 1 + sovParams(uint64(m.DidDirectoryTrustDeposit))
}
if m.DidDirectoryGracePeriod != 0 {
n += 1 + sovParams(uint64(m.DidDirectoryGracePeriod))
}
return n
}
func sovParams(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field DidDirectoryTrustDeposit", wireType)
}
m.DidDirectoryTrustDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.DidDirectoryTrustDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field DidDirectoryGracePeriod", wireType)
}
m.DidDirectoryGracePeriod = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.DidDirectoryGracePeriod |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipParams(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthParams
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipParams(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthParams
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupParams
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthParams
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowParams = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/diddirectory/query.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/query"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
}
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryParamsRequest) ProtoMessage() {}
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b4c4a32fec548b8c, []int{0}
}
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
}
func (m *QueryParamsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryParamsResponse) ProtoMessage() {}
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b4c4a32fec548b8c, []int{1}
}
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
}
func (m *QueryParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
func (m *QueryParamsResponse) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
type QueryListDIDsRequest struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Changed *time.Time `protobuf:"bytes,2,opt,name=changed,proto3,stdtime" json:"changed,omitempty"`
Expired bool `protobuf:"varint,3,opt,name=expired,proto3" json:"expired,omitempty"`
OverGrace bool `protobuf:"varint,4,opt,name=over_grace,json=overGrace,proto3" json:"over_grace,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,5,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (m *QueryListDIDsRequest) Reset() { *m = QueryListDIDsRequest{} }
func (m *QueryListDIDsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryListDIDsRequest) ProtoMessage() {}
func (*QueryListDIDsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b4c4a32fec548b8c, []int{2}
}
func (m *QueryListDIDsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListDIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListDIDsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListDIDsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListDIDsRequest.Merge(m, src)
}
func (m *QueryListDIDsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryListDIDsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListDIDsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListDIDsRequest proto.InternalMessageInfo
func (m *QueryListDIDsRequest) GetAccount() string {
if m != nil {
return m.Account
}
return ""
}
func (m *QueryListDIDsRequest) GetChanged() *time.Time {
if m != nil {
return m.Changed
}
return nil
}
func (m *QueryListDIDsRequest) GetExpired() bool {
if m != nil {
return m.Expired
}
return false
}
func (m *QueryListDIDsRequest) GetOverGrace() bool {
if m != nil {
return m.OverGrace
}
return false
}
func (m *QueryListDIDsRequest) GetResponseMaxSize() uint32 {
if m != nil {
return m.ResponseMaxSize
}
return 0
}
type QueryListDIDsResponse struct {
Dids []DIDDirectory `protobuf:"bytes,1,rep,name=dids,proto3" json:"dids"`
}
func (m *QueryListDIDsResponse) Reset() { *m = QueryListDIDsResponse{} }
func (m *QueryListDIDsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryListDIDsResponse) ProtoMessage() {}
func (*QueryListDIDsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b4c4a32fec548b8c, []int{3}
}
func (m *QueryListDIDsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListDIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListDIDsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListDIDsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListDIDsResponse.Merge(m, src)
}
func (m *QueryListDIDsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryListDIDsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListDIDsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListDIDsResponse proto.InternalMessageInfo
func (m *QueryListDIDsResponse) GetDids() []DIDDirectory {
if m != nil {
return m.Dids
}
return nil
}
type QueryGetDIDRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
}
func (m *QueryGetDIDRequest) Reset() { *m = QueryGetDIDRequest{} }
func (m *QueryGetDIDRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetDIDRequest) ProtoMessage() {}
func (*QueryGetDIDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b4c4a32fec548b8c, []int{4}
}
func (m *QueryGetDIDRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetDIDRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetDIDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetDIDRequest.Merge(m, src)
}
func (m *QueryGetDIDRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetDIDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetDIDRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetDIDRequest proto.InternalMessageInfo
func (m *QueryGetDIDRequest) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
type QueryGetDIDResponse struct {
DidEntry DIDDirectory `protobuf:"bytes,1,opt,name=did_entry,json=didEntry,proto3" json:"did_entry"`
}
func (m *QueryGetDIDResponse) Reset() { *m = QueryGetDIDResponse{} }
func (m *QueryGetDIDResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetDIDResponse) ProtoMessage() {}
func (*QueryGetDIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b4c4a32fec548b8c, []int{5}
}
func (m *QueryGetDIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetDIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetDIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetDIDResponse.Merge(m, src)
}
func (m *QueryGetDIDResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetDIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetDIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetDIDResponse proto.InternalMessageInfo
func (m *QueryGetDIDResponse) GetDidEntry() DIDDirectory {
if m != nil {
return m.DidEntry
}
return DIDDirectory{}
}
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "veranablockchain.diddirectory.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "veranablockchain.diddirectory.QueryParamsResponse")
proto.RegisterType((*QueryListDIDsRequest)(nil), "veranablockchain.diddirectory.QueryListDIDsRequest")
proto.RegisterType((*QueryListDIDsResponse)(nil), "veranablockchain.diddirectory.QueryListDIDsResponse")
proto.RegisterType((*QueryGetDIDRequest)(nil), "veranablockchain.diddirectory.QueryGetDIDRequest")
proto.RegisterType((*QueryGetDIDResponse)(nil), "veranablockchain.diddirectory.QueryGetDIDResponse")
}
func init() {
proto.RegisterFile("veranablockchain/diddirectory/query.proto", fileDescriptor_b4c4a32fec548b8c)
}
var fileDescriptor_b4c4a32fec548b8c = []byte{
// 673 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6b, 0x13, 0x4f,
0x18, 0xce, 0x36, 0x6d, 0x9a, 0x4c, 0x29, 0x6d, 0xa7, 0x29, 0xec, 0x2f, 0xfc, 0x9a, 0x94, 0x05,
0x25, 0x56, 0xba, 0x43, 0x52, 0xaf, 0x0a, 0x86, 0x94, 0x5a, 0x50, 0xd1, 0xad, 0x20, 0x78, 0x30,
0x4c, 0x76, 0xc6, 0xed, 0x60, 0x76, 0x67, 0xbb, 0x33, 0x09, 0x49, 0xc5, 0x8b, 0x07, 0x41, 0x4f,
0x05, 0xbf, 0x84, 0xde, 0x3c, 0xf8, 0x21, 0x7a, 0x2c, 0x7a, 0xf1, 0x54, 0xa5, 0x15, 0x3c, 0xfa,
0x15, 0x64, 0x67, 0x67, 0xa0, 0xad, 0xd2, 0x3f, 0x5e, 0x96, 0x99, 0xf7, 0x7d, 0xde, 0xf7, 0x79,
0xe6, 0x79, 0x67, 0x07, 0x5c, 0x1b, 0xd0, 0x04, 0x47, 0xb8, 0xdb, 0xe3, 0xfe, 0x73, 0x7f, 0x0b,
0xb3, 0x08, 0x11, 0x46, 0x08, 0x4b, 0xa8, 0x2f, 0x79, 0x32, 0x42, 0xdb, 0x7d, 0x9a, 0x8c, 0xdc,
0x38, 0xe1, 0x92, 0xc3, 0xc5, 0xd3, 0x50, 0xf7, 0x38, 0xb4, 0x32, 0x87, 0x43, 0x16, 0x71, 0xa4,
0xbe, 0x59, 0x45, 0xa5, 0x1c, 0xf0, 0x80, 0xab, 0x25, 0x4a, 0x57, 0x3a, 0xfa, 0x7f, 0xc0, 0x79,
0xd0, 0xa3, 0x08, 0xc7, 0x0c, 0xe1, 0x28, 0xe2, 0x12, 0x4b, 0xc6, 0x23, 0xa1, 0xb3, 0xcb, 0x3e,
0x17, 0x21, 0x17, 0xa8, 0x8b, 0x05, 0xcd, 0xe8, 0xd1, 0xa0, 0xd1, 0xa5, 0x12, 0x37, 0x50, 0x8c,
0x03, 0x16, 0x29, 0xb0, 0xc1, 0x9e, 0x2d, 0x3e, 0xc6, 0x09, 0x0e, 0x4d, 0xdf, 0x9a, 0x66, 0x55,
0xbb, 0x6e, 0xff, 0x19, 0x92, 0x2c, 0xa4, 0x42, 0xe2, 0x30, 0xd6, 0x80, 0xff, 0x32, 0xe2, 0x4e,
0xa6, 0x37, 0xdb, 0xe8, 0xd4, 0x39, 0x26, 0xc9, 0x51, 0x4c, 0x35, 0xd4, 0x29, 0x03, 0xf8, 0x30,
0x15, 0xfd, 0x40, 0x71, 0x7b, 0x74, 0xbb, 0x4f, 0x85, 0x74, 0x3a, 0x60, 0xfe, 0x44, 0x54, 0xc4,
0x3c, 0x12, 0x14, 0xde, 0x01, 0x85, 0x4c, 0xa3, 0x6d, 0x2d, 0x59, 0xf5, 0xa9, 0xe6, 0x15, 0xf7,
0x4c, 0x8b, 0xdd, 0xac, 0xbc, 0x55, 0xda, 0x3b, 0xa8, 0xe5, 0xde, 0xff, 0xfc, 0xb8, 0x6c, 0x79,
0xba, 0xde, 0xf9, 0x65, 0x81, 0xb2, 0x62, 0xb8, 0xcb, 0x84, 0x6c, 0x6f, 0xb4, 0x0d, 0x33, 0x6c,
0x82, 0x49, 0xec, 0xfb, 0xbc, 0x1f, 0x49, 0xc5, 0x51, 0x6a, 0xd9, 0x9f, 0x3f, 0xad, 0x94, 0xf5,
0xe9, 0x6e, 0x13, 0x92, 0x50, 0x21, 0x36, 0x65, 0xc2, 0xa2, 0xc0, 0x33, 0x40, 0x78, 0x0b, 0x4c,
0xfa, 0x5b, 0x38, 0x0a, 0x28, 0xb1, 0xc7, 0x94, 0xae, 0x8a, 0x9b, 0x99, 0xe7, 0x1a, 0xf3, 0xdc,
0x47, 0xc6, 0xbc, 0x56, 0x71, 0xef, 0xa0, 0x66, 0xed, 0x7e, 0xab, 0x59, 0x9e, 0x29, 0x82, 0x36,
0x98, 0xa4, 0xc3, 0x98, 0x25, 0x94, 0xd8, 0xf9, 0x25, 0xab, 0x5e, 0xf4, 0xcc, 0x16, 0x2e, 0x02,
0xc0, 0x07, 0x34, 0xe9, 0x04, 0x09, 0xf6, 0xa9, 0x3d, 0xae, 0x92, 0xa5, 0x34, 0xb2, 0x9e, 0x06,
0xe0, 0x32, 0x98, 0x4b, 0xb4, 0x37, 0x9d, 0x10, 0x0f, 0x3b, 0x82, 0xed, 0x50, 0x7b, 0x62, 0xc9,
0xaa, 0x4f, 0x7b, 0x33, 0x26, 0x71, 0x0f, 0x0f, 0x37, 0xd9, 0x0e, 0x75, 0x9e, 0x82, 0x85, 0x53,
0x07, 0xd6, 0xa6, 0xae, 0x81, 0x71, 0xc2, 0x48, 0x6a, 0x69, 0xbe, 0x3e, 0xd5, 0xbc, 0x7e, 0x8e,
0xa5, 0xed, 0x8d, 0x76, 0xdb, 0x6c, 0x5a, 0xe3, 0xa9, 0xb1, 0x9e, 0x2a, 0x77, 0xae, 0xea, 0x41,
0xae, 0xd3, 0xb4, 0xbd, 0xb1, 0x73, 0x16, 0xe4, 0x09, 0x23, 0x99, 0x95, 0x5e, 0xba, 0x74, 0xa8,
0x1e, 0xad, 0xc1, 0x69, 0x15, 0xf7, 0x41, 0x89, 0x30, 0xd2, 0xa1, 0x91, 0x4c, 0x46, 0x7a, 0xba,
0xff, 0x20, 0xa5, 0x48, 0x18, 0x59, 0x4b, 0x5b, 0x34, 0x3f, 0xe4, 0xc1, 0x84, 0xe2, 0x81, 0xaf,
0x2d, 0x50, 0xc8, 0x2e, 0x02, 0x6c, 0x9c, 0xd3, 0xf1, 0xcf, 0x9b, 0x58, 0x69, 0x5e, 0xa6, 0x24,
0x3b, 0x8b, 0xb3, 0xf0, 0xea, 0xcb, 0x8f, 0x77, 0x63, 0x33, 0x70, 0x1a, 0x11, 0x82, 0x06, 0x0d,
0xfd, 0x5f, 0xc1, 0xb7, 0x16, 0x28, 0x1a, 0xf7, 0xe1, 0xea, 0x45, 0xfa, 0x9e, 0xba, 0x9c, 0x95,
0x1b, 0x97, 0x2b, 0xd2, 0x72, 0xe6, 0x95, 0x9c, 0x69, 0x38, 0xa5, 0xe5, 0xf4, 0x98, 0x90, 0xf0,
0x8d, 0x05, 0x0a, 0xd9, 0x08, 0x2e, 0xe6, 0xca, 0x89, 0xb1, 0x5e, 0xcc, 0x95, 0x93, 0x13, 0x76,
0x6c, 0x25, 0x03, 0xc2, 0x59, 0x2d, 0x23, 0xa0, 0x12, 0xbd, 0x20, 0x8c, 0xbc, 0x6c, 0x3d, 0xde,
0x3b, 0xac, 0x5a, 0xfb, 0x87, 0x55, 0xeb, 0xfb, 0x61, 0xd5, 0xda, 0x3d, 0xaa, 0xe6, 0xf6, 0x8f,
0xaa, 0xb9, 0xaf, 0x47, 0xd5, 0xdc, 0x93, 0x9b, 0x01, 0x93, 0x5b, 0xfd, 0xae, 0xeb, 0xf3, 0x10,
0x65, 0x8c, 0x2b, 0x3d, 0xdc, 0x15, 0x66, 0x7d, 0xec, 0x81, 0x19, 0xfe, 0xe5, 0x89, 0xe9, 0x16,
0xd4, 0xff, 0xb7, 0xfa, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x15, 0xd9, 0xcb, 0xb5, 0x05, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
ListDIDs(ctx context.Context, in *QueryListDIDsRequest, opts ...grpc.CallOption) (*QueryListDIDsResponse, error)
GetDID(ctx context.Context, in *QueryGetDIDRequest, opts ...grpc.CallOption) (*QueryGetDIDResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListDIDs(ctx context.Context, in *QueryListDIDsRequest, opts ...grpc.CallOption) (*QueryListDIDsResponse, error) {
out := new(QueryListDIDsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Query/ListDIDs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetDID(ctx context.Context, in *QueryGetDIDRequest, opts ...grpc.CallOption) (*QueryGetDIDResponse, error) {
out := new(QueryGetDIDResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Query/GetDID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
ListDIDs(context.Context, *QueryListDIDsRequest) (*QueryListDIDsResponse, error)
GetDID(context.Context, *QueryGetDIDRequest) (*QueryGetDIDResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (*UnimplementedQueryServer) ListDIDs(ctx context.Context, req *QueryListDIDsRequest) (*QueryListDIDsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListDIDs not implemented")
}
func (*UnimplementedQueryServer) GetDID(ctx context.Context, req *QueryGetDIDRequest) (*QueryGetDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDID not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListDIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListDIDsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListDIDs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Query/ListDIDs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListDIDs(ctx, req.(*QueryListDIDsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetDIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Query/GetDID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetDID(ctx, req.(*QueryGetDIDRequest))
}
return interceptor(ctx, in, info, handler)
}
var Query_serviceDesc = _Query_serviceDesc
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.diddirectory.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListDIDs",
Handler: _Query_ListDIDs_Handler,
},
{
MethodName: "GetDID",
Handler: _Query_GetDID_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/diddirectory/query.proto",
}
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryListDIDsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListDIDsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListDIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ResponseMaxSize != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.ResponseMaxSize))
i--
dAtA[i] = 0x28
}
if m.OverGrace {
i--
if m.OverGrace {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x20
}
if m.Expired {
i--
if m.Expired {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if m.Changed != nil {
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Changed, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Changed):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintQuery(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x12
}
if len(m.Account) > 0 {
i -= len(m.Account)
copy(dAtA[i:], m.Account)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Account)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryListDIDsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListDIDsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListDIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Dids) > 0 {
for iNdEx := len(m.Dids) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Dids[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *QueryGetDIDRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetDIDRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryGetDIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetDIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.DidEntry.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *QueryParamsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryListDIDsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Account)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
if m.Changed != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Changed)
n += 1 + l + sovQuery(uint64(l))
}
if m.Expired {
n += 2
}
if m.OverGrace {
n += 2
}
if m.ResponseMaxSize != 0 {
n += 1 + sovQuery(uint64(m.ResponseMaxSize))
}
return n
}
func (m *QueryListDIDsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Dids) > 0 {
for _, e := range m.Dids {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func (m *QueryGetDIDRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Did)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryGetDIDResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.DidEntry.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func sovQuery(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQuery(x uint64) (n int) {
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListDIDsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListDIDsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListDIDsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Changed", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Changed == nil {
m.Changed = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Changed, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Expired", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.Expired = bool(v != 0)
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field OverGrace", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.OverGrace = bool(v != 0)
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
m.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListDIDsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListDIDsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListDIDsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Dids", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Dids = append(m.Dids, DIDDirectory{})
if err := m.Dids[len(m.Dids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetDIDRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetDIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetDIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetDIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DidEntry", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.DidEntry.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQuery(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthQuery
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupQuery
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthQuery
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: veranablockchain/diddirectory/query.proto
/*
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package types
import (
"context"
"io"
"net/http"
"github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/proto"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/utilities"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = descriptor.ForMessage
var _ = metadata.Join
func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := server.Params(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_ListDIDs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_ListDIDs_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListDIDsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListDIDs_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.ListDIDs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_ListDIDs_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListDIDsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListDIDs_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.ListDIDs(ctx, &protoReq)
return msg, metadata, err
}
func request_Query_GetDID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetDIDRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["did"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "did")
}
protoReq.Did, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "did", err)
}
msg, err := client.GetDID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetDID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetDIDRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["did"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "did")
}
protoReq.Did, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "did", err)
}
msg, err := server.GetDID(ctx, &protoReq)
return msg, metadata, err
}
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
// UnaryRPC :call QueryServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListDIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_ListDIDs_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListDIDs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetDID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetDID_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetDID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
conn, err := grpc.Dial(endpoint, opts...)
if err != nil {
return err
}
defer func() {
if err != nil {
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
}()
}()
return RegisterQueryHandler(ctx, mux, conn)
}
// RegisterQueryHandler registers the http handlers for service Query to "mux".
// The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn))
}
// RegisterQueryHandlerClient registers the http handlers for service Query
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient".
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient"
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListDIDs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_ListDIDs_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListDIDs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetDID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetDID_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetDID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
var (
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"dd", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_ListDIDs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"dd", "v1", "list"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetDID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"dd", "v1", "get", "did"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
forward_Query_Params_0 = runtime.ForwardResponseMessage
forward_Query_ListDIDs_0 = runtime.ForwardResponseMessage
forward_Query_GetDID_0 = runtime.ForwardResponseMessage
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/diddirectory/tx.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParams) ProtoMessage() {}
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{0}
}
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParams.Merge(m, src)
}
func (m *MsgUpdateParams) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
func (m *MsgUpdateParams) GetAuthority() string {
if m != nil {
return m.Authority
}
return ""
}
func (m *MsgUpdateParams) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
}
func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParamsResponse) ProtoMessage() {}
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{1}
}
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
}
func (m *MsgUpdateParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
// MsgAddDID defines the Msg/AddDID request type
type MsgAddDID struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Years uint32 `protobuf:"varint,3,opt,name=years,proto3" json:"years,omitempty"`
}
func (m *MsgAddDID) Reset() { *m = MsgAddDID{} }
func (m *MsgAddDID) String() string { return proto.CompactTextString(m) }
func (*MsgAddDID) ProtoMessage() {}
func (*MsgAddDID) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{2}
}
func (m *MsgAddDID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddDID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddDID.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgAddDID) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddDID.Merge(m, src)
}
func (m *MsgAddDID) XXX_Size() int {
return m.Size()
}
func (m *MsgAddDID) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddDID.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddDID proto.InternalMessageInfo
func (m *MsgAddDID) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgAddDID) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *MsgAddDID) GetYears() uint32 {
if m != nil {
return m.Years
}
return 0
}
// MsgAddDIDResponse defines the Msg/AddDID response type
type MsgAddDIDResponse struct {
}
func (m *MsgAddDIDResponse) Reset() { *m = MsgAddDIDResponse{} }
func (m *MsgAddDIDResponse) String() string { return proto.CompactTextString(m) }
func (*MsgAddDIDResponse) ProtoMessage() {}
func (*MsgAddDIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{3}
}
func (m *MsgAddDIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddDIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgAddDIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddDIDResponse.Merge(m, src)
}
func (m *MsgAddDIDResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgAddDIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddDIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddDIDResponse proto.InternalMessageInfo
// MsgRenewDID defines the Msg/RenewDID request type
type MsgRenewDID struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Years uint32 `protobuf:"varint,3,opt,name=years,proto3" json:"years,omitempty"`
}
func (m *MsgRenewDID) Reset() { *m = MsgRenewDID{} }
func (m *MsgRenewDID) String() string { return proto.CompactTextString(m) }
func (*MsgRenewDID) ProtoMessage() {}
func (*MsgRenewDID) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{4}
}
func (m *MsgRenewDID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRenewDID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRenewDID.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRenewDID) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRenewDID.Merge(m, src)
}
func (m *MsgRenewDID) XXX_Size() int {
return m.Size()
}
func (m *MsgRenewDID) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRenewDID.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRenewDID proto.InternalMessageInfo
func (m *MsgRenewDID) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgRenewDID) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *MsgRenewDID) GetYears() uint32 {
if m != nil {
return m.Years
}
return 0
}
// MsgRenewDIDResponse defines the Msg/RenewDID response type
type MsgRenewDIDResponse struct {
}
func (m *MsgRenewDIDResponse) Reset() { *m = MsgRenewDIDResponse{} }
func (m *MsgRenewDIDResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRenewDIDResponse) ProtoMessage() {}
func (*MsgRenewDIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{5}
}
func (m *MsgRenewDIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRenewDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRenewDIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRenewDIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRenewDIDResponse.Merge(m, src)
}
func (m *MsgRenewDIDResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRenewDIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRenewDIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRenewDIDResponse proto.InternalMessageInfo
// MsgRemoveDID defines the Msg/RemoveDID request type
type MsgRemoveDID struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
}
func (m *MsgRemoveDID) Reset() { *m = MsgRemoveDID{} }
func (m *MsgRemoveDID) String() string { return proto.CompactTextString(m) }
func (*MsgRemoveDID) ProtoMessage() {}
func (*MsgRemoveDID) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{6}
}
func (m *MsgRemoveDID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemoveDID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemoveDID.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRemoveDID) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemoveDID.Merge(m, src)
}
func (m *MsgRemoveDID) XXX_Size() int {
return m.Size()
}
func (m *MsgRemoveDID) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemoveDID.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemoveDID proto.InternalMessageInfo
func (m *MsgRemoveDID) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgRemoveDID) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
// MsgRemoveDIDResponse defines the Msg/RemoveDID response type
type MsgRemoveDIDResponse struct {
}
func (m *MsgRemoveDIDResponse) Reset() { *m = MsgRemoveDIDResponse{} }
func (m *MsgRemoveDIDResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRemoveDIDResponse) ProtoMessage() {}
func (*MsgRemoveDIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{7}
}
func (m *MsgRemoveDIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRemoveDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRemoveDIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRemoveDIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRemoveDIDResponse.Merge(m, src)
}
func (m *MsgRemoveDIDResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRemoveDIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRemoveDIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRemoveDIDResponse proto.InternalMessageInfo
// MsgTouchDID defines the Msg/TouchDID request type
type MsgTouchDID struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
}
func (m *MsgTouchDID) Reset() { *m = MsgTouchDID{} }
func (m *MsgTouchDID) String() string { return proto.CompactTextString(m) }
func (*MsgTouchDID) ProtoMessage() {}
func (*MsgTouchDID) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{8}
}
func (m *MsgTouchDID) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgTouchDID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgTouchDID.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgTouchDID) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgTouchDID.Merge(m, src)
}
func (m *MsgTouchDID) XXX_Size() int {
return m.Size()
}
func (m *MsgTouchDID) XXX_DiscardUnknown() {
xxx_messageInfo_MsgTouchDID.DiscardUnknown(m)
}
var xxx_messageInfo_MsgTouchDID proto.InternalMessageInfo
func (m *MsgTouchDID) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgTouchDID) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
// MsgTouchDIDResponse defines the Msg/TouchDID response type
type MsgTouchDIDResponse struct {
}
func (m *MsgTouchDIDResponse) Reset() { *m = MsgTouchDIDResponse{} }
func (m *MsgTouchDIDResponse) String() string { return proto.CompactTextString(m) }
func (*MsgTouchDIDResponse) ProtoMessage() {}
func (*MsgTouchDIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9c1e23adbdadb85e, []int{9}
}
func (m *MsgTouchDIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgTouchDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgTouchDIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgTouchDIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgTouchDIDResponse.Merge(m, src)
}
func (m *MsgTouchDIDResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgTouchDIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgTouchDIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgTouchDIDResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgUpdateParams)(nil), "veranablockchain.diddirectory.MsgUpdateParams")
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "veranablockchain.diddirectory.MsgUpdateParamsResponse")
proto.RegisterType((*MsgAddDID)(nil), "veranablockchain.diddirectory.MsgAddDID")
proto.RegisterType((*MsgAddDIDResponse)(nil), "veranablockchain.diddirectory.MsgAddDIDResponse")
proto.RegisterType((*MsgRenewDID)(nil), "veranablockchain.diddirectory.MsgRenewDID")
proto.RegisterType((*MsgRenewDIDResponse)(nil), "veranablockchain.diddirectory.MsgRenewDIDResponse")
proto.RegisterType((*MsgRemoveDID)(nil), "veranablockchain.diddirectory.MsgRemoveDID")
proto.RegisterType((*MsgRemoveDIDResponse)(nil), "veranablockchain.diddirectory.MsgRemoveDIDResponse")
proto.RegisterType((*MsgTouchDID)(nil), "veranablockchain.diddirectory.MsgTouchDID")
proto.RegisterType((*MsgTouchDIDResponse)(nil), "veranablockchain.diddirectory.MsgTouchDIDResponse")
}
func init() {
proto.RegisterFile("veranablockchain/diddirectory/tx.proto", fileDescriptor_9c1e23adbdadb85e)
}
var fileDescriptor_9c1e23adbdadb85e = []byte{
// 552 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
0x10, 0x8d, 0x29, 0x0d, 0x78, 0x1a, 0x04, 0x75, 0x03, 0x4d, 0x2d, 0x61, 0xa2, 0x48, 0xa0, 0xc8,
0xa8, 0x36, 0xa4, 0x52, 0x0f, 0x95, 0x38, 0x34, 0xea, 0x01, 0x0e, 0x91, 0x90, 0x01, 0x21, 0x71,
0x41, 0x6b, 0xef, 0xca, 0x31, 0xd4, 0x5e, 0x6b, 0x77, 0x93, 0x36, 0x37, 0xc4, 0x91, 0x13, 0x3f,
0x83, 0x63, 0x90, 0xf8, 0x11, 0x3d, 0x56, 0x5c, 0xe0, 0x84, 0x50, 0x72, 0xc8, 0xdf, 0x40, 0xfe,
0x4c, 0x6a, 0x44, 0xe3, 0x4a, 0xc0, 0x25, 0xd9, 0x9d, 0x79, 0x33, 0x6f, 0xde, 0xea, 0x79, 0xe0,
0xde, 0x90, 0x30, 0x14, 0x20, 0xfb, 0x90, 0x3a, 0x6f, 0x9d, 0x3e, 0xf2, 0x02, 0x13, 0x7b, 0x18,
0x7b, 0x8c, 0x38, 0x82, 0xb2, 0x91, 0x29, 0x8e, 0x8d, 0x90, 0x51, 0x41, 0x95, 0xdb, 0x45, 0x9c,
0xb1, 0x88, 0x53, 0xd7, 0x91, 0xef, 0x05, 0xd4, 0x8c, 0x7f, 0x93, 0x0a, 0x75, 0xd3, 0xa1, 0xdc,
0xa7, 0xdc, 0xf4, 0xb9, 0x6b, 0x0e, 0x1f, 0x46, 0x7f, 0x69, 0x62, 0x2b, 0x49, 0xbc, 0x8e, 0x6f,
0x66, 0x72, 0x49, 0x53, 0x75, 0x97, 0xba, 0x34, 0x89, 0x47, 0xa7, 0x34, 0xaa, 0x9f, 0x3f, 0x63,
0x88, 0x18, 0xf2, 0xd3, 0x0e, 0xad, 0x6f, 0x12, 0x5c, 0xef, 0x71, 0xf7, 0x45, 0x88, 0x91, 0x20,
0x4f, 0xe3, 0x8c, 0xb2, 0x0b, 0x32, 0x1a, 0x88, 0x3e, 0x65, 0x9e, 0x18, 0x35, 0xa4, 0xa6, 0xd4,
0x96, 0xbb, 0x8d, 0xaf, 0x5f, 0xb6, 0xeb, 0x29, 0xf5, 0x3e, 0xc6, 0x8c, 0x70, 0xfe, 0x4c, 0x30,
0x2f, 0x70, 0xad, 0x39, 0x54, 0x79, 0x0c, 0xd5, 0xa4, 0x77, 0xe3, 0x52, 0x53, 0x6a, 0xaf, 0x75,
0xee, 0x1a, 0xe7, 0x3e, 0x82, 0x91, 0xd0, 0x75, 0xe5, 0x93, 0x1f, 0x77, 0x2a, 0x9f, 0x66, 0x63,
0x5d, 0xb2, 0xd2, 0xfa, 0xbd, 0xee, 0xfb, 0xd9, 0x58, 0x9f, 0x77, 0xfe, 0x30, 0x1b, 0xeb, 0xe6,
0x6f, 0xa2, 0x8e, 0xcf, 0xca, 0x2a, 0xa8, 0x68, 0x6d, 0xc1, 0x66, 0x21, 0x64, 0x11, 0x1e, 0xd2,
0x80, 0x93, 0xd6, 0x00, 0xe4, 0x1e, 0x77, 0xf7, 0x31, 0x3e, 0x78, 0x72, 0xa0, 0x74, 0xe0, 0x8a,
0xc3, 0x08, 0x12, 0x94, 0x2d, 0xd5, 0x9a, 0x01, 0x95, 0x1b, 0xb0, 0x82, 0x3d, 0x1c, 0xcb, 0x94,
0xad, 0xe8, 0xa8, 0xd4, 0x61, 0x75, 0x44, 0x10, 0xe3, 0x8d, 0x95, 0xa6, 0xd4, 0xbe, 0x66, 0x25,
0x97, 0xbd, 0x5a, 0xa4, 0x23, 0xab, 0x6a, 0x6d, 0xc0, 0x7a, 0x4e, 0x9b, 0xcf, 0x72, 0x04, 0x6b,
0x3d, 0xee, 0x5a, 0x24, 0x20, 0x47, 0xff, 0x77, 0x9a, 0x9b, 0xb0, 0xb1, 0x40, 0x9c, 0xcf, 0x63,
0x43, 0x2d, 0x0e, 0xfb, 0x74, 0x48, 0xfe, 0xda, 0x40, 0x05, 0xea, 0x5b, 0x50, 0x5f, 0xe4, 0xc8,
0xb9, 0x51, 0xfc, 0x16, 0xcf, 0xe9, 0xc0, 0xe9, 0xff, 0x2b, 0xea, 0x44, 0x75, 0x46, 0x91, 0x31,
0x77, 0x3e, 0x5f, 0x86, 0x95, 0x1e, 0x77, 0x95, 0x21, 0xd4, 0xce, 0x7c, 0x0a, 0xc6, 0x12, 0x0b,
0x17, 0x1c, 0xa6, 0xee, 0x5e, 0x0c, 0x9f, 0xf1, 0x2b, 0x18, 0xaa, 0xa9, 0x1d, 0xdb, 0xcb, 0x3b,
0x24, 0x48, 0xf5, 0x41, 0x59, 0x64, 0xce, 0xf2, 0x06, 0xae, 0xe6, 0x46, 0xd3, 0x97, 0x57, 0x67,
0x58, 0xb5, 0x53, 0x1e, 0x9b, 0x73, 0xf9, 0x20, 0xcf, 0x4d, 0x74, 0xbf, 0x4c, 0x83, 0x14, 0xac,
0xee, 0x5c, 0x00, 0xbc, 0x28, 0x2d, 0xf7, 0x4d, 0x09, 0x69, 0x19, 0xb6, 0x8c, 0xb4, 0xa2, 0x59,
0xd4, 0xd5, 0x77, 0xd1, 0xb2, 0xea, 0xbe, 0x3c, 0x99, 0x68, 0xd2, 0xe9, 0x44, 0x93, 0x7e, 0x4e,
0x34, 0xe9, 0xe3, 0x54, 0xab, 0x9c, 0x4e, 0xb5, 0xca, 0xf7, 0xa9, 0x56, 0x79, 0xf5, 0xc8, 0xf5,
0x44, 0x7f, 0x60, 0x1b, 0x0e, 0xf5, 0xd3, 0xb5, 0xb5, 0x7d, 0x88, 0x6c, 0x9e, 0x9d, 0xff, 0xbc,
0xc3, 0xc4, 0x28, 0x24, 0xdc, 0xae, 0xc6, 0xab, 0x79, 0xe7, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff,
0x40, 0x1b, 0x58, 0x92, 0x6c, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
AddDID(ctx context.Context, in *MsgAddDID, opts ...grpc.CallOption) (*MsgAddDIDResponse, error)
RenewDID(ctx context.Context, in *MsgRenewDID, opts ...grpc.CallOption) (*MsgRenewDIDResponse, error)
RemoveDID(ctx context.Context, in *MsgRemoveDID, opts ...grpc.CallOption) (*MsgRemoveDIDResponse, error)
TouchDID(ctx context.Context, in *MsgTouchDID, opts ...grpc.CallOption) (*MsgTouchDIDResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Msg/UpdateParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) AddDID(ctx context.Context, in *MsgAddDID, opts ...grpc.CallOption) (*MsgAddDIDResponse, error) {
out := new(MsgAddDIDResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Msg/AddDID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RenewDID(ctx context.Context, in *MsgRenewDID, opts ...grpc.CallOption) (*MsgRenewDIDResponse, error) {
out := new(MsgRenewDIDResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Msg/RenewDID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RemoveDID(ctx context.Context, in *MsgRemoveDID, opts ...grpc.CallOption) (*MsgRemoveDIDResponse, error) {
out := new(MsgRemoveDIDResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Msg/RemoveDID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) TouchDID(ctx context.Context, in *MsgTouchDID, opts ...grpc.CallOption) (*MsgTouchDIDResponse, error) {
out := new(MsgTouchDIDResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.diddirectory.Msg/TouchDID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
AddDID(context.Context, *MsgAddDID) (*MsgAddDIDResponse, error)
RenewDID(context.Context, *MsgRenewDID) (*MsgRenewDIDResponse, error)
RemoveDID(context.Context, *MsgRemoveDID) (*MsgRemoveDIDResponse, error)
TouchDID(context.Context, *MsgTouchDID) (*MsgTouchDIDResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (*UnimplementedMsgServer) AddDID(ctx context.Context, req *MsgAddDID) (*MsgAddDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddDID not implemented")
}
func (*UnimplementedMsgServer) RenewDID(ctx context.Context, req *MsgRenewDID) (*MsgRenewDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenewDID not implemented")
}
func (*UnimplementedMsgServer) RemoveDID(ctx context.Context, req *MsgRemoveDID) (*MsgRemoveDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveDID not implemented")
}
func (*UnimplementedMsgServer) TouchDID(ctx context.Context, req *MsgTouchDID) (*MsgTouchDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TouchDID not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Msg/UpdateParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_AddDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgAddDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AddDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Msg/AddDID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AddDID(ctx, req.(*MsgAddDID))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RenewDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRenewDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RenewDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Msg/RenewDID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RenewDID(ctx, req.(*MsgRenewDID))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RemoveDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRemoveDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RemoveDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Msg/RemoveDID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RemoveDID(ctx, req.(*MsgRemoveDID))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_TouchDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgTouchDID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).TouchDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.diddirectory.Msg/TouchDID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).TouchDID(ctx, req.(*MsgTouchDID))
}
return interceptor(ctx, in, info, handler)
}
var Msg_serviceDesc = _Msg_serviceDesc
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.diddirectory.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "AddDID",
Handler: _Msg_AddDID_Handler,
},
{
MethodName: "RenewDID",
Handler: _Msg_RenewDID_Handler,
},
{
MethodName: "RemoveDID",
Handler: _Msg_RemoveDID_Handler,
},
{
MethodName: "TouchDID",
Handler: _Msg_TouchDID_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/diddirectory/tx.proto",
}
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
if len(m.Authority) > 0 {
i -= len(m.Authority)
copy(dAtA[i:], m.Authority)
i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgAddDID) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgAddDID) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgAddDID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Years != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Years))
i--
dAtA[i] = 0x18
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgAddDIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgAddDIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgAddDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgRenewDID) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRenewDID) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRenewDID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Years != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Years))
i--
dAtA[i] = 0x18
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgRenewDIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRenewDIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRenewDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgRemoveDID) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRemoveDID) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRemoveDID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgRemoveDIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRemoveDIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRemoveDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgTouchDID) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgTouchDID) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgTouchDID) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgTouchDIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgTouchDIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgTouchDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgUpdateParams) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Authority)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = m.Params.Size()
n += 1 + l + sovTx(uint64(l))
return n
}
func (m *MsgUpdateParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgAddDID) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Years != 0 {
n += 1 + sovTx(uint64(m.Years))
}
return n
}
func (m *MsgAddDIDResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgRenewDID) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Years != 0 {
n += 1 + sovTx(uint64(m.Years))
}
return n
}
func (m *MsgRenewDIDResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgRemoveDID) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgRemoveDIDResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgTouchDID) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgTouchDIDResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgAddDID) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgAddDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgAddDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Years", wireType)
}
m.Years = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Years |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgAddDIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgAddDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgAddDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRenewDID) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRenewDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRenewDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Years", wireType)
}
m.Years = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Years |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRenewDIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRenewDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRenewDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRemoveDID) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRemoveDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRemoveDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRemoveDIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRemoveDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRemoveDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgTouchDID) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgTouchDID: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgTouchDID: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgTouchDIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgTouchDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgTouchDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/diddirectory/types.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Core DIDDirectory type
type DIDDirectory struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"`
Created time.Time `protobuf:"bytes,3,opt,name=created,proto3,stdtime" json:"created"`
Modified time.Time `protobuf:"bytes,4,opt,name=modified,proto3,stdtime" json:"modified"`
Exp time.Time `protobuf:"bytes,5,opt,name=exp,proto3,stdtime" json:"exp"`
Deposit int64 `protobuf:"varint,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
}
func (m *DIDDirectory) Reset() { *m = DIDDirectory{} }
func (m *DIDDirectory) String() string { return proto.CompactTextString(m) }
func (*DIDDirectory) ProtoMessage() {}
func (*DIDDirectory) Descriptor() ([]byte, []int) {
return fileDescriptor_6922afb1243d7e9d, []int{0}
}
func (m *DIDDirectory) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DIDDirectory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DIDDirectory.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DIDDirectory) XXX_Merge(src proto.Message) {
xxx_messageInfo_DIDDirectory.Merge(m, src)
}
func (m *DIDDirectory) XXX_Size() int {
return m.Size()
}
func (m *DIDDirectory) XXX_DiscardUnknown() {
xxx_messageInfo_DIDDirectory.DiscardUnknown(m)
}
var xxx_messageInfo_DIDDirectory proto.InternalMessageInfo
func (m *DIDDirectory) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *DIDDirectory) GetController() string {
if m != nil {
return m.Controller
}
return ""
}
func (m *DIDDirectory) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *DIDDirectory) GetModified() time.Time {
if m != nil {
return m.Modified
}
return time.Time{}
}
func (m *DIDDirectory) GetExp() time.Time {
if m != nil {
return m.Exp
}
return time.Time{}
}
func (m *DIDDirectory) GetDeposit() int64 {
if m != nil {
return m.Deposit
}
return 0
}
func init() {
proto.RegisterType((*DIDDirectory)(nil), "veranablockchain.diddirectory.DIDDirectory")
}
func init() {
proto.RegisterFile("veranablockchain/diddirectory/types.proto", fileDescriptor_6922afb1243d7e9d)
}
var fileDescriptor_6922afb1243d7e9d = []byte{
// 353 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0xcd, 0x36, 0xda, 0xd6, 0xd5, 0x83, 0x86, 0x1e, 0xd6, 0x82, 0x69, 0xf1, 0x54, 0x0f, 0x4d,
0x40, 0x41, 0xbc, 0x28, 0x5a, 0x7a, 0xf1, 0x1a, 0x05, 0xc1, 0x8b, 0x24, 0xbb, 0xdb, 0x74, 0x31,
0xc9, 0x84, 0xdd, 0xad, 0xb4, 0x7f, 0xd1, 0x2f, 0xf1, 0xe4, 0x47, 0xf4, 0x58, 0x3c, 0x79, 0x52,
0x69, 0x7f, 0x44, 0x92, 0x34, 0x52, 0xc4, 0x4b, 0x2f, 0xcb, 0x7b, 0x33, 0xef, 0xed, 0x3c, 0x98,
0xc1, 0x27, 0x2f, 0x5c, 0xfa, 0x89, 0x1f, 0x44, 0x40, 0x9f, 0xe9, 0xd0, 0x17, 0x89, 0xcb, 0x04,
0x63, 0x42, 0x72, 0xaa, 0x41, 0x4e, 0x5c, 0x3d, 0x49, 0xb9, 0x72, 0x52, 0x09, 0x1a, 0xac, 0xa3,
0xbf, 0x52, 0x67, 0x5d, 0xda, 0x3c, 0xf0, 0x63, 0x91, 0x80, 0x9b, 0xbf, 0x85, 0xa3, 0x79, 0x48,
0x41, 0xc5, 0xa0, 0x9e, 0x72, 0xe6, 0x16, 0x64, 0xd5, 0x6a, 0x84, 0x10, 0x42, 0x51, 0xcf, 0xd0,
0xaa, 0xda, 0x0a, 0x01, 0xc2, 0x88, 0xbb, 0x39, 0x0b, 0x46, 0x03, 0x57, 0x8b, 0x98, 0x2b, 0xed,
0xc7, 0x69, 0x21, 0x38, 0x7e, 0xad, 0xe0, 0xbd, 0xfe, 0x6d, 0xbf, 0x5f, 0x4e, 0xb5, 0xf6, 0xb1,
0xc9, 0x04, 0x23, 0xa8, 0x8d, 0x3a, 0x3b, 0x5e, 0x06, 0xad, 0x0b, 0x8c, 0x29, 0x24, 0x5a, 0x42,
0x14, 0x71, 0x49, 0x2a, 0x59, 0xa3, 0x47, 0xde, 0xdf, 0xba, 0x8d, 0xd5, 0xfc, 0x1b, 0xc6, 0x24,
0x57, 0xea, 0x4e, 0x4b, 0x91, 0x84, 0xde, 0x9a, 0xd6, 0xba, 0xc2, 0x35, 0x2a, 0xb9, 0xaf, 0x39,
0x23, 0x66, 0x1b, 0x75, 0x76, 0x4f, 0x9b, 0x4e, 0x91, 0xc7, 0x29, 0xf3, 0x38, 0xf7, 0x65, 0x9e,
0x5e, 0x7d, 0xf6, 0xd9, 0x32, 0xa6, 0x5f, 0x2d, 0xe4, 0x95, 0x26, 0xeb, 0x1a, 0xd7, 0x63, 0x60,
0x62, 0x20, 0x38, 0x23, 0x5b, 0x1b, 0x7c, 0xf0, 0xeb, 0xb2, 0xce, 0xb1, 0xc9, 0xc7, 0x29, 0xd9,
0xde, 0xc0, 0x9c, 0x19, 0x2c, 0x82, 0x6b, 0x8c, 0xa7, 0xa0, 0x84, 0x26, 0xd5, 0x36, 0xea, 0x98,
0x5e, 0x49, 0x7b, 0x0f, 0xb3, 0x85, 0x8d, 0xe6, 0x0b, 0x1b, 0x7d, 0x2f, 0x6c, 0x34, 0x5d, 0xda,
0xc6, 0x7c, 0x69, 0x1b, 0x1f, 0x4b, 0xdb, 0x78, 0xbc, 0x0c, 0x85, 0x1e, 0x8e, 0x02, 0x87, 0x42,
0xec, 0x16, 0x9b, 0xed, 0x46, 0x7e, 0xa0, 0x4a, 0xbc, 0x76, 0x11, 0xe3, 0x7f, 0x6e, 0x22, 0xa8,
0xe6, 0xa9, 0xce, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x85, 0x06, 0xde, 0x48, 0x41, 0x02, 0x00,
0x00,
}
func (m *DIDDirectory) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *DIDDirectory) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DIDDirectory) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Deposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Deposit))
i--
dAtA[i] = 0x30
}
n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Exp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Exp):])
if err1 != nil {
return 0, err1
}
i -= n1
i = encodeVarintTypes(dAtA, i, uint64(n1))
i--
dAtA[i] = 0x2a
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Modified, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintTypes(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x22
n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err3 != nil {
return 0, err3
}
i -= n3
i = encodeVarintTypes(dAtA, i, uint64(n3))
i--
dAtA[i] = 0x1a
if len(m.Controller) > 0 {
i -= len(m.Controller)
copy(dAtA[i:], m.Controller)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Controller)))
i--
dAtA[i] = 0x12
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
offset -= sovTypes(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *DIDDirectory) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.Controller)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified)
n += 1 + l + sovTypes(uint64(l))
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Exp)
n += 1 + l + sovTypes(uint64(l))
if m.Deposit != 0 {
n += 1 + sovTypes(uint64(m.Deposit))
}
return n
}
func sovTypes(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTypes(x uint64) (n int) {
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *DIDDirectory) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: DIDDirectory: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DIDDirectory: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Modified, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Exp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Exp, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
m.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTypes(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTypes
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTypes
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTypes
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
package keeper
import (
"cosmossdk.io/math"
"errors"
"fmt"
"cosmossdk.io/collections"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
func (ms msgServer) validateSessionAccess(ctx sdk.Context, msg *types.MsgCreateOrUpdatePermissionSession) error {
existingSession, err := ms.PermissionSession.Get(ctx, msg.Id)
if err != nil {
if errors.Is(err, collections.ErrNotFound) {
return nil // New session case
}
return sdkerrors.ErrInvalidRequest.Wrapf("failed to get session: %v", err)
}
// Only session controller can update
if existingSession.Controller != msg.Creator {
return sdkerrors.ErrUnauthorized.Wrap("only session controller can update")
}
// Check for duplicate authorization
for _, authz := range existingSession.Authz {
if authz.ExecutorPermId == msg.IssuerPermId &&
authz.BeneficiaryPermId == msg.VerifierPermId &&
authz.WalletAgentPermId == msg.WalletAgentPermId {
return sdkerrors.ErrInvalidRequest.Wrap("authorization already exists")
}
}
return nil
}
func (ms msgServer) validateAgentPermission(ctx sdk.Context, msg *types.MsgCreateOrUpdatePermissionSession) error {
agentPerm, err := ms.Permission.Get(ctx, msg.AgentPermId)
if err != nil {
return sdkerrors.ErrNotFound.Wrap("agent permission not found")
}
if agentPerm.Type != types.PermissionType_PERMISSION_TYPE_HOLDER {
return sdkerrors.ErrInvalidRequest.Wrap("agent permission must be HOLDER type")
}
if agentPerm.Revoked != nil || agentPerm.Terminated != nil {
return sdkerrors.ErrInvalidRequest.Wrap("agent permission is revoked or terminated")
}
return nil
}
func (ms msgServer) validateWalletAgentPermission(ctx sdk.Context, msg *types.MsgCreateOrUpdatePermissionSession) error {
if msg.WalletAgentPermId == 0 {
return nil // Optional field
}
walletAgentPerm, err := ms.Permission.Get(ctx, msg.WalletAgentPermId)
if err != nil {
return sdkerrors.ErrNotFound.Wrap("wallet agent permission not found")
}
if walletAgentPerm.Type != types.PermissionType_PERMISSION_TYPE_HOLDER {
return sdkerrors.ErrInvalidRequest.Wrap("wallet agent permission must be HOLDER type")
}
if walletAgentPerm.Revoked != nil || walletAgentPerm.Terminated != nil {
return sdkerrors.ErrInvalidRequest.Wrap("wallet agent permission is revoked or terminated")
}
return nil
}
func (ms msgServer) buildPermissionSet(ctx sdk.Context, executorPerm *types.Permission, beneficiaryPermId uint64) (PermissionSet, error) {
var permSet PermissionSet
// Process executor perm ancestors
currentPerm := executorPerm
for currentPerm.ValidatorPermId != 0 {
validatorPerm, err := ms.Permission.Get(ctx, currentPerm.ValidatorPermId)
if err != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrapf("failed to get validator permission: %v", err)
}
// Add if not revoked and not terminated and not already in set
if validatorPerm.Revoked == nil && validatorPerm.Terminated == nil && !permSet.contains(validatorPerm.Id) {
permSet = append(permSet, validatorPerm)
}
currentPerm = &validatorPerm
}
// For VERIFIER type, process beneficiary permission chain
if executorPerm.Type == types.PermissionType_PERMISSION_TYPE_VERIFIER {
if beneficiaryPermId == 0 {
return nil, sdkerrors.ErrInvalidRequest.Wrap("beneficiary permission required for VERIFIER")
}
beneficiaryPerm, err := ms.Permission.Get(ctx, beneficiaryPermId)
if err != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrapf("failed to get beneficiary permission: %v", err)
}
// Validate beneficiary is ISSUER
if beneficiaryPerm.Type != types.PermissionType_PERMISSION_TYPE_ISSUER {
return nil, sdkerrors.ErrInvalidRequest.Wrap("beneficiary must be ISSUER")
}
// Add beneficiary if valid
if beneficiaryPerm.Revoked == nil && beneficiaryPerm.Terminated == nil && !permSet.contains(beneficiaryPerm.Id) {
permSet = append(permSet, beneficiaryPerm)
}
// Process beneficiary ancestors
currentPerm = &beneficiaryPerm
for currentPerm.ValidatorPermId != 0 {
validatorPerm, err := ms.Permission.Get(ctx, currentPerm.ValidatorPermId)
if err != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrapf("failed to get validator permission: %v", err)
}
if validatorPerm.Revoked == nil && validatorPerm.Terminated == nil && !permSet.contains(validatorPerm.Id) {
permSet = append(permSet, validatorPerm)
}
currentPerm = &validatorPerm
}
}
return permSet, nil
}
func (ms msgServer) calculateAndValidateFees(ctx sdk.Context, creator string, permSet PermissionSet, executorType types.PermissionType) (sdk.Coin, error) {
beneficiaryFees := math.NewInt(0)
// Calculate total beneficiary fees
for _, perm := range permSet {
if executorType == types.PermissionType_PERMISSION_TYPE_VERIFIER {
beneficiaryFees = beneficiaryFees.Add(math.NewInt(int64(perm.VerificationFees)))
} else {
beneficiaryFees = beneficiaryFees.Add(math.NewInt(int64(perm.IssuanceFees)))
}
}
// Get global variables
trustUnitPrice := ms.trustRegistryKeeper.GetTrustUnitPrice(ctx)
trustDepositRate := ms.trustDeposit.GetTrustDepositRate(ctx)
userAgentRewardRate := ms.trustDeposit.GetUserAgentRewardRate(ctx)
walletUserAgentRewardRate := ms.trustDeposit.GetWalletUserAgentRewardRate(ctx)
// Calculate total fees including trust deposit and rewards
totalFees := beneficiaryFees.Mul(math.NewInt(int64(trustUnitPrice)))
trustFees := ms.Keeper.trustFeesAmount(totalFees.Int64(), trustDepositRate)
rewardRateSum := userAgentRewardRate.Add(walletUserAgentRewardRate)
rewards := ms.Keeper.rewardsAmount(totalFees.Int64(), rewardRateSum)
requiredAmount := sdk.NewCoin(types.BondDenom, totalFees.Add(trustFees).Add(rewards))
// Validate sufficient balance
creatorAddr, err := sdk.AccAddressFromBech32(creator)
if err != nil {
return sdk.Coin{}, fmt.Errorf("invalid creator address: %w", err)
}
if !ms.bankKeeper.HasBalance(ctx, creatorAddr, requiredAmount) {
return sdk.Coin{}, sdkerrors.ErrInsufficientFunds.Wrapf("insufficient funds: required %s", requiredAmount)
}
return requiredAmount, nil
}
func (k Keeper) trustFeesAmount(totalFees int64, trustDepositRate math.LegacyDec) math.Int {
totalFeesDec := math.LegacyNewDec(totalFees)
trustFees := totalFeesDec.Mul(trustDepositRate)
return trustFees.TruncateInt()
}
func (k Keeper) rewardsAmount(totalFees int64, rewardRateSum math.LegacyDec) math.Int {
totalFeesDec := math.LegacyNewDec(totalFees)
rewards := totalFeesDec.Mul(rewardRateSum)
return rewards.TruncateInt()
}
func (ms msgServer) processFees(
ctx sdk.Context,
creator string,
permSet []types.Permission,
isVerifier bool,
trustUnitPrice uint64,
trustDepositRate math.LegacyDec,
) error {
creatorAddr, err := sdk.AccAddressFromBech32(creator)
if err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Process each permission's fees
for _, perm := range permSet {
var fees uint64
if isVerifier {
fees = perm.VerificationFees
} else {
fees = perm.IssuanceFees
}
if fees > 0 {
// Calculate fees in denom
feesInDenom := fees * trustUnitPrice
// Calculate trust deposit amount
trustDepositAmount := uint64(math.LegacyNewDec(int64(feesInDenom)).Mul(trustDepositRate).TruncateInt64())
// Calculate direct fees (the portion that goes directly to the grantee)
directFeesAmount := feesInDenom - trustDepositAmount
// 1. Transfer direct fees from creator to permission grantee
if directFeesAmount > 0 {
granteeAddr, err := sdk.AccAddressFromBech32(perm.Grantee)
if err != nil {
return fmt.Errorf("invalid grantee address: %w", err)
}
err = ms.bankKeeper.SendCoins(
ctx,
creatorAddr,
granteeAddr,
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(directFeesAmount))),
)
if err != nil {
return fmt.Errorf("failed to transfer direct fees: %w", err)
}
}
// 2. Increase trust deposit for the grantee
if trustDepositAmount > 0 {
// First transfer funds from creator to module account
err = ms.bankKeeper.SendCoinsFromAccountToModule(
ctx,
creatorAddr,
types.ModuleName,
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(trustDepositAmount))),
)
if err != nil {
return fmt.Errorf("failed to transfer trust deposit to module: %w", err)
}
// Then adjust grantee's trust deposit
err = ms.trustDeposit.AdjustTrustDeposit(
ctx,
perm.Grantee,
int64(trustDepositAmount),
)
if err != nil {
return fmt.Errorf("failed to adjust grantee trust deposit: %w", err)
}
}
}
}
return nil
}
func (k Keeper) trustDepositAmount(feesInDenom uint64, trustDepositRate math.LegacyDec) uint64 {
feesInDenomDec := math.LegacyNewDec(int64(feesInDenom))
trustDeposit := feesInDenomDec.Mul(trustDepositRate)
return trustDeposit.TruncateInt().Uint64()
}
func (ms msgServer) createOrUpdateSession(ctx sdk.Context, msg *types.MsgCreateOrUpdatePermissionSession, now time.Time) error {
session := &types.PermissionSession{
Id: msg.Id,
Controller: msg.Creator,
AgentPermId: msg.AgentPermId,
Modified: &now,
}
existingSession, err := ms.PermissionSession.Get(ctx, msg.Id)
if err == nil {
// Update existing session
session = &existingSession
session.Modified = &now
} else if errors.Is(err, collections.ErrNotFound) {
// New session
session.Created = &now
} else {
return err
}
// Add new authorization
session.Authz = append(session.Authz, &types.SessionAuthz{
ExecutorPermId: msg.IssuerPermId,
BeneficiaryPermId: msg.VerifierPermId,
WalletAgentPermId: msg.WalletAgentPermId,
})
return ms.PermissionSession.Set(ctx, msg.Id, *session)
}
// findBeneficiaries gets the set of permissions that should receive fees
func (ms msgServer) findBeneficiaries(ctx sdk.Context, issuerPermId, verifierPermId uint64) ([]types.Permission, error) {
var foundPerms []types.Permission
// Helper function to check if a permission is already in the slice
containsPerm := func(id uint64) bool {
for _, p := range foundPerms {
if p.Id == id {
return true
}
}
return false
}
// Process issuer permission hierarchy if provided
if issuerPermId != 0 {
issuerPerm, err := ms.Permission.Get(ctx, issuerPermId)
if err != nil {
return nil, fmt.Errorf("issuer permission not found: %w", err)
}
// Follow the validator chain up
if issuerPerm.ValidatorPermId != 0 {
currentPermID := issuerPerm.ValidatorPermId
for currentPermID != 0 {
currentPerm, err := ms.Permission.Get(ctx, currentPermID)
if err != nil {
return nil, fmt.Errorf("failed to get permission: %w", err)
}
// Add to set if valid and not already included
if currentPerm.Revoked == nil && currentPerm.Terminated == nil && !containsPerm(currentPermID) {
foundPerms = append(foundPerms, currentPerm)
}
// Move up
currentPermID = currentPerm.ValidatorPermId
}
}
}
// Process verifier permission hierarchy if provided
if verifierPermId != 0 {
// First add issuer permission to the set if provided
if issuerPermId != 0 {
issuerPerm, err := ms.Permission.Get(ctx, issuerPermId)
if err == nil && issuerPerm.Revoked == nil && issuerPerm.Terminated == nil && !containsPerm(issuerPermId) {
foundPerms = append(foundPerms, issuerPerm)
}
}
// Then process verifier's validator chain
verifierPerm, err := ms.Permission.Get(ctx, verifierPermId)
if err != nil {
return nil, fmt.Errorf("verifier permission not found: %w", err)
}
if verifierPerm.ValidatorPermId != 0 {
currentPermID := verifierPerm.ValidatorPermId
for currentPermID != 0 {
currentPerm, err := ms.Permission.Get(ctx, currentPermID)
if err != nil {
return nil, fmt.Errorf("failed to get permission: %w", err)
}
// Add to set if valid and not already included
if currentPerm.Revoked == nil && currentPerm.Terminated == nil && !containsPerm(currentPermID) {
foundPerms = append(foundPerms, currentPerm)
}
// Move up
currentPermID = currentPerm.ValidatorPermId
}
}
}
return foundPerms, nil
}
package keeper
import (
"fmt"
"time"
"cosmossdk.io/collections"
"cosmossdk.io/core/store"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
type (
Keeper struct {
cdc codec.BinaryCodec
storeService store.KVStoreService
logger log.Logger
// the address capable of executing a MsgUpdateParams message. Typically, this
// should be the x/gov module account.
authority string
// state
Permission collections.Map[uint64, types.Permission]
PermissionCounter collections.Item[uint64]
PermissionSession collections.Map[string, types.PermissionSession]
// external keeper
credentialSchemaKeeper types.CredentialSchemaKeeper
trustRegistryKeeper types.TrustRegistryKeeper
trustDeposit types.TrustDepositKeeper
bankKeeper types.BankKeeper
}
)
func NewKeeper(
cdc codec.BinaryCodec,
storeService store.KVStoreService,
logger log.Logger,
authority string,
credentialSchemaKeeper types.CredentialSchemaKeeper,
trustRegistryKeeper types.TrustRegistryKeeper,
trustDeposit types.TrustDepositKeeper,
bankKeeper types.BankKeeper,
) Keeper {
sb := collections.NewSchemaBuilder(storeService)
if _, err := sdk.AccAddressFromBech32(authority); err != nil {
panic(fmt.Sprintf("invalid authority address: %s", authority))
}
return Keeper{
cdc: cdc,
storeService: storeService,
authority: authority,
logger: logger,
Permission: collections.NewMap(sb, types.PermissionKey, "permission", collections.Uint64Key, codec.CollValue[types.Permission](cdc)),
PermissionCounter: collections.NewItem(sb, types.PermissionCounterKey, "permission_counter", collections.Uint64Value),
PermissionSession: collections.NewMap(sb, types.PermissionSessionKey, "permission_session", collections.StringKey, codec.CollValue[types.PermissionSession](cdc)),
credentialSchemaKeeper: credentialSchemaKeeper,
trustRegistryKeeper: trustRegistryKeeper,
trustDeposit: trustDeposit,
bankKeeper: bankKeeper,
}
}
// GetAuthority returns the module's authority.
func (k Keeper) GetAuthority() string {
return k.authority
}
// Logger returns a module-specific logger.
func (k Keeper) Logger() log.Logger {
return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName))
}
func (k Keeper) GetPermissionByID(ctx sdk.Context, id uint64) (types.Permission, error) {
return k.Permission.Get(ctx, id)
}
// CreatePermission creates a new permission and returns its ID
func (k Keeper) CreatePermission(ctx sdk.Context, perm types.Permission) (uint64, error) {
id, err := k.getNextPermissionID(ctx)
if err != nil {
return 0, err
}
perm.Id = id
if err := k.Permission.Set(ctx, id, perm); err != nil {
return 0, err
}
return id, nil
}
// getNextPermissionID gets the next available permission ID
func (k Keeper) getNextPermissionID(ctx sdk.Context) (uint64, error) {
id, err := k.PermissionCounter.Get(ctx)
if err != nil {
id = 0
}
nextID := id + 1
err = k.PermissionCounter.Set(ctx, nextID)
if err != nil {
return 0, fmt.Errorf("failed to set permission counter: %w", err)
}
return nextID, nil
}
func (k Keeper) UpdatePermission(ctx sdk.Context, perm types.Permission) error {
return k.Permission.Set(ctx, perm.Id, perm)
}
// IsValidPermission checks if a permission is valid for a given country code and time
// A valid permission:
// - Has a matching country (permission country is null or matches the provided country)
// - Is currently effective (effective_from ≤ now < effective_until)
// - Is not revoked or terminated
func IsValidPermission(perm types.Permission, country string, checkTime time.Time) error {
// Check country compatibility
if perm.Country != "" && perm.Country != country {
return fmt.Errorf("permission country mismatch: permission has %s, requested %s",
perm.Country, country)
}
// Check if permission is effective at the given time
if perm.EffectiveFrom != nil && checkTime.Before(*perm.EffectiveFrom) {
return fmt.Errorf("permission not yet effective: begins at %v", perm.EffectiveFrom)
}
if perm.EffectiveUntil != nil && !checkTime.Before(*perm.EffectiveUntil) {
return fmt.Errorf("permission expired: ended at %v", perm.EffectiveUntil)
}
// Check if permission is revoked
if perm.Revoked != nil {
return fmt.Errorf("permission is revoked since %v", perm.Revoked)
}
// Check if permission is terminated
if perm.Terminated != nil {
return fmt.Errorf("permission is terminated since %v", perm.Terminated)
}
return nil
}
package keeper
import (
"context"
"cosmossdk.io/math"
"fmt"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"strconv"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
type msgServer struct {
Keeper
}
// NewMsgServerImpl returns an implementation of the MsgServer interface
// for the provided Keeper.
func NewMsgServerImpl(keeper Keeper) types.MsgServer {
return &msgServer{Keeper: keeper}
}
var _ types.MsgServer = msgServer{}
// StartPermissionVP handles the MsgStartPermissionVP message
func (ms msgServer) StartPermissionVP(goCtx context.Context, msg *types.MsgStartPermissionVP) (*types.MsgStartPermissionVPResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-PERM-MSG-1-2-2] Permission checks
validatorPerm, err := ms.validatePermissionChecks(ctx, msg)
if err != nil {
return nil, fmt.Errorf("permission validation failed: %w", err)
}
// [MOD-PERM-MSG-1-2-3] Fee checks
fees, deposit, err := ms.validateAndCalculateFees(ctx, msg.Creator, validatorPerm)
if err != nil {
return nil, fmt.Errorf("fee validation failed: %w", err)
}
// [MOD-PERM-MSG-1-3] Execute the permission VP creation
permID, err := ms.executeStartPermissionVP(ctx, msg, validatorPerm, fees, deposit)
if err != nil {
return nil, fmt.Errorf("failed to execute permission VP: %w", err)
}
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeStartPermissionVP,
sdk.NewAttribute(types.AttributeKeyPermissionID, strconv.FormatUint(permID, 10)),
sdk.NewAttribute(types.AttributeKeyCreator, msg.Creator),
sdk.NewAttribute(types.AttributeKeyFees, strconv.FormatUint(fees, 10)),
sdk.NewAttribute(types.AttributeKeyDeposit, strconv.FormatUint(deposit, 10)),
),
})
return &types.MsgStartPermissionVPResponse{
PermissionId: permID,
}, nil
}
func (ms msgServer) RenewPermissionVP(goCtx context.Context, msg *types.MsgRenewPermissionVP) (*types.MsgRenewPermissionVPResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-PERM-MSG-2-2-2] Permission checks
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
// Verify creator is the grantee
if applicantPerm.Grantee != msg.Creator {
return nil, fmt.Errorf("creator is not the permission grantee")
}
// Get validator permission
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, applicantPerm.ValidatorPermId)
if err != nil {
return nil, fmt.Errorf("validator permission not found: %w", err)
}
if err := IsValidPermission(validatorPerm, applicantPerm.Country, ctx.BlockTime()); err != nil {
return nil, fmt.Errorf("validator permission is not valid: %w", err)
}
// [MOD-PERM-MSG-2-2-3] Fee checks
validationFees, validationDeposit, err := ms.validateAndCalculateFees(ctx, msg.Creator, validatorPerm)
if err != nil {
return nil, fmt.Errorf("fee validation failed: %w", err)
}
// [MOD-PERM-MSG-2-3] Execution
if err := ms.executeRenewPermissionVP(ctx, applicantPerm, validationFees, validationDeposit); err != nil {
return nil, fmt.Errorf("failed to execute permission VP renewal: %w", err)
}
return &types.MsgRenewPermissionVPResponse{}, nil
}
func (ms msgServer) executeRenewPermissionVP(ctx sdk.Context, perm types.Permission, fees, deposit uint64) error {
// Increment trust deposit if deposit is greater than 0
if deposit > 0 {
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, perm.Grantee, int64(deposit)); err != nil {
return fmt.Errorf("failed to increase trust deposit: %w", err)
}
}
// Send validation fees to escrow account if greater than 0
if fees > 0 {
// Get grantee address
granteeAddr, err := sdk.AccAddressFromBech32(perm.Grantee)
if err != nil {
return fmt.Errorf("invalid grantee address: %w", err)
}
// Transfer fees to module escrow account
err = ms.bankKeeper.SendCoinsFromAccountToModule(
ctx,
granteeAddr,
types.ModuleName, // Using module name as the escrow account
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(fees))),
)
if err != nil {
return fmt.Errorf("failed to transfer validation fees to escrow: %w", err)
}
}
now := ctx.BlockTime()
// Update permission
perm.VpState = types.ValidationState_VALIDATION_STATE_PENDING
perm.VpLastStateChange = &now
perm.Deposit += deposit
perm.VpCurrentFees = fees
perm.VpCurrentDeposit = deposit
perm.Modified = &now
// Store updated permission
return ms.Keeper.UpdatePermission(ctx, perm)
}
func (ms msgServer) SetPermissionVPToValidated(goCtx context.Context, msg *types.MsgSetPermissionVPToValidated) (*types.MsgSetPermissionVPToValidatedResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// [MOD-PERM-MSG-3-2-1] Basic checks
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
// Check permission state - must be PENDING
if applicantPerm.VpState != types.ValidationState_VALIDATION_STATE_PENDING {
return nil, fmt.Errorf("permission must be in PENDING state to be validated")
}
// Check renewal-specific constraints
if applicantPerm.EffectiveFrom != nil {
if msg.ValidationFees != applicantPerm.ValidationFees {
return nil, fmt.Errorf("validation fees cannot be changed during renewal")
}
if msg.IssuanceFees != applicantPerm.IssuanceFees {
return nil, fmt.Errorf("issuance fees cannot be changed during renewal")
}
if msg.VerificationFees != applicantPerm.VerificationFees {
return nil, fmt.Errorf("verification fees cannot be changed during renewal")
}
if msg.Country != applicantPerm.Country {
return nil, fmt.Errorf("country cannot be changed during renewal")
}
}
// Check summary digest SRI
if applicantPerm.Type == types.PermissionType_PERMISSION_TYPE_HOLDER && msg.VpSummaryDigestSri != "" {
return nil, fmt.Errorf("vp_summary_digest_sri must be null for HOLDER type")
}
// [MOD-PERM-MSG-3-2-2] Validator permission checks
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, applicantPerm.ValidatorPermId)
if err != nil {
return nil, fmt.Errorf("validator permission not found: %w", err)
}
if validatorPerm.Grantee != msg.Creator {
return nil, fmt.Errorf("creator is not the validator")
}
if err := IsValidPermission(validatorPerm, msg.Country, ctx.BlockTime()); err != nil {
return nil, fmt.Errorf("validator permission is not valid: %w", err)
}
// Get validation period and calculate expiration
cs, err := ms.credentialSchemaKeeper.GetCredentialSchemaById(ctx, applicantPerm.SchemaId)
if err != nil {
return nil, fmt.Errorf("credential schema not found: %w", err)
}
validityPeriod := getValidityPeriod(uint32(applicantPerm.Type), cs)
vpExp := calculateVPExp(applicantPerm.VpExp, uint64(validityPeriod), now)
// Check effective_until if provided
if msg.EffectiveUntil != nil {
if applicantPerm.EffectiveUntil == nil {
if !msg.EffectiveUntil.After(now) {
return nil, fmt.Errorf("effective_until must be after current time")
}
if vpExp != nil && msg.EffectiveUntil.After(*vpExp) {
return nil, fmt.Errorf("effective_until cannot be after validation expiration")
}
} else {
if !msg.EffectiveUntil.After(*applicantPerm.EffectiveUntil) {
return nil, fmt.Errorf("effective_until must be after current effective_until")
}
if vpExp != nil && msg.EffectiveUntil.After(*vpExp) {
return nil, fmt.Errorf("effective_until cannot be after validation expiration")
}
}
} else {
msg.EffectiveUntil = vpExp
}
// [MOD-PERM-MSG-3-3] Execution
if err := ms.executeSetPermissionVPToValidated(ctx, applicantPerm, msg, now, vpExp); err != nil {
return nil, fmt.Errorf("failed to execute set to validated: %w", err)
}
return &types.MsgSetPermissionVPToValidatedResponse{}, nil
}
func (ms msgServer) RequestPermissionVPTermination(goCtx context.Context, msg *types.MsgRequestPermissionVPTermination) (*types.MsgRequestPermissionVPTerminationResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// [MOD-PERM-MSG-4-2-1] Basic checks
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
if applicantPerm.VpState != types.ValidationState_VALIDATION_STATE_VALIDATED {
return nil, fmt.Errorf("permission must be in VALIDATED state")
}
// Check termination authorization
if applicantPerm.VpExp != nil && now.After(*applicantPerm.VpExp) {
// VP has expired - either party can terminate
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, applicantPerm.ValidatorPermId)
if err != nil {
return nil, fmt.Errorf("validator permission not found: %w", err)
}
if msg.Creator != applicantPerm.Grantee && msg.Creator != validatorPerm.Grantee {
return nil, fmt.Errorf("only grantee or validator can terminate expired VP")
}
} else {
// VP not expired - only grantee can terminate
if msg.Creator != applicantPerm.Grantee {
return nil, fmt.Errorf("only grantee can terminate active VP")
}
}
// [MOD-PERM-MSG-4-3] Execution
err = ms.executeRequestPermissionVPTermination(ctx, applicantPerm, msg.Creator, now)
if err != nil {
return nil, fmt.Errorf("failed to execute termination request: %w", err)
}
return &types.MsgRequestPermissionVPTerminationResponse{}, nil
}
func (ms msgServer) executeRequestPermissionVPTermination(ctx sdk.Context, perm types.Permission, terminator string, now time.Time) error {
// Update basic fields
perm.Modified = &now
perm.VpTermRequested = &now
perm.VpLastStateChange = &now
// Set state based on conditions
if perm.Type != types.PermissionType_PERMISSION_TYPE_HOLDER || // not HOLDER
(perm.VpExp != nil && now.After(*perm.VpExp)) { // expired
// Immediate termination
perm.VpState = types.ValidationState_VALIDATION_STATE_TERMINATED
perm.Terminated = &now
perm.TerminatedBy = terminator
// Handle deposits
if err := ms.handleTerminationDeposits(ctx, &perm); err != nil {
return fmt.Errorf("failed to handle termination deposits: %w", err)
}
} else {
// Request termination
perm.VpState = types.ValidationState_VALIDATION_STATE_TERMINATION_REQUESTED
}
return ms.Keeper.UpdatePermission(ctx, perm)
}
func (ms msgServer) handleTerminationDeposits(ctx sdk.Context, perm *types.Permission) error {
// Handle applicant's deposit
if perm.Deposit > 0 {
// Convert to signed integer for adjustment
depositAmount := int64(perm.Deposit)
// Use negative value to decrease deposit and increase claimable
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, perm.Grantee, -depositAmount); err != nil {
return fmt.Errorf("failed to adjust applicant trust deposit: %w", err)
}
// Clear the deposit in the permission
perm.Deposit = 0
}
// Handle validator's deposit
if perm.VpValidatorDeposit > 0 {
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, perm.ValidatorPermId)
if err != nil {
return fmt.Errorf("validator permission not found: %w", err)
}
// Convert to signed integer for adjustment
validatorDepositAmount := int64(perm.VpValidatorDeposit)
// Use negative value to decrease deposit and increase claimable
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, validatorPerm.Grantee, -validatorDepositAmount); err != nil {
return fmt.Errorf("failed to adjust validator trust deposit: %w", err)
}
// Clear the validator deposit in the permission
perm.VpValidatorDeposit = 0
}
return nil
}
func (ms msgServer) ConfirmPermissionVPTermination(goCtx context.Context, msg *types.MsgConfirmPermissionVPTermination) (*types.MsgConfirmPermissionVPTerminationResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// Load applicant permission
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
// Check permission state
if applicantPerm.VpState != types.ValidationState_VALIDATION_STATE_TERMINATION_REQUESTED {
return nil, fmt.Errorf("permission must be in TERMINATION_REQUESTED state")
}
// [MOD-PERM-MSG-5-2-2] Permission checks
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, applicantPerm.ValidatorPermId)
if err != nil {
return nil, fmt.Errorf("validator permission not found: %w", err)
}
// Calculate timeout
termRequestTimeout := applicantPerm.VpTermRequested.AddDate(0, 0, int(ms.Keeper.GetParams(ctx).ValidationTermRequestedTimeoutDays))
timeoutReached := now.After(termRequestTimeout)
// Check authorization
if !timeoutReached {
// Before timeout: only validator can confirm
if msg.Creator != validatorPerm.Grantee {
return nil, fmt.Errorf("only validator can confirm termination before timeout")
}
} else {
// After timeout: either validator or applicant can confirm
if msg.Creator != validatorPerm.Grantee && msg.Creator != applicantPerm.Grantee {
return nil, fmt.Errorf("only validator or applicant can confirm termination after timeout")
}
}
// [MOD-PERM-MSG-5-3] Execution
if err := ms.executeConfirmPermissionVPTermination(ctx, applicantPerm, validatorPerm, msg.Creator, now); err != nil {
return nil, fmt.Errorf("failed to execute termination confirmation: %w", err)
}
return &types.MsgConfirmPermissionVPTerminationResponse{}, nil
}
func (ms msgServer) executeConfirmPermissionVPTermination(ctx sdk.Context, applicantPerm, validatorPerm types.Permission, confirmer string, now time.Time) error {
// Update basic fields
applicantPerm.Modified = &now
applicantPerm.VpState = types.ValidationState_VALIDATION_STATE_TERMINATED
applicantPerm.VpLastStateChange = &now
applicantPerm.Terminated = &now
applicantPerm.TerminatedBy = confirmer
// Handle applicant's deposit
if applicantPerm.Deposit > 0 {
// Convert to signed integer for adjustment
depositAmount := int64(applicantPerm.Deposit)
// Use negative value to decrease deposit and increase claimable
err := ms.trustDeposit.AdjustTrustDeposit(ctx, applicantPerm.Grantee, -depositAmount)
if err != nil {
return fmt.Errorf("failed to adjust applicant trust deposit: %w", err)
}
// Clear the deposit in the permission
applicantPerm.Deposit = 0
}
// Only return validator deposit if validator confirmed
if confirmer == validatorPerm.Grantee && applicantPerm.VpValidatorDeposit > 0 {
// Convert to signed integer for adjustment
validatorDepositAmount := int64(applicantPerm.VpValidatorDeposit)
// Use negative value to decrease deposit and increase claimable
err := ms.trustDeposit.AdjustTrustDeposit(ctx, validatorPerm.Grantee, -validatorDepositAmount)
if err != nil {
return fmt.Errorf("failed to adjust validator trust deposit: %w", err)
}
// Clear the validator deposit in the permission
applicantPerm.VpValidatorDeposit = 0
}
// Persist changes
return ms.Keeper.UpdatePermission(ctx, applicantPerm)
}
func (ms msgServer) CancelPermissionVPLastRequest(goCtx context.Context, msg *types.MsgCancelPermissionVPLastRequest) (*types.MsgCancelPermissionVPLastRequestResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Load applicant permission
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
// Check if creator is the grantee
if applicantPerm.Grantee != msg.Creator {
return nil, fmt.Errorf("creator is not the permission grantee")
}
// Check permission state
if applicantPerm.VpState != types.ValidationState_VALIDATION_STATE_PENDING {
return nil, fmt.Errorf("permission must be in PENDING state")
}
// [MOD-PERM-MSG-6-3] Execution
if err := ms.executeCancelPermissionVPLastRequest(ctx, applicantPerm); err != nil {
return nil, fmt.Errorf("failed to execute VP cancellation: %w", err)
}
return &types.MsgCancelPermissionVPLastRequestResponse{}, nil
}
func (ms msgServer) executeCancelPermissionVPLastRequest(ctx sdk.Context, perm types.Permission) error {
now := ctx.BlockTime()
// Update basic fields
perm.Modified = &now
perm.VpLastStateChange = &now
// Set state based on vp_exp
if perm.VpExp == nil {
perm.VpState = types.ValidationState_VALIDATION_STATE_TERMINATED
} else {
perm.VpState = types.ValidationState_VALIDATION_STATE_VALIDATED
}
// Handle current fees if any
if perm.VpCurrentFees > 0 {
// Transfer escrowed fees back to the applicant
granteeAddr, err := sdk.AccAddressFromBech32(perm.Grantee)
if err != nil {
return fmt.Errorf("invalid grantee address: %w", err)
}
// Transfer fees from module escrow account to applicant account
err = ms.bankKeeper.SendCoinsFromModuleToAccount(
ctx,
types.ModuleName, // Module escrow account
granteeAddr, // Applicant account
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(perm.VpCurrentFees))),
)
if err != nil {
return fmt.Errorf("failed to refund fees: %w", err)
}
perm.VpCurrentFees = 0
}
// Handle current deposit if any
if perm.VpCurrentDeposit > 0 {
// Use AdjustTrustDeposit to reduce trust deposit with negative value
// to move funds from deposit to claimable
if err := ms.trustDeposit.AdjustTrustDeposit(
ctx,
perm.Grantee,
-int64(perm.VpCurrentDeposit), // Negative value to reduce deposit and increase claimable
); err != nil {
return fmt.Errorf("failed to adjust trust deposit: %w", err)
}
perm.VpCurrentDeposit = 0
}
// Persist changes
return ms.Keeper.UpdatePermission(ctx, perm)
}
func (ms msgServer) CreateRootPermission(goCtx context.Context, msg *types.MsgCreateRootPermission) (*types.MsgCreateRootPermissionResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// Add this check inside CreateRootPermission after the schema check
if msg.EffectiveFrom != nil && !msg.EffectiveFrom.After(now) {
return nil, fmt.Errorf("effective_from must be in the future")
}
// Check credential schema exists
_, err := ms.credentialSchemaKeeper.GetCredentialSchemaById(ctx, msg.SchemaId)
if err != nil {
return nil, fmt.Errorf("credential schema not found: %w", err)
}
// [MOD-PERM-MSG-7-2-2] Permission checks
if err := ms.validateCreateRootPermissionAuthority(ctx, msg); err != nil {
return nil, err
}
// [MOD-PERM-MSG-7-3] Execution
id, err := ms.executeCreateRootPermission(ctx, msg, now)
if err != nil {
return nil, fmt.Errorf("failed to create root permission: %w", err)
}
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeCreateRootPermission,
sdk.NewAttribute(types.AttributeKeyRootPermissionID, strconv.FormatUint(id, 10)),
sdk.NewAttribute(types.AttributeKeySchemaID, strconv.FormatUint(msg.SchemaId, 10)),
sdk.NewAttribute(types.AttributeKeyTimestamp, now.String()),
),
})
return &types.MsgCreateRootPermissionResponse{
Id: id,
}, nil
}
func (ms msgServer) validateCreateRootPermissionAuthority(ctx sdk.Context, msg *types.MsgCreateRootPermission) error {
// Get credential schema
cs, err := ms.credentialSchemaKeeper.GetCredentialSchemaById(ctx, msg.SchemaId)
if err != nil {
return fmt.Errorf("credential schema not found: %w", err)
}
// Load trust registry
tr, err := ms.trustRegistryKeeper.GetTrustRegistry(ctx, cs.TrId)
if err != nil {
return fmt.Errorf("trust registry not found: %w", err)
}
// Check if creator is the controller
if tr.Controller != msg.Creator {
return fmt.Errorf("creator is not the trust registry controller")
}
return nil
}
func (ms msgServer) executeCreateRootPermission(ctx sdk.Context, msg *types.MsgCreateRootPermission, now time.Time) (uint64, error) {
// Create new permission
perm := types.Permission{
SchemaId: msg.SchemaId,
Type: types.PermissionType_PERMISSION_TYPE_TRUST_REGISTRY,
Did: msg.Did,
Grantee: msg.Creator,
Created: &now,
CreatedBy: msg.Creator,
Modified: &now,
EffectiveFrom: msg.EffectiveFrom,
EffectiveUntil: msg.EffectiveUntil,
Country: msg.Country,
ValidationFees: msg.ValidationFees,
IssuanceFees: msg.IssuanceFees,
VerificationFees: msg.VerificationFees,
Deposit: 0,
}
// Store the permission
id, err := ms.Keeper.CreatePermission(ctx, perm)
if err != nil {
return 0, fmt.Errorf("failed to create permission: %w", err)
}
return id, nil
}
func (ms msgServer) ExtendPermission(goCtx context.Context, msg *types.MsgExtendPermission) (*types.MsgExtendPermissionResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// [MOD-PERM-MSG-8-2-1] Basic checks
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
// Check effective_until is after current effective_until
if applicantPerm.EffectiveUntil != nil && !msg.EffectiveUntil.After(*applicantPerm.EffectiveUntil) {
return nil, fmt.Errorf("effective_until must be after current effective_until")
}
// Check effective_until is before or equal to vp_exp
if applicantPerm.VpExp != nil && msg.EffectiveUntil.After(*applicantPerm.VpExp) {
return nil, fmt.Errorf("effective_until cannot be after validation expiration")
}
// [MOD-PERM-MSG-8-2-2] Validator permission checks
if err := ms.validateExtendPermissionAuthority(ctx, msg.Creator, applicantPerm); err != nil {
return nil, err
}
// [MOD-PERM-MSG-8-3] Execution
if err := ms.executeExtendPermission(ctx, applicantPerm, msg.Creator, msg.EffectiveUntil, now); err != nil {
return nil, fmt.Errorf("failed to extend permission: %w", err)
}
return &types.MsgExtendPermissionResponse{}, nil
}
func (ms msgServer) validateExtendPermissionAuthority(ctx sdk.Context, creator string, perm types.Permission) error {
if perm.ValidatorPermId == 0 {
// For TRUST_REGISTRY type, creator must be the grantee
if perm.Type == types.PermissionType_PERMISSION_TYPE_TRUST_REGISTRY {
if perm.Grantee != creator {
return fmt.Errorf("creator is not the permission grantee")
}
} else {
return fmt.Errorf("invalid permission type for extension")
}
} else {
// For other types, creator must be the validator
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, perm.ValidatorPermId)
if err != nil {
return fmt.Errorf("validator permission not found: %w", err)
}
if err = IsValidPermission(validatorPerm, perm.Country, ctx.BlockTime()); err != nil {
return fmt.Errorf("validator permission is not valid: %w", err)
}
if validatorPerm.Grantee != creator {
return fmt.Errorf("creator is not the validator")
}
}
return nil
}
func (ms msgServer) executeExtendPermission(ctx sdk.Context, perm types.Permission, creator string, effectiveUntil *time.Time, now time.Time) error {
perm.EffectiveUntil = effectiveUntil
perm.Extended = &now
perm.Modified = &now
perm.ExtendedBy = creator
return ms.Keeper.UpdatePermission(ctx, perm)
}
// RevokePermission handles the MsgRevokePermission message
func (ms msgServer) RevokePermission(goCtx context.Context, msg *types.MsgRevokePermission) (*types.MsgRevokePermissionResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// [MOD-PERM-MSG-9-2-1] Basic checks
applicantPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("permission not found: %w", err)
}
// [MOD-PERM-MSG-9-2-2] Validator permission checks
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, applicantPerm.ValidatorPermId)
if err != nil {
return nil, fmt.Errorf("validator permission not found: %w", err)
}
if err := IsValidPermission(validatorPerm, applicantPerm.Country, ctx.BlockTime()); err != nil {
return nil, fmt.Errorf("validator permission is not valid: %w", err)
}
if validatorPerm.Grantee != msg.Creator {
return nil, fmt.Errorf("creator is not the validator")
}
// [MOD-PERM-MSG-9-3] Execution
if err := ms.executeRevokePermission(ctx, applicantPerm, msg.Creator, now); err != nil {
return nil, fmt.Errorf("failed to revoke permission: %w", err)
}
return &types.MsgRevokePermissionResponse{}, nil
}
func (ms msgServer) executeRevokePermission(ctx sdk.Context, perm types.Permission, creator string, now time.Time) error {
perm.Revoked = &now
perm.Modified = &now
perm.RevokedBy = creator
return ms.Keeper.UpdatePermission(ctx, perm)
}
type PermissionSet []types.Permission
func (ps PermissionSet) contains(id uint64) bool {
for _, perm := range ps {
if perm.Id == id {
return true
}
}
return false
}
func (ms msgServer) CreateOrUpdatePermissionSession(goCtx context.Context, msg *types.MsgCreateOrUpdatePermissionSession) (*types.MsgCreateOrUpdatePermissionSessionResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
now := ctx.BlockTime()
// Validate session access
if err := ms.validateSessionAccess(ctx, msg); err != nil {
return nil, err
}
// Define variables for issuerPerm and verifierPerm
var verifierPerm *types.Permission
// Load and validate issuer permission if specified
if msg.IssuerPermId != 0 {
perm, err := ms.Permission.Get(ctx, msg.IssuerPermId)
if err != nil {
return nil, sdkerrors.ErrNotFound.Wrapf("issuer permission not found: %v", err)
}
if perm.Type != types.PermissionType_PERMISSION_TYPE_ISSUER {
return nil, sdkerrors.ErrInvalidRequest.Wrap("issuer permission must be ISSUER type")
}
if perm.Revoked != nil || perm.Terminated != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrap("issuer permission is revoked or terminated")
}
}
// Load and validate verifier permission if specified
if msg.VerifierPermId != 0 {
perm, err := ms.Permission.Get(ctx, msg.VerifierPermId)
if err != nil {
return nil, sdkerrors.ErrNotFound.Wrapf("verifier permission not found: %v", err)
}
if perm.Type != types.PermissionType_PERMISSION_TYPE_VERIFIER {
return nil, sdkerrors.ErrInvalidRequest.Wrap("verifier permission must be VERIFIER type")
}
if perm.Revoked != nil || perm.Terminated != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrap("verifier permission is revoked or terminated")
}
verifierPerm = &perm
}
// Validate agent permission
agentPerm, err := ms.Permission.Get(ctx, msg.AgentPermId)
if err != nil {
return nil, sdkerrors.ErrNotFound.Wrap("agent permission not found")
}
if agentPerm.Type != types.PermissionType_PERMISSION_TYPE_HOLDER {
return nil, sdkerrors.ErrInvalidRequest.Wrap("agent permission must be HOLDER type")
}
if agentPerm.Revoked != nil || agentPerm.Terminated != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrap("agent permission is revoked or terminated")
}
// Validate wallet agent permission if provided
if msg.WalletAgentPermId != 0 {
perm, err := ms.Permission.Get(ctx, msg.WalletAgentPermId)
if err != nil {
return nil, sdkerrors.ErrNotFound.Wrap("wallet agent permission not found")
}
if perm.Type != types.PermissionType_PERMISSION_TYPE_HOLDER {
return nil, sdkerrors.ErrInvalidRequest.Wrap("wallet agent permission must be HOLDER type")
}
if perm.Revoked != nil || perm.Terminated != nil {
return nil, sdkerrors.ErrInvalidRequest.Wrap("wallet agent permission is revoked or terminated")
}
}
// Get beneficiary permissions set
foundPermSet, err := ms.findBeneficiaries(ctx, msg.IssuerPermId, msg.VerifierPermId)
if err != nil {
return nil, fmt.Errorf("failed to find beneficiaries: %w", err)
}
// Calculate fees
trustUnitPrice := ms.trustRegistryKeeper.GetTrustUnitPrice(ctx)
trustDepositRate := ms.trustDeposit.GetTrustDepositRate(ctx)
userAgentRewardRate := ms.trustDeposit.GetUserAgentRewardRate(ctx)
walletUserAgentRewardRate := ms.trustDeposit.GetWalletUserAgentRewardRate(ctx)
// Calculate beneficiary fees
beneficiaryFees := uint64(0)
for _, perm := range foundPermSet {
if verifierPerm != nil {
beneficiaryFees += perm.VerificationFees
} else {
beneficiaryFees += perm.IssuanceFees
}
}
// Calculate total required funds
totalFees := beneficiaryFees * trustUnitPrice
trustFees := uint64(math.LegacyNewDec(int64(totalFees)).Mul(trustDepositRate).TruncateInt64())
rewardRate := userAgentRewardRate.Add(walletUserAgentRewardRate)
rewards := uint64(math.LegacyNewDec(int64(totalFees)).Mul(rewardRate).TruncateInt64())
// Calculate required balance
requiredAmount := sdk.NewInt64Coin(types.BondDenom, int64(totalFees+trustFees+rewards))
// Validate sender has sufficient balance
creatorAddr, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return nil, fmt.Errorf("invalid creator address: %w", err)
}
if !ms.bankKeeper.HasBalance(ctx, creatorAddr, requiredAmount) {
return nil, sdkerrors.ErrInsufficientFunds.Wrapf("insufficient funds: required %s", requiredAmount)
}
// Process fees
if err := ms.processFees(ctx, msg.Creator, foundPermSet, verifierPerm != nil, trustUnitPrice, trustDepositRate); err != nil {
return nil, fmt.Errorf("failed to process fees: %w", err)
}
// Create or update session
if err := ms.createOrUpdateSession(ctx, msg, now); err != nil {
return nil, fmt.Errorf("failed to create/update session: %w", err)
}
// Emit events
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeCreateOrUpdatePermissionSession,
sdk.NewAttribute(types.AttributeKeySessionID, msg.Id),
sdk.NewAttribute(types.AttributeKeyIssuerPermID, strconv.FormatUint(msg.IssuerPermId, 10)),
sdk.NewAttribute(types.AttributeKeyVerifierPermID, strconv.FormatUint(msg.VerifierPermId, 10)),
sdk.NewAttribute(types.AttributeKeyAgentPermID, strconv.FormatUint(msg.AgentPermId, 10)),
sdk.NewAttribute(types.AttributeKeyWalletAgentPermID, strconv.FormatUint(msg.WalletAgentPermId, 10)),
sdk.NewAttribute(types.AttributeKeyTimestamp, now.String()),
),
})
return &types.MsgCreateOrUpdatePermissionSessionResponse{
Id: msg.Id,
}, nil
}
package keeper
import (
"context"
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
if ms.GetAuthority() != req.Authority {
return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.GetAuthority(), req.Authority)
}
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.SetParams(ctx, req.Params); err != nil {
return nil, err
}
return &types.MsgUpdateParamsResponse{}, nil
}
package keeper
import (
"context"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
// GetParams get all parameters as types.Params
func (k Keeper) GetParams(ctx context.Context) (params types.Params) {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz := store.Get(types.ParamsKey)
if bz == nil {
return params
}
k.cdc.MustUnmarshal(bz, ¶ms)
return params
}
// SetParams set the params
func (k Keeper) SetParams(ctx context.Context, params types.Params) error {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz, err := k.cdc.Marshal(¶ms)
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)
return nil
}
package keeper
import (
"cosmossdk.io/math"
"fmt"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
cstypes "github.com/verana-labs/verana-blockchain/x/credentialschema/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
func getValidityPeriod(permType uint32, cs cstypes.CredentialSchema) uint32 {
switch permType {
case 3: // ISSUER_GRANTOR
return cs.IssuerGrantorValidationValidityPeriod
case 4: // VERIFIER_GRANTOR
return cs.VerifierGrantorValidationValidityPeriod
case 1: // ISSUER
return cs.IssuerValidationValidityPeriod
case 2: // VERIFIER
return cs.VerifierValidationValidityPeriod
case 6: // HOLDER
return cs.HolderValidationValidityPeriod
default:
return 0
}
}
func calculateVPExp(currentVPExp *time.Time, validityPeriod uint64, now time.Time) *time.Time {
if validityPeriod == 0 {
return nil
}
var exp time.Time
if currentVPExp == nil {
exp = now.AddDate(0, 0, int(validityPeriod))
} else {
exp = currentVPExp.AddDate(0, 0, int(validityPeriod))
}
return &exp
}
func (ms msgServer) executeSetPermissionVPToValidated(ctx sdk.Context, perm types.Permission, msg *types.MsgSetPermissionVPToValidated, now time.Time, vpExp *time.Time) error {
// Update permission
perm.Modified = &now
perm.VpState = types.ValidationState_VALIDATION_STATE_VALIDATED
perm.VpLastStateChange = &now
perm.VpSummaryDigestSri = msg.VpSummaryDigestSri
perm.VpExp = vpExp
perm.EffectiveUntil = msg.EffectiveUntil
// Set initial values if not a renewal
if perm.EffectiveFrom == nil {
perm.ValidationFees = msg.ValidationFees
perm.IssuanceFees = msg.IssuanceFees
perm.VerificationFees = msg.VerificationFees
perm.Country = msg.Country
perm.EffectiveFrom = &now
}
// Handle fees and trust deposits
if perm.VpCurrentFees > 0 {
// Load validator permission
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, perm.ValidatorPermId)
if err != nil {
return fmt.Errorf("failed to get validator permission: %w", err)
}
// Get validator address
validatorAddr, err := sdk.AccAddressFromBech32(validatorPerm.Grantee)
if err != nil {
return fmt.Errorf("invalid validator address: %w", err)
}
// First, transfer the full amount from escrow to validator
err = ms.bankKeeper.SendCoinsFromModuleToAccount(
ctx,
types.ModuleName, // Module escrow account
validatorAddr, // Validator account
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(perm.VpCurrentFees))),
)
if err != nil {
return fmt.Errorf("failed to transfer fees to validator: %w", err)
}
// Calculate trust deposit portion
trustDepositRate := ms.trustDeposit.GetTrustDepositRate(ctx)
validatorTrustDeposit := ms.Keeper.validatorTrustDepositAmount(perm.VpCurrentFees, trustDepositRate)
// Increase validator's trust deposit
if validatorTrustDeposit > 0 {
err = ms.trustDeposit.AdjustTrustDeposit(
ctx,
validatorPerm.Grantee,
int64(validatorTrustDeposit),
)
if err != nil {
return fmt.Errorf("failed to adjust validator trust deposit: %w", err)
}
// Update validator deposit in applicant permission
perm.VpValidatorDeposit += validatorTrustDeposit
}
}
// Set current fees and deposit to zero after processing
perm.VpCurrentFees = 0
perm.VpCurrentDeposit = 0
return ms.Keeper.UpdatePermission(ctx, perm)
}
func (k Keeper) validatorTrustDepositAmount(vpCurrentFees uint64, trustDepositRate math.LegacyDec) uint64 {
vpCurrentFeesDec := math.LegacyNewDec(int64(vpCurrentFees))
validatorTrustDeposit := vpCurrentFeesDec.Mul(trustDepositRate)
return validatorTrustDeposit.TruncateInt().Uint64()
}
package keeper
import (
"context"
"cosmossdk.io/collections"
errors2 "errors"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"regexp"
"sort"
"time"
)
var _ types.QueryServer = Keeper{}
func (k Keeper) ListPermissions(goCtx context.Context, req *types.QueryListPermissionsRequest) (*types.QueryListPermissionsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-PERM-QRY-1-2] Checks
// Validate response_max_size
if req.ResponseMaxSize == 0 {
req.ResponseMaxSize = 64 // Default value
}
if req.ResponseMaxSize < 1 || req.ResponseMaxSize > 1024 {
return nil, status.Error(codes.InvalidArgument, "response_max_size must be between 1 and 1,024")
}
var permissions []types.Permission
// [MOD-PERM-QRY-1-3] Execution
// Collect all matching permissions
err := k.Permission.Walk(ctx, nil, func(key uint64, perm types.Permission) (bool, error) {
// Apply modified_after filter if provided
if req.ModifiedAfter != nil && !perm.Modified.After(*req.ModifiedAfter) {
return false, nil
}
permissions = append(permissions, perm)
return len(permissions) >= int(req.ResponseMaxSize), nil
})
if err != nil {
return nil, status.Error(codes.Internal, err.Error())
}
// Sort by modified time ascending
sort.Slice(permissions, func(i, j int) bool {
return permissions[i].Modified.Before(*permissions[j].Modified)
})
return &types.QueryListPermissionsResponse{
Permissions: permissions,
}, nil
}
func (k Keeper) GetPermission(goCtx context.Context, req *types.QueryGetPermissionRequest) (*types.QueryGetPermissionResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-PERM-QRY-2-2] Checks
if req.Id == 0 {
return nil, status.Error(codes.InvalidArgument, "permission ID cannot be 0")
}
// [MOD-PERM-QRY-2-3] Execution
permission, err := k.Permission.Get(ctx, req.Id)
if err != nil {
if errors2.Is(collections.ErrNotFound, err) {
return nil, status.Error(codes.NotFound, "permission not found")
}
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to get permission: %v", err))
}
return &types.QueryGetPermissionResponse{
Permission: permission,
}, nil
}
func (k Keeper) GetPermissionSession(ctx context.Context, req *types.QueryGetPermissionSessionRequest) (*types.QueryGetPermissionSessionResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
if req.Id == "" {
return nil, status.Error(codes.InvalidArgument, "session ID is required")
}
sdkCtx := sdk.UnwrapSDKContext(ctx)
session, err := k.PermissionSession.Get(sdkCtx, req.Id)
if err != nil {
if errors2.Is(err, collections.ErrNotFound) {
return nil, status.Error(codes.NotFound, "session not found")
}
return nil, status.Error(codes.Internal, "failed to get session")
}
return &types.QueryGetPermissionSessionResponse{
Session: &session,
}, nil
}
func (k Keeper) ListPermissionSessions(ctx context.Context, req *types.QueryListPermissionSessionsRequest) (*types.QueryListPermissionSessionsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
// Validate response_max_size
if req.ResponseMaxSize == 0 {
req.ResponseMaxSize = 64 // Default value
}
if req.ResponseMaxSize < 1 || req.ResponseMaxSize > 1024 {
return nil, status.Error(codes.InvalidArgument, "response_max_size must be between 1 and 1,024")
}
sdkCtx := sdk.UnwrapSDKContext(ctx)
var sessions []types.PermissionSession
err := k.PermissionSession.Walk(sdkCtx, nil, func(key string, session types.PermissionSession) (bool, error) {
// Apply modified_after filter if provided
if req.ModifiedAfter != nil && !session.Modified.After(*req.ModifiedAfter) {
return false, nil
}
sessions = append(sessions, session)
return len(sessions) >= int(req.ResponseMaxSize), nil
})
if err != nil {
return nil, status.Error(codes.Internal, "failed to list sessions")
}
// Sort by modified time ascending
sort.Slice(sessions, func(i, j int) bool {
return sessions[i].Modified.Before(*sessions[j].Modified)
})
return &types.QueryListPermissionSessionsResponse{
Sessions: sessions,
}, nil
}
func (k Keeper) FindPermissionsWithDID(goCtx context.Context, req *types.QueryFindPermissionsWithDIDRequest) (*types.QueryFindPermissionsWithDIDResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-PERM-QRY-3-2] Checks
if req.Did == "" {
return nil, status.Error(codes.InvalidArgument, "DID is required")
}
if !isValidDID(req.Did) {
return nil, status.Error(codes.InvalidArgument, "invalid DID format")
}
// Check type - convert uint32 to PermissionType
if req.Type == 0 {
return nil, status.Error(codes.InvalidArgument, "permission type is required")
}
// Validate permission type value is in range
permType := types.PermissionType(req.Type)
if permType < types.PermissionType_PERMISSION_TYPE_ISSUER ||
permType > types.PermissionType_PERMISSION_TYPE_HOLDER {
return nil, status.Error(codes.InvalidArgument,
fmt.Sprintf("invalid permission type value: %d, must be between 1 and 6", req.Type))
}
// Check schema ID
if req.SchemaId == 0 {
return nil, status.Error(codes.InvalidArgument, "schema ID is required")
}
// Check schema exists
_, err := k.credentialSchemaKeeper.GetCredentialSchemaById(ctx, req.SchemaId)
if err != nil {
return nil, status.Error(codes.NotFound, fmt.Sprintf("credential schema not found: %v", err))
}
// Check country code if provided
if req.Country != "" && !isValidCountryCode(req.Country) {
return nil, status.Error(codes.InvalidArgument, "invalid country code format")
}
// [MOD-PERM-QRY-3-3] Execution
var foundPerms []types.Permission
// TODO: If index is implemented, use it here to get permission IDs by schema and hash
// For now, we'll scan all permissions
err = k.Permission.Walk(ctx, nil, func(id uint64, perm types.Permission) (bool, error) {
// Filter by schema ID
if perm.SchemaId != req.SchemaId {
return false, nil
}
// Filter by DID and type
if perm.Did != req.Did || perm.Type != permType {
return false, nil
}
// Filter by country
if req.Country != "" && perm.Country != "" && perm.Country != req.Country {
return false, nil
}
// If "when" is not specified, add all matching permissions
if req.When == nil {
foundPerms = append(foundPerms, perm)
return false, nil
}
// Filter by time validity
if isPermissionValidAtTime(perm, *req.When) {
foundPerms = append(foundPerms, perm)
}
return false, nil
})
if err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to query permissions: %v", err))
}
return &types.QueryFindPermissionsWithDIDResponse{
Permissions: foundPerms,
}, nil
}
// Helper function to check if a permission is valid at a specific time
func isPermissionValidAtTime(perm types.Permission, when time.Time) bool {
// Check effective_from
if perm.EffectiveFrom != nil && when.Before(*perm.EffectiveFrom) {
return false
}
// Check effective_until
if perm.EffectiveUntil != nil && !when.Before(*perm.EffectiveUntil) {
return false
}
// Check revoked
if perm.Revoked != nil && !when.Before(*perm.Revoked) {
return false
}
// Check terminated
if perm.Terminated != nil && !when.Before(*perm.Terminated) {
return false
}
return true
}
func isValidDID(did string) bool {
// Basic DID validation regex
// This is a simplified version and may need to be expanded based on specific DID method requirements
didRegex := regexp.MustCompile(`^did:[a-zA-Z0-9]+:[a-zA-Z0-9._-]+$`)
return didRegex.MatchString(did)
}
func isValidCountryCode(code string) bool {
// Basic check for ISO 3166-1 alpha-2 format
match, _ := regexp.MatchString(`^[A-Z]{2}$`, code)
return match
}
func (k Keeper) FindBeneficiaries(goCtx context.Context, req *types.QueryFindBeneficiariesRequest) (*types.QueryFindBeneficiariesResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-PERM-QRY-4-2] Checks
// At least one of issuer_perm_id or verifier_perm_id must be provided
if req.IssuerPermId == 0 && req.VerifierPermId == 0 {
return nil, status.Error(codes.InvalidArgument, "at least one of issuer_perm_id or verifier_perm_id must be provided")
}
var issuerPerm, verifierPerm *types.Permission
// Load issuer permission if specified
if req.IssuerPermId != 0 {
perm, err := k.Permission.Get(ctx, req.IssuerPermId)
if err != nil {
return nil, status.Error(codes.NotFound, fmt.Sprintf("issuer permission not found: %v", err))
}
issuerPerm = &perm
}
// Load verifier permission if specified
if req.VerifierPermId != 0 {
perm, err := k.Permission.Get(ctx, req.VerifierPermId)
if err != nil {
return nil, status.Error(codes.NotFound, fmt.Sprintf("verifier permission not found: %v", err))
}
verifierPerm = &perm
}
// [MOD-PERM-QRY-4-3] Execution
// Use a map to implement the set functionality
foundPermMap := make(map[uint64]types.Permission)
// Process issuer permission hierarchy
if issuerPerm != nil {
// Start with the validator of issuer_perm
if issuerPerm.ValidatorPermId != 0 {
currentPermID := issuerPerm.ValidatorPermId
// Traverse up the validator chain
for currentPermID != 0 {
currentPerm, err := k.Permission.Get(ctx, currentPermID)
if err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to get permission: %v", err))
}
// Add to set if not revoked or terminated
if currentPerm.Revoked == nil && currentPerm.Terminated == nil {
foundPermMap[currentPermID] = currentPerm
}
// Move up to the next validator
currentPermID = currentPerm.ValidatorPermId
}
}
}
// Process verifier permission hierarchy
if verifierPerm != nil {
// First add issuer_perm to the set if it exists
if issuerPerm != nil && issuerPerm.Revoked == nil && issuerPerm.Terminated == nil {
foundPermMap[req.IssuerPermId] = *issuerPerm
}
// Start with the validator of verifier_perm
if verifierPerm.ValidatorPermId != 0 {
currentPermID := verifierPerm.ValidatorPermId
// Traverse up the validator chain
for currentPermID != 0 {
currentPerm, err := k.Permission.Get(ctx, currentPermID)
if err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to get permission: %v", err))
}
// Add to set if not revoked or terminated
if currentPerm.Revoked == nil && currentPerm.Terminated == nil {
foundPermMap[currentPermID] = currentPerm
}
// Move up to the next validator
currentPermID = currentPerm.ValidatorPermId
}
}
}
// Convert map to array
permissions := make([]types.Permission, 0, len(foundPermMap))
for _, perm := range foundPermMap {
permissions = append(permissions, perm)
}
return &types.QueryFindBeneficiariesResponse{
Permissions: permissions,
}, nil
}
package keeper
import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil
}
package keeper
import (
"cosmossdk.io/math"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
credentialschematypes "github.com/verana-labs/verana-blockchain/x/credentialschema/types"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
func (ms msgServer) validatePermissionChecks(ctx sdk.Context, msg *types.MsgStartPermissionVP) (types.Permission, error) {
// Load validator permission
validatorPerm, err := ms.Keeper.GetPermissionByID(ctx, msg.ValidatorPermId)
if err != nil {
return types.Permission{}, fmt.Errorf("validator permission not found: %w", err)
}
// Check if validator permission is valid
if err := IsValidPermission(validatorPerm, msg.Country, ctx.BlockTime()); err != nil {
return types.Permission{}, fmt.Errorf("validator permission is not valid: %w", err)
}
// Check country compatibility
if validatorPerm.Country != "" && validatorPerm.Country != msg.Country {
return types.Permission{}, fmt.Errorf("validator permission country mismatch")
}
// Load credential schema
cs, err := ms.credentialSchemaKeeper.GetCredentialSchemaById(ctx, validatorPerm.SchemaId)
if err != nil {
return types.Permission{}, fmt.Errorf("credential schema not found: %w", err)
}
// Validate permission type combinations
if err := validatePermissionTypeCombination(types.PermissionType(msg.Type), validatorPerm.Type, cs); err != nil {
return types.Permission{}, err
}
return validatorPerm, nil
}
func (ms msgServer) validateAndCalculateFees(ctx sdk.Context, creator string, validatorPerm types.Permission) (uint64, uint64, error) {
// Get global variables
trustUnitPrice := ms.trustRegistryKeeper.GetTrustUnitPrice(ctx)
trustDepositRate := ms.trustDeposit.GetTrustDepositRate(ctx)
validationFeesInDenom := validatorPerm.ValidationFees * trustUnitPrice
validationTrustDepositInDenom := ms.Keeper.validationTrustDepositInDenomAmount(validationFeesInDenom, trustDepositRate)
return validationFeesInDenom, validationTrustDepositInDenom, nil
}
func (k Keeper) validationTrustDepositInDenomAmount(validationFeesInDenom uint64, trustDepositRate math.LegacyDec) uint64 {
validationFeesInDenomDec := math.LegacyNewDec(int64(validationFeesInDenom))
validationTrustDepositInDenom := validationFeesInDenomDec.Mul(trustDepositRate)
return validationTrustDepositInDenom.TruncateInt().Uint64()
}
func (ms msgServer) executeStartPermissionVP(ctx sdk.Context, msg *types.MsgStartPermissionVP, validatorPerm types.Permission, fees, deposit uint64) (uint64, error) {
// Increment trust deposit if deposit is greater than 0
if deposit > 0 {
if err := ms.trustDeposit.AdjustTrustDeposit(ctx, msg.Creator, int64(deposit)); err != nil {
return 0, fmt.Errorf("failed to increase trust deposit: %w", err)
}
}
// Send validation fees to escrow account if greater than 0
if fees > 0 {
// Get sender address
senderAddr, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return 0, fmt.Errorf("invalid creator address: %w", err)
}
// Transfer fees to module escrow account
err = ms.bankKeeper.SendCoinsFromAccountToModule(
ctx,
senderAddr,
types.ModuleName, // Using module name as the escrow account
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(fees))),
)
if err != nil {
return 0, fmt.Errorf("failed to transfer validation fees to escrow: %w", err)
}
}
// Create new permission entry
now := ctx.BlockTime()
newPerm := types.Permission{
Type: types.PermissionType(msg.Type),
Did: msg.Did,
Grantee: msg.Creator,
Created: &now,
CreatedBy: msg.Creator,
Modified: &now,
ValidationFees: 0,
IssuanceFees: 0,
VerificationFees: 0,
Deposit: deposit,
Country: msg.Country,
ValidatorPermId: msg.ValidatorPermId,
VpState: types.ValidationState_VALIDATION_STATE_PENDING,
VpLastStateChange: &now,
VpCurrentFees: fees,
VpCurrentDeposit: deposit,
}
// Store the permission
id, err := ms.Keeper.CreatePermission(ctx, newPerm)
if err != nil {
return 0, fmt.Errorf("failed to create permission: %w", err)
}
return id, nil
}
func validatePermissionTypeCombination(requestedType, validatorType types.PermissionType, cs credentialschematypes.CredentialSchema) error {
switch requestedType {
case types.PermissionType_PERMISSION_TYPE_ISSUER:
if cs.IssuerPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_GRANTOR_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_ISSUER_GRANTOR {
return fmt.Errorf("issuer permission requires ISSUER_GRANTOR validator")
}
} else if cs.IssuerPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_TRUST_REGISTRY {
return fmt.Errorf("issuer permission requires TRUST_REGISTRY validator")
}
} else {
return fmt.Errorf("issuer permission not supported with current schema settings")
}
case types.PermissionType_PERMISSION_TYPE_ISSUER_GRANTOR:
if cs.IssuerPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_GRANTOR_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_TRUST_REGISTRY {
return fmt.Errorf("issuer grantor permission requires TRUST_REGISTRY validator")
}
} else {
return fmt.Errorf("issuer grantor permission not supported with current schema settings")
}
case types.PermissionType_PERMISSION_TYPE_VERIFIER:
if cs.VerifierPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_GRANTOR_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_VERIFIER_GRANTOR {
return fmt.Errorf("verifier permission requires VERIFIER_GRANTOR validator")
}
} else if cs.VerifierPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_TRUST_REGISTRY {
return fmt.Errorf("verifier permission requires TRUST_REGISTRY validator")
}
} else {
return fmt.Errorf("verifier permission not supported with current schema settings")
}
case types.PermissionType_PERMISSION_TYPE_VERIFIER_GRANTOR:
if cs.VerifierPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_GRANTOR_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_TRUST_REGISTRY {
return fmt.Errorf("verifier grantor permission requires TRUST_REGISTRY validator")
}
} else {
return fmt.Errorf("verifier grantor permission not supported with current schema settings")
}
case types.PermissionType_PERMISSION_TYPE_HOLDER:
if cs.VerifierPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_GRANTOR_VALIDATION ||
cs.VerifierPermManagementMode == credentialschematypes.CredentialSchemaPermManagementMode_TRUST_REGISTRY_VALIDATION {
if validatorType != types.PermissionType_PERMISSION_TYPE_ISSUER {
return fmt.Errorf("holder permission requires ISSUER validator")
}
} else {
return fmt.Errorf("holder permission not supported with current schema settings")
}
}
return nil
}
package permission
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/permission"
)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "Params",
Use: "params",
Short: "Shows the parameters of the module",
},
{
RpcMethod: "ListPermissions",
Use: "list-permissions",
Short: "List all permissions",
Long: "List all permissions with optional filtering by modified time and pagination",
FlagOptions: map[string]*autocliv1.FlagOptions{
"modified_after": {
Name: "modified-after",
Usage: "Filter by modified time (RFC3339 format)",
DefaultValue: "",
},
"response_max_size": {
Name: "response-max-size",
Usage: "Maximum number of results to return (1-1024)",
DefaultValue: "64",
},
},
},
{
RpcMethod: "GetPermission",
Use: "get-permission [id]",
Short: "Get permission by ID",
Long: "Get detailed information about a permission by its ID",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
{
RpcMethod: "GetPermissionSession",
Use: "get-permission-session [id]",
Short: "Get permission session by ID",
Long: "Get details about a specific permission session by its ID",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
{
RpcMethod: "ListPermissionSessions",
Use: "list-permission-sessions",
Short: "List permission sessions",
Long: "List all permission sessions with optional filtering and pagination",
FlagOptions: map[string]*autocliv1.FlagOptions{
"modified_after": {
Name: "modified-after",
Usage: "Filter by modified time (RFC3339 format)",
DefaultValue: "",
},
"response_max_size": {
Name: "response-max-size",
Usage: "Maximum number of results to return (1-1024)",
DefaultValue: "64",
},
},
},
{
RpcMethod: "FindPermissionsWithDID",
Use: "find-permissions-with-did [did] [type] [schema-id]",
Short: "Find permissions with DID",
Long: "Find permissions matching the specified DID, type, and schema ID with optional filtering by country and timestamp",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
{ProtoField: "type"},
{ProtoField: "schema_id"},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"country": {
Name: "country",
DefaultValue: "",
Usage: "Filter by country code (ISO 3166-1 alpha-2)",
},
"when": {
Name: "when",
DefaultValue: "",
Usage: "Filter by validity at specified timestamp (RFC3339 format)",
},
},
},
{
RpcMethod: "FindBeneficiaries",
Use: "find-beneficiaries",
Short: "Find beneficiary permissions in the permission tree",
Long: "Find beneficiary permissions by traversing the permission tree for issuer and/or verifier permissions",
FlagOptions: map[string]*autocliv1.FlagOptions{
"issuer_perm_id": {
Name: "issuer-perm-id",
DefaultValue: "0",
Usage: "ID of the issuer permission",
},
"verifier_perm_id": {
Name: "verifier-perm-id",
DefaultValue: "0",
Usage: "ID of the verifier permission",
},
},
},
// this line is used by ignite scaffolding # autocli/query
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Msg_ServiceDesc.ServiceName,
EnhanceCustomCommand: true, // only required if you want to use the custom command
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "UpdateParams",
Skip: true, // skipped because authority gated
},
{
RpcMethod: "StartPermissionVP",
Use: "start-permission-vp [type] [validator-perm-id] [country]",
Short: "Start a new permission validation process",
Long: `Start a new permission validation process with the specified parameters:
- type: Permission type (0=Unspecified, 1=Issuer, 2=Verifier, 3=IssuerGrantor, 4=VerifierGrantor, 5=TrustRegistry, 6=Holder)
- validator-perm-id: ID of the validator permission
- country: ISO 3166-1 alpha-2 country code`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "type",
},
{
ProtoField: "validator_perm_id",
},
{
ProtoField: "country",
},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"did": {
Name: "did",
Usage: "Optional DID for this permission",
DefaultValue: "",
},
},
},
{
RpcMethod: "RenewPermissionVP",
Use: "renew-permission-vp [id]",
Short: "Renew a permission validation process",
Long: `Renew a permission validation process for an existing permission:
- id: ID of the permission to renew`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
{
RpcMethod: "SetPermissionVPToValidated",
Use: "set-permission-vp-validated [id]",
Short: "Set permission validation process to validated state",
Long: `Set a permission validation process to validated state with optional parameters:
- id: ID of the permission to validate
- effective-until: Optional timestamp until when this permission is effective (RFC3339 format)
- validation-fees: Optional validation fees
- issuance-fees: Optional issuance fees
- verification-fees: Optional verification fees
- country: Optional country code (ISO 3166-1 alpha-2)
- vp-summary-digest-sri: Optional digest SRI of validation information`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"effective_until": {
Name: "effective-until",
Usage: "Timestamp until when this permission is effective (RFC3339)",
DefaultValue: "",
},
"validation_fees": {
Name: "validation-fees",
Usage: "Validation fees",
DefaultValue: "0",
},
"issuance_fees": {
Name: "issuance-fees",
Usage: "Issuance fees",
DefaultValue: "0",
},
"verification_fees": {
Name: "verification-fees",
Usage: "Verification fees",
DefaultValue: "0",
},
"country": {
Name: "country",
Usage: "Country code (ISO 3166-1 alpha-2)",
DefaultValue: "",
},
"vp_summary_digest_sri": {
Name: "vp-summary-digest-sri",
Usage: "Digest SRI of validation information",
DefaultValue: "",
},
},
},
{
RpcMethod: "RequestPermissionVPTermination",
Use: "request-vp-termination [id]",
Short: "Request termination of a permission validation process",
Long: `Request termination of a permission validation process:
- id: ID of the permission validation process to terminate
Note: For expired VPs, either the grantee or validator can request termination.
For active VPs, only the grantee can request termination unless it's a HOLDER type.`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
// Add to the RpcCommandOptions array in the Tx ServiceCommandDescriptor:
{
RpcMethod: "ConfirmPermissionVPTermination",
Use: "confirm-vp-termination [id]",
Short: "Confirm the termination of a permission VP",
Long: "Confirm the termination of a permission VP. Can be called by the validator, or by the grantee after the timeout period has elapsed.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
{
RpcMethod: "CancelPermissionVPLastRequest",
Use: "cancel-permission-vp-request [id]",
Short: "Cancel a pending permission VP request",
Long: "Cancel a pending permission VP request. Can only be executed by the permission grantee and only when the permission is in PENDING state.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
{
RpcMethod: "CreateRootPermission",
Use: "create-root-permission [schema-id] [did] [validation-fees] [issuance-fees] [verification-fees]",
Short: "Create a new root permission for a credential schema",
Long: "Create a new root permission for a credential schema. Can only be executed by the trust registry controller.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "schema_id",
},
{
ProtoField: "did",
},
{
ProtoField: "validation_fees",
},
{
ProtoField: "issuance_fees",
},
{
ProtoField: "verification_fees",
},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"country": {
Name: "country",
DefaultValue: "",
Usage: "Optional country code (ISO 3166-1 alpha-2)",
},
"effective_from": {
Name: "effective-from",
DefaultValue: "",
Usage: "Optional timestamp (RFC3339) from when the permission is effective",
},
"effective_until": {
Name: "effective-until",
DefaultValue: "",
Usage: "Optional timestamp (RFC3339) until when the permission is effective",
},
},
},
{
RpcMethod: "ExtendPermission",
Use: "extend-permission [id] [effective-until]",
Short: "Extend a permission's effective duration",
Long: "Extend a permission's effective duration. Can only be executed by the validator of the permission.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
{
ProtoField: "effective_until",
},
},
},
{
RpcMethod: "RevokePermission",
Use: "revoke-permission [id]",
Short: "Revoke a permission",
Long: "Revoke a permission. Can only be executed by the validator of the permission.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
},
},
{
RpcMethod: "CreateOrUpdatePermissionSession",
Use: "create-or-update-perm-session [id] [agent-perm-id]",
Short: "Create or update a permission session",
Long: `Create or update a permission session with the specified parameters:
- id: UUID of the session
- agent-perm-id: ID of the agent permission (HOLDER)
Optional parameters:
- issuer-perm-id: ID of the issuer permission
- verifier-perm-id: ID of the verifier permission
- wallet-agent-perm-id: ID of the wallet agent permission if different from agent
At least one of issuer-perm-id or verifier-perm-id must be provided.`,
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "id",
},
{
ProtoField: "agent_perm_id",
},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"issuer_perm_id": {
Name: "issuer-perm-id",
Usage: "ID of the issuer permission",
DefaultValue: "0",
},
"verifier_perm_id": {
Name: "verifier-perm-id",
Usage: "ID of the verifier permission",
DefaultValue: "0",
},
"wallet_agent_perm_id": {
Name: "wallet-agent-perm-id",
Usage: "ID of the wallet agent permission if different from agent",
DefaultValue: "0",
},
},
},
// this line is used by ignite scaffolding # autocli/tx
},
},
}
}
package permission
import (
"errors"
"fmt"
"sort"
"cosmossdk.io/collections"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/permission/keeper"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
// DefaultGenesis returns the default genesis state
func DefaultGenesis() *types.GenesisState {
return &types.GenesisState{
Params: types.DefaultParams(),
Permissions: []types.Permission{},
PermissionSessions: []types.PermissionSession{},
NextPermissionId: 1, // Start with 1 as first ID
}
}
// InitGenesis initializes the module's state from a provided genesis state.
func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
// Set module parameters
if err := k.SetParams(ctx, genState.Params); err != nil {
panic(err)
}
// Import all permissions
for _, perm := range genState.Permissions {
if err := k.Permission.Set(ctx, perm.Id, perm); err != nil {
panic(fmt.Errorf("failed to set permission: %w", err))
}
}
// Import all permission sessions
for _, session := range genState.PermissionSessions {
if err := k.PermissionSession.Set(ctx, session.Id, session); err != nil {
panic(fmt.Errorf("failed to set permission session: %w", err))
}
}
// Set the permissions counter
if err := k.PermissionCounter.Set(ctx, genState.NextPermissionId); err != nil {
panic(fmt.Errorf("failed to set permission counter: %w", err))
}
}
// ExportGenesis returns the module's exported genesis.
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
genesis := DefaultGenesis()
// Export module parameters
genesis.Params = k.GetParams(ctx)
// Export all permissions
permissions := []types.Permission{}
if err := k.Permission.Walk(ctx, nil, func(id uint64, perm types.Permission) (bool, error) {
permissions = append(permissions, perm)
return false, nil
}); err != nil {
panic(fmt.Errorf("failed to export permissions: %w", err))
}
// Sort permissions by ID for deterministic output
sort.Slice(permissions, func(i, j int) bool {
return permissions[i].Id < permissions[j].Id
})
genesis.Permissions = permissions
// Export all permission sessions
sessions := []types.PermissionSession{}
if err := k.PermissionSession.Walk(ctx, nil, func(id string, session types.PermissionSession) (bool, error) {
sessions = append(sessions, session)
return false, nil
}); err != nil {
panic(fmt.Errorf("failed to export permission sessions: %w", err))
}
// Sort sessions by ID for deterministic output
sort.Slice(sessions, func(i, j int) bool {
return sessions[i].Id < sessions[j].Id
})
genesis.PermissionSessions = sessions
// Export permission counter
nextId, err := k.PermissionCounter.Get(ctx)
if err != nil && !errors.Is(err, collections.ErrNotFound) {
panic(fmt.Errorf("failed to get permission counter: %w", err))
}
// In case of no permissions, set next ID to 1
if errors.Is(err, collections.ErrNotFound) {
nextId = 1
}
genesis.NextPermissionId = nextId
return genesis
}
package permission
import (
"context"
"encoding/json"
"fmt"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
// this line is used by starport scaffolding # 1
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/permission/module"
"github.com/verana-labs/verana-blockchain/x/permission/keeper"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
var (
_ module.AppModuleBasic = (*AppModule)(nil)
_ module.AppModuleSimulation = (*AppModule)(nil)
_ module.HasGenesis = (*AppModule)(nil)
_ module.HasInvariants = (*AppModule)(nil)
_ module.HasConsensusVersion = (*AppModule)(nil)
_ appmodule.AppModule = (*AppModule)(nil)
_ appmodule.HasBeginBlocker = (*AppModule)(nil)
_ appmodule.HasEndBlocker = (*AppModule)(nil)
)
// ----------------------------------------------------------------------------
// AppModuleBasic
// ----------------------------------------------------------------------------
// AppModuleBasic implements the AppModuleBasic interface that defines the
// independent methods a Cosmos SDK module needs to implement.
type AppModuleBasic struct {
cdc codec.BinaryCodec
}
func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic {
return AppModuleBasic{cdc: cdc}
}
// Name returns the name of the module as a string.
func (AppModuleBasic) Name() string {
return types.ModuleName
}
// RegisterLegacyAminoCodec registers the amino codec for the module, which is used
// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message.
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) {
types.RegisterInterfaces(reg)
}
// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage.
// The default GenesisState need to be defined by the module developer and is primarily used for testing.
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(types.DefaultGenesis())
}
// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form.
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
var genState types.GenesisState
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err)
}
return genState.Validate()
}
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
panic(err)
}
}
// ----------------------------------------------------------------------------
// AppModule
// ----------------------------------------------------------------------------
// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement
type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
}
func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
accountKeeper types.AccountKeeper,
bankKeeper types.BankKeeper,
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(cdc),
keeper: keeper,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
}
}
// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}
// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted)
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
// InitGenesis performs the module's genesis initialization. It returns no validator updates.
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) {
var genState types.GenesisState
// Initialize global index to index in genesis state
cdc.MustUnmarshalJSON(gs, &genState)
InitGenesis(ctx, am.keeper, genState)
}
// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
genState := ExportGenesis(ctx, am.keeper)
return cdc.MustMarshalJSON(genState)
}
// ConsensusVersion is a sequence number for state-breaking change of the module.
// It should be incremented on each consensus-breaking change introduced by the module.
// To avoid wrong/empty versions, the initial version should be set to 1.
func (AppModule) ConsensusVersion() uint64 { return 1 }
// BeginBlock contains the logic that is automatically triggered at the beginning of each block.
// The begin block implementation is optional.
func (am AppModule) BeginBlock(_ context.Context) error {
return nil
}
// EndBlock contains the logic that is automatically triggered at the end of each block.
// The end block implementation is optional.
func (am AppModule) EndBlock(_ context.Context) error {
return nil
}
// IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (am AppModule) IsOnePerModuleType() {}
// IsAppModule implements the appmodule.AppModule interface.
func (am AppModule) IsAppModule() {}
// ----------------------------------------------------------------------------
// App Wiring Setup
// ----------------------------------------------------------------------------
func init() {
appmodule.Register(
&modulev1.Module{},
appmodule.Provide(ProvideModule),
)
}
type ModuleInputs struct {
depinject.In
StoreService store.KVStoreService
Cdc codec.Codec
Config *modulev1.Module
Logger log.Logger
AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
CredentialSchemaKeeper types.CredentialSchemaKeeper `optional:"true"`
TrustRegistryKeeper types.TrustRegistryKeeper `optional:"true"`
TrustDepositKeeper types.TrustDepositKeeper `optional:"true"`
}
type ModuleOutputs struct {
depinject.Out
PermissionKeeper keeper.Keeper
Module appmodule.AppModule
}
func ProvideModule(in ModuleInputs) ModuleOutputs {
// default to governance authority if not provided
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
k := keeper.NewKeeper(
in.Cdc,
in.StoreService,
in.Logger,
authority.String(),
in.CredentialSchemaKeeper,
in.TrustRegistryKeeper,
in.TrustDepositKeeper,
in.BankKeeper,
)
m := NewAppModule(
in.Cdc,
k,
in.AccountKeeper,
in.BankKeeper,
)
return ModuleOutputs{PermissionKeeper: k, Module: m}
}
package permission
import (
"math/rand"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/verana-labs/verana-blockchain/testutil/sample"
permissionsimulation "github.com/verana-labs/verana-blockchain/x/permission/simulation"
"github.com/verana-labs/verana-blockchain/x/permission/types"
)
// avoid unused import issue
var (
_ = permissionsimulation.FindAccount
_ = rand.Rand{}
_ = sample.AccAddress
_ = sdk.AccAddress{}
_ = simulation.MsgEntryKind
)
const (
// this line is used by starport scaffolding # simapp/module/const
)
// GenerateGenesisState creates a randomized GenState of the module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs := make([]string, len(simState.Accounts))
for i, acc := range simState.Accounts {
accs[i] = acc.Address.String()
}
permissionGenesis := types.GenesisState{
Params: types.DefaultParams(),
// this line is used by starport scaffolding # simapp/module/genesisState
}
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&permissionGenesis)
}
// RegisterStoreDecoder registers a decoder.
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {}
// WeightedOperations returns the all the gov module operations with their respective weights.
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
operations := make([]simtypes.WeightedOperation, 0)
// this line is used by starport scaffolding # simapp/module/operation
return operations
}
// ProposalMsgs returns msgs used for governance proposals for simulations.
func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg {
return []simtypes.WeightedProposalMsg{
// this line is used by starport scaffolding # simapp/module/OpMsg
}
}
package simulation
import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
// FindAccount find a specific address from an account list
func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) {
creator, err := sdk.AccAddressFromBech32(address)
if err != nil {
panic(err)
}
return simtypes.FindAccount(accs, creator)
}
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
// this line is used by starport scaffolding # 1
)
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgStartPermissionVP{}, "/perm/v1/start-permission-vp")
legacy.RegisterAminoMsg(cdc, &MsgRenewPermissionVP{}, "/perm/v1/renew-permission-vp")
legacy.RegisterAminoMsg(cdc, &MsgSetPermissionVPToValidated{}, "/perm/v1/set-permission-vp-validated")
legacy.RegisterAminoMsg(cdc, &MsgRequestPermissionVPTermination{}, "/perm/v1/request-vp-termination")
legacy.RegisterAminoMsg(cdc, &MsgConfirmPermissionVPTermination{}, "/perm/v1/confirm-vp-termination")
legacy.RegisterAminoMsg(cdc, &MsgCancelPermissionVPLastRequest{}, "/perm/v1/cancel-permission-vp-request")
legacy.RegisterAminoMsg(cdc, &MsgCreateRootPermission{}, "/perm/v1/create-root-permission")
legacy.RegisterAminoMsg(cdc, &MsgExtendPermission{}, "/perm/v1/extend-permission")
legacy.RegisterAminoMsg(cdc, &MsgRevokePermission{}, "/perm/v1/revoke-permission")
legacy.RegisterAminoMsg(cdc, &MsgCreateOrUpdatePermissionSession{}, "/perm/v1/create-or-update-perm-session")
}
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// this line is used by starport scaffolding # 3
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUpdateParams{},
&MsgStartPermissionVP{},
&MsgRenewPermissionVP{},
&MsgSetPermissionVPToValidated{},
&MsgRequestPermissionVPTermination{},
&MsgConfirmPermissionVPTermination{},
&MsgCancelPermissionVPLastRequest{},
&MsgCreateRootPermission{},
&MsgExtendPermission{},
&MsgRevokePermission{},
&MsgCreateOrUpdatePermissionSession{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
package types
import (
"fmt"
)
// DefaultGenesis returns the default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
Params: DefaultParams(),
Permissions: []Permission{},
PermissionSessions: []PermissionSession{},
NextPermissionId: 1,
}
}
// Validate performs basic genesis state validation returning an error upon any
// failure.
func (gs GenesisState) Validate() error {
// Validate params
if err := gs.Params.Validate(); err != nil {
return err
}
// Check for duplicate permission IDs
permissionIds := make(map[uint64]bool)
maxPermId := uint64(0)
for _, perm := range gs.Permissions {
// Check if ID exists
if perm.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
// Check for duplicate IDs
if _, exists := permissionIds[perm.Id]; exists {
return fmt.Errorf("duplicate permission ID found: %d", perm.Id)
}
permissionIds[perm.Id] = true
// Track highest permission ID
if perm.Id > maxPermId {
maxPermId = perm.Id
}
// Validate each permission
if err := validatePermission(perm, gs.Permissions); err != nil {
return err
}
// Validate timestamps are chronologically consistent
if err := validatePermissionTimestamps(perm); err != nil {
return err
}
}
// Check for duplicate session IDs
sessionIds := make(map[string]bool)
for _, session := range gs.PermissionSessions {
// Check if ID exists
if session.Id == "" {
return fmt.Errorf("permission session ID cannot be empty")
}
// Check for duplicate IDs
if _, exists := sessionIds[session.Id]; exists {
return fmt.Errorf("duplicate permission session ID found: %s", session.Id)
}
sessionIds[session.Id] = true
// Validate permission references
if err := validatePermissionSession(session, permissionIds); err != nil {
return err
}
}
// Validate next permission ID is greater than max permission ID
if gs.NextPermissionId <= maxPermId {
return fmt.Errorf("next_permission_id (%d) must be greater than the maximum permission ID (%d)",
gs.NextPermissionId, maxPermId)
}
return nil
}
// validatePermission validates a single permission
func validatePermission(perm Permission, allPerms []Permission) error {
// Check required fields
if perm.Type == 0 {
return fmt.Errorf("permission type cannot be 0 for permission ID %d", perm.Id)
}
if perm.Grantee == "" {
return fmt.Errorf("grantee cannot be empty for permission ID %d", perm.Id)
}
// Validate validator permission reference
if perm.ValidatorPermId != 0 {
validatorFound := false
// Check if validator permission exists
for _, p := range allPerms {
if p.Id == perm.ValidatorPermId {
validatorFound = true
break
}
}
if !validatorFound {
return fmt.Errorf("validator permission ID %d not found for permission ID %d",
perm.ValidatorPermId, perm.Id)
}
}
return nil
}
// validatePermissionTimestamps validates that timestamps are chronologically consistent
func validatePermissionTimestamps(perm Permission) error {
// Check that modified time exists
if perm.Modified == nil {
return fmt.Errorf("modified timestamp is required for permission ID %d", perm.Id)
}
// Check that created time exists
if perm.Created == nil {
return fmt.Errorf("created timestamp is required for permission ID %d", perm.Id)
}
// If effective_from and effective_until both exist, ensure effective_from is before effective_until
if perm.EffectiveFrom != nil && perm.EffectiveUntil != nil {
if !perm.EffectiveFrom.Before(*perm.EffectiveUntil) {
return fmt.Errorf("effective_from must be before effective_until for permission ID %d", perm.Id)
}
}
// If extended time exists, it should be after created time
if perm.Extended != nil && perm.Created != nil {
if !perm.Created.Before(*perm.Extended) {
return fmt.Errorf("extended timestamp must be after created timestamp for permission ID %d", perm.Id)
}
}
return nil
}
// validatePermissionSession validates a single permission session
func validatePermissionSession(session PermissionSession, permissionIds map[uint64]bool) error {
// Check that agent permission exists
if session.AgentPermId == 0 {
return fmt.Errorf("agent permission ID cannot be 0 for session ID %s", session.Id)
}
if !permissionIds[session.AgentPermId] {
return fmt.Errorf("agent permission ID %d not found for session ID %s", session.AgentPermId, session.Id)
}
// Validate timestamps
if session.Created == nil {
return fmt.Errorf("created timestamp is required for session ID %s", session.Id)
}
if session.Modified == nil {
return fmt.Errorf("modified timestamp is required for session ID %s", session.Id)
}
// Validate each authorization entry
for i, authz := range session.Authz {
// At least one of executor or beneficiary must be set
if authz.ExecutorPermId == 0 && authz.BeneficiaryPermId == 0 {
return fmt.Errorf("at least one of executor_perm_id or beneficiary_perm_id must be set for session ID %s, authz index %d",
session.Id, i)
}
// Check that executor permission exists if set
if authz.ExecutorPermId != 0 && !permissionIds[authz.ExecutorPermId] {
return fmt.Errorf("executor permission ID %d not found for session ID %s, authz index %d",
authz.ExecutorPermId, session.Id, i)
}
// Check that beneficiary permission exists if set
if authz.BeneficiaryPermId != 0 && !permissionIds[authz.BeneficiaryPermId] {
return fmt.Errorf("beneficiary permission ID %d not found for session ID %s, authz index %d",
authz.BeneficiaryPermId, session.Id, i)
}
// Check that wallet agent permission exists if set
if authz.WalletAgentPermId != 0 && !permissionIds[authz.WalletAgentPermId] {
return fmt.Errorf("wallet agent permission ID %d not found for session ID %s, authz index %d",
authz.WalletAgentPermId, session.Id, i)
}
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/permission/genesis.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the permission module's genesis state.
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// permissions is a list of all Permission objects
Permissions []Permission `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions"`
// permission_sessions is a list of all PermissionSession objects
PermissionSessions []PermissionSession `protobuf:"bytes,3,rep,name=permission_sessions,json=permissionSessions,proto3" json:"permission_sessions"`
// next_permission_id is the next auto-increment ID to be assigned to a new permission
NextPermissionId uint64 `protobuf:"varint,4,opt,name=next_permission_id,json=nextPermissionId,proto3" json:"next_permission_id,omitempty"`
}
func (m *GenesisState) Reset() { *m = GenesisState{} }
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
func (*GenesisState) ProtoMessage() {}
func (*GenesisState) Descriptor() ([]byte, []int) {
return fileDescriptor_0742f0621bbf9e88, []int{0}
}
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GenesisState) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenesisState.Merge(m, src)
}
func (m *GenesisState) XXX_Size() int {
return m.Size()
}
func (m *GenesisState) XXX_DiscardUnknown() {
xxx_messageInfo_GenesisState.DiscardUnknown(m)
}
var xxx_messageInfo_GenesisState proto.InternalMessageInfo
func (m *GenesisState) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
func (m *GenesisState) GetPermissions() []Permission {
if m != nil {
return m.Permissions
}
return nil
}
func (m *GenesisState) GetPermissionSessions() []PermissionSession {
if m != nil {
return m.PermissionSessions
}
return nil
}
func (m *GenesisState) GetNextPermissionId() uint64 {
if m != nil {
return m.NextPermissionId
}
return 0
}
func init() {
proto.RegisterType((*GenesisState)(nil), "veranablockchain.permission.GenesisState")
}
func init() {
proto.RegisterFile("veranablockchain/permission/genesis.proto", fileDescriptor_0742f0621bbf9e88)
}
var fileDescriptor_0742f0621bbf9e88 = []byte{
// 310 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2c, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x48, 0x2d,
0xca, 0xcd, 0x2c, 0x2e, 0xce, 0xcc, 0xcf, 0xd3, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6,
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x46, 0x57, 0xaa, 0x87, 0x50, 0x2a, 0x25, 0x98, 0x98,
0x9b, 0x99, 0x97, 0xaf, 0x0f, 0x26, 0x21, 0xea, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4c,
0x7d, 0x10, 0x0b, 0x2a, 0xaa, 0x81, 0xcf, 0xc2, 0x82, 0xc4, 0xa2, 0xc4, 0x5c, 0xa8, 0x7d, 0x52,
0xea, 0xf8, 0x54, 0x96, 0x54, 0x16, 0xa4, 0x42, 0x15, 0x2a, 0xed, 0x61, 0xe2, 0xe2, 0x71, 0x87,
0x38, 0x35, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0xc8, 0x8d, 0x8b, 0x0d, 0x62, 0x92, 0x04, 0xa3, 0x02,
0xa3, 0x06, 0xb7, 0x91, 0xb2, 0x1e, 0x1e, 0xa7, 0xeb, 0x05, 0x80, 0x95, 0x3a, 0x71, 0x9e, 0xb8,
0x27, 0xcf, 0xb0, 0xe2, 0xf9, 0x06, 0x2d, 0xc6, 0x20, 0xa8, 0x6e, 0x21, 0x7f, 0x2e, 0x6e, 0x84,
0xba, 0x62, 0x09, 0x26, 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x75, 0xfc, 0x86, 0xc1, 0x99, 0x4e, 0x2c,
0x20, 0x03, 0x83, 0x90, 0x4d, 0x10, 0x4a, 0xe5, 0x12, 0x46, 0x70, 0xe3, 0x8b, 0x53, 0xa1, 0x06,
0x33, 0x83, 0x0d, 0xd6, 0x23, 0xd2, 0xe0, 0xe0, 0x54, 0x64, 0xf3, 0x85, 0x0a, 0xd0, 0x25, 0x8a,
0x85, 0x74, 0xb8, 0x84, 0xf2, 0x52, 0x2b, 0x4a, 0xe2, 0x91, 0xec, 0xca, 0x4c, 0x91, 0x60, 0x51,
0x60, 0xd4, 0x60, 0x09, 0x12, 0x00, 0xc9, 0x20, 0x0c, 0xf3, 0x4c, 0x71, 0x0a, 0x3d, 0xf1, 0x48,
0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0,
0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xeb, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd,
0xe4, 0xfc, 0x5c, 0x7d, 0x88, 0xdb, 0x74, 0x73, 0x12, 0x93, 0x8a, 0x61, 0x6c, 0xa4, 0x98, 0xa9,
0xc0, 0x88, 0x9b, 0x24, 0x36, 0x70, 0xe4, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x2c,
0x71, 0x95, 0x62, 0x02, 0x00, 0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.NextPermissionId != 0 {
i = encodeVarintGenesis(dAtA, i, uint64(m.NextPermissionId))
i--
dAtA[i] = 0x20
}
if len(m.PermissionSessions) > 0 {
for iNdEx := len(m.PermissionSessions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.PermissionSessions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
}
}
if len(m.Permissions) > 0 {
for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Permissions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
offset -= sovGenesis(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *GenesisState) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovGenesis(uint64(l))
if len(m.Permissions) > 0 {
for _, e := range m.Permissions {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
if len(m.PermissionSessions) > 0 {
for _, e := range m.PermissionSessions {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
if m.NextPermissionId != 0 {
n += 1 + sovGenesis(uint64(m.NextPermissionId))
}
return n
}
func sovGenesis(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozGenesis(x uint64) (n int) {
return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *GenesisState) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Permissions = append(m.Permissions, Permission{})
if err := m.Permissions[len(m.Permissions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PermissionSessions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.PermissionSessions = append(m.PermissionSessions, PermissionSession{})
if err := m.PermissionSessions[len(m.PermissionSessions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field NextPermissionId", wireType)
}
m.NextPermissionId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.NextPermissionId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGenesis(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthGenesis
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupGenesis
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthGenesis
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
package types
import "cosmossdk.io/collections"
const (
// ModuleName defines the module name
ModuleName = "permission"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_permission"
)
const (
BondDenom = "uvna"
)
var (
ParamsKey = []byte("p_permission")
PermissionKey = collections.NewPrefix(0)
PermissionCounterKey = collections.NewPrefix(1)
PermissionSessionKey = collections.NewPrefix(2)
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
package types
import (
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var _ sdk.Msg = &MsgUpdateParams{}
// ValidateBasic does a sanity check on the provided data.
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errorsmod.Wrap(err, "invalid authority address")
}
if err := m.Params.Validate(); err != nil {
return err
}
return nil
}
package types
import (
"fmt"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
var _ paramtypes.ParamSet = (*Params)(nil)
const (
DefaultValidationTermRequestedTimeoutDays = uint64(7) // 7 days
)
// ParamKeyTable the param key table for launch module
func ParamKeyTable() paramtypes.KeyTable {
return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
// NewParams creates a new Params instance
func NewParams(
validationTermRequestedTimeoutDays uint64,
) Params {
return Params{
ValidationTermRequestedTimeoutDays: validationTermRequestedTimeoutDays,
}
}
// DefaultParams returns a default set of parameters
func DefaultParams() Params {
return NewParams(
DefaultValidationTermRequestedTimeoutDays,
)
}
// ParamSetPairs get the params.ParamSet
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(
[]byte("ValidationTermRequestedTimeoutDays"),
&p.ValidationTermRequestedTimeoutDays,
validatePositiveUint64,
),
}
}
// Validate validates the set of params
func (p Params) Validate() error {
if p.ValidationTermRequestedTimeoutDays == 0 {
return fmt.Errorf("validation term requested timeout days must be positive")
}
return nil
}
// Parameter validation helpers
func validatePositiveUint64(i interface{}) error {
v, ok := i.(uint64)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
if v == 0 {
return fmt.Errorf("value must be positive: %d", v)
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/permission/params.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the parameters for the module.
type Params struct {
ValidationTermRequestedTimeoutDays uint64 `protobuf:"varint,1,opt,name=validation_term_requested_timeout_days,json=validationTermRequestedTimeoutDays,proto3" json:"validation_term_requested_timeout_days,omitempty"`
}
func (m *Params) Reset() { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage() {}
func (*Params) Descriptor() ([]byte, []int) {
return fileDescriptor_707324bc7d926b96, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Params.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
xxx_messageInfo_Params.DiscardUnknown(m)
}
var xxx_messageInfo_Params proto.InternalMessageInfo
func (m *Params) GetValidationTermRequestedTimeoutDays() uint64 {
if m != nil {
return m.ValidationTermRequestedTimeoutDays
}
return 0
}
func init() {
proto.RegisterType((*Params)(nil), "veranablockchain.permission.Params")
}
func init() {
proto.RegisterFile("veranablockchain/permission/params.proto", fileDescriptor_707324bc7d926b96)
}
var fileDescriptor_707324bc7d926b96 = []byte{
// 253 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x28, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x48, 0x2d,
0xca, 0xcd, 0x2c, 0x2e, 0xce, 0xcc, 0xcf, 0xd3, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b,
0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x46, 0x57, 0xa9, 0x87, 0x50, 0x29, 0x25, 0x98, 0x98, 0x9b,
0x99, 0x97, 0xaf, 0x0f, 0x26, 0x21, 0xea, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4c, 0x7d,
0x10, 0x0b, 0x22, 0xaa, 0xd4, 0xcd, 0xc8, 0xc5, 0x16, 0x00, 0x36, 0x56, 0x28, 0x88, 0x4b, 0xad,
0x2c, 0x31, 0x27, 0x33, 0x25, 0xb1, 0x24, 0x33, 0x3f, 0x2f, 0xbe, 0x24, 0xb5, 0x28, 0x37, 0xbe,
0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x24, 0x35, 0x25, 0xbe, 0x24, 0x33, 0x37, 0x35, 0xbf, 0xb4,
0x24, 0x3e, 0x25, 0xb1, 0xb2, 0x58, 0x82, 0x51, 0x81, 0x51, 0x83, 0x25, 0x48, 0x09, 0xa1, 0x3a,
0x24, 0xb5, 0x28, 0x37, 0x08, 0xa6, 0x36, 0x04, 0xa2, 0xd4, 0x25, 0xb1, 0xb2, 0xd8, 0x4a, 0xf7,
0xc5, 0x02, 0x79, 0xc6, 0xae, 0xe7, 0x1b, 0xb4, 0x54, 0x30, 0xfc, 0x55, 0x81, 0xec, 0x33, 0x88,
0x13, 0x9c, 0x42, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6,
0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x3a, 0x3d,
0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x62, 0x94, 0x6e, 0x4e, 0x62, 0x52,
0x31, 0x8c, 0x8d, 0xcb, 0xdc, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x5f, 0x8d, 0x01,
0x01, 0x00, 0x00, 0xff, 0xff, 0xb3, 0xa4, 0x1b, 0x90, 0x5d, 0x01, 0x00, 0x00,
}
func (this *Params) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Params)
if !ok {
that2, ok := that.(Params)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.ValidationTermRequestedTimeoutDays != that1.ValidationTermRequestedTimeoutDays {
return false
}
return true
}
func (m *Params) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Params) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ValidationTermRequestedTimeoutDays != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.ValidationTermRequestedTimeoutDays))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
offset -= sovParams(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Params) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ValidationTermRequestedTimeoutDays != 0 {
n += 1 + sovParams(uint64(m.ValidationTermRequestedTimeoutDays))
}
return n
}
func sovParams(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidationTermRequestedTimeoutDays", wireType)
}
m.ValidationTermRequestedTimeoutDays = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ValidationTermRequestedTimeoutDays |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipParams(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthParams
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipParams(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthParams
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupParams
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthParams
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowParams = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/permission/query.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/query"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
}
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryParamsRequest) ProtoMessage() {}
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{0}
}
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
}
func (m *QueryParamsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryParamsResponse) ProtoMessage() {}
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{1}
}
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
}
func (m *QueryParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
func (m *QueryParamsResponse) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
type QueryListPermissionsRequest struct {
ModifiedAfter *time.Time `protobuf:"bytes,1,opt,name=modified_after,json=modifiedAfter,proto3,stdtime" json:"modified_after,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,2,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (m *QueryListPermissionsRequest) Reset() { *m = QueryListPermissionsRequest{} }
func (m *QueryListPermissionsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryListPermissionsRequest) ProtoMessage() {}
func (*QueryListPermissionsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{2}
}
func (m *QueryListPermissionsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListPermissionsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListPermissionsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListPermissionsRequest.Merge(m, src)
}
func (m *QueryListPermissionsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryListPermissionsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListPermissionsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListPermissionsRequest proto.InternalMessageInfo
func (m *QueryListPermissionsRequest) GetModifiedAfter() *time.Time {
if m != nil {
return m.ModifiedAfter
}
return nil
}
func (m *QueryListPermissionsRequest) GetResponseMaxSize() uint32 {
if m != nil {
return m.ResponseMaxSize
}
return 0
}
type QueryListPermissionsResponse struct {
Permissions []Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions"`
}
func (m *QueryListPermissionsResponse) Reset() { *m = QueryListPermissionsResponse{} }
func (m *QueryListPermissionsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryListPermissionsResponse) ProtoMessage() {}
func (*QueryListPermissionsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{3}
}
func (m *QueryListPermissionsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListPermissionsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListPermissionsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListPermissionsResponse.Merge(m, src)
}
func (m *QueryListPermissionsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryListPermissionsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListPermissionsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListPermissionsResponse proto.InternalMessageInfo
func (m *QueryListPermissionsResponse) GetPermissions() []Permission {
if m != nil {
return m.Permissions
}
return nil
}
type QueryGetPermissionRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *QueryGetPermissionRequest) Reset() { *m = QueryGetPermissionRequest{} }
func (m *QueryGetPermissionRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetPermissionRequest) ProtoMessage() {}
func (*QueryGetPermissionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{4}
}
func (m *QueryGetPermissionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetPermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetPermissionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetPermissionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetPermissionRequest.Merge(m, src)
}
func (m *QueryGetPermissionRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetPermissionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetPermissionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetPermissionRequest proto.InternalMessageInfo
func (m *QueryGetPermissionRequest) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type QueryGetPermissionResponse struct {
Permission Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission"`
}
func (m *QueryGetPermissionResponse) Reset() { *m = QueryGetPermissionResponse{} }
func (m *QueryGetPermissionResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetPermissionResponse) ProtoMessage() {}
func (*QueryGetPermissionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{5}
}
func (m *QueryGetPermissionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetPermissionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetPermissionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetPermissionResponse.Merge(m, src)
}
func (m *QueryGetPermissionResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetPermissionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetPermissionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetPermissionResponse proto.InternalMessageInfo
func (m *QueryGetPermissionResponse) GetPermission() Permission {
if m != nil {
return m.Permission
}
return Permission{}
}
type QueryGetPermissionSessionRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *QueryGetPermissionSessionRequest) Reset() { *m = QueryGetPermissionSessionRequest{} }
func (m *QueryGetPermissionSessionRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetPermissionSessionRequest) ProtoMessage() {}
func (*QueryGetPermissionSessionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{6}
}
func (m *QueryGetPermissionSessionRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetPermissionSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetPermissionSessionRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetPermissionSessionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetPermissionSessionRequest.Merge(m, src)
}
func (m *QueryGetPermissionSessionRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetPermissionSessionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetPermissionSessionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetPermissionSessionRequest proto.InternalMessageInfo
func (m *QueryGetPermissionSessionRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type QueryGetPermissionSessionResponse struct {
Session *PermissionSession `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
}
func (m *QueryGetPermissionSessionResponse) Reset() { *m = QueryGetPermissionSessionResponse{} }
func (m *QueryGetPermissionSessionResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetPermissionSessionResponse) ProtoMessage() {}
func (*QueryGetPermissionSessionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{7}
}
func (m *QueryGetPermissionSessionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetPermissionSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetPermissionSessionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetPermissionSessionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetPermissionSessionResponse.Merge(m, src)
}
func (m *QueryGetPermissionSessionResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetPermissionSessionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetPermissionSessionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetPermissionSessionResponse proto.InternalMessageInfo
func (m *QueryGetPermissionSessionResponse) GetSession() *PermissionSession {
if m != nil {
return m.Session
}
return nil
}
type QueryListPermissionSessionsRequest struct {
ModifiedAfter *time.Time `protobuf:"bytes,1,opt,name=modified_after,json=modifiedAfter,proto3,stdtime" json:"modified_after,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,2,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (m *QueryListPermissionSessionsRequest) Reset() { *m = QueryListPermissionSessionsRequest{} }
func (m *QueryListPermissionSessionsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryListPermissionSessionsRequest) ProtoMessage() {}
func (*QueryListPermissionSessionsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{8}
}
func (m *QueryListPermissionSessionsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListPermissionSessionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListPermissionSessionsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListPermissionSessionsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListPermissionSessionsRequest.Merge(m, src)
}
func (m *QueryListPermissionSessionsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryListPermissionSessionsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListPermissionSessionsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListPermissionSessionsRequest proto.InternalMessageInfo
func (m *QueryListPermissionSessionsRequest) GetModifiedAfter() *time.Time {
if m != nil {
return m.ModifiedAfter
}
return nil
}
func (m *QueryListPermissionSessionsRequest) GetResponseMaxSize() uint32 {
if m != nil {
return m.ResponseMaxSize
}
return 0
}
type QueryListPermissionSessionsResponse struct {
Sessions []PermissionSession `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions"`
}
func (m *QueryListPermissionSessionsResponse) Reset() { *m = QueryListPermissionSessionsResponse{} }
func (m *QueryListPermissionSessionsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryListPermissionSessionsResponse) ProtoMessage() {}
func (*QueryListPermissionSessionsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{9}
}
func (m *QueryListPermissionSessionsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListPermissionSessionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListPermissionSessionsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListPermissionSessionsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListPermissionSessionsResponse.Merge(m, src)
}
func (m *QueryListPermissionSessionsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryListPermissionSessionsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListPermissionSessionsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListPermissionSessionsResponse proto.InternalMessageInfo
func (m *QueryListPermissionSessionsResponse) GetSessions() []PermissionSession {
if m != nil {
return m.Sessions
}
return nil
}
type QueryFindPermissionsWithDIDRequest struct {
Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"`
Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
SchemaId uint64 `protobuf:"varint,3,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
When *time.Time `protobuf:"bytes,5,opt,name=when,proto3,stdtime" json:"when,omitempty"`
}
func (m *QueryFindPermissionsWithDIDRequest) Reset() { *m = QueryFindPermissionsWithDIDRequest{} }
func (m *QueryFindPermissionsWithDIDRequest) String() string { return proto.CompactTextString(m) }
func (*QueryFindPermissionsWithDIDRequest) ProtoMessage() {}
func (*QueryFindPermissionsWithDIDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{10}
}
func (m *QueryFindPermissionsWithDIDRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryFindPermissionsWithDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryFindPermissionsWithDIDRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryFindPermissionsWithDIDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryFindPermissionsWithDIDRequest.Merge(m, src)
}
func (m *QueryFindPermissionsWithDIDRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryFindPermissionsWithDIDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryFindPermissionsWithDIDRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryFindPermissionsWithDIDRequest proto.InternalMessageInfo
func (m *QueryFindPermissionsWithDIDRequest) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *QueryFindPermissionsWithDIDRequest) GetType() uint32 {
if m != nil {
return m.Type
}
return 0
}
func (m *QueryFindPermissionsWithDIDRequest) GetSchemaId() uint64 {
if m != nil {
return m.SchemaId
}
return 0
}
func (m *QueryFindPermissionsWithDIDRequest) GetCountry() string {
if m != nil {
return m.Country
}
return ""
}
func (m *QueryFindPermissionsWithDIDRequest) GetWhen() *time.Time {
if m != nil {
return m.When
}
return nil
}
type QueryFindPermissionsWithDIDResponse struct {
Permissions []Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions"`
}
func (m *QueryFindPermissionsWithDIDResponse) Reset() { *m = QueryFindPermissionsWithDIDResponse{} }
func (m *QueryFindPermissionsWithDIDResponse) String() string { return proto.CompactTextString(m) }
func (*QueryFindPermissionsWithDIDResponse) ProtoMessage() {}
func (*QueryFindPermissionsWithDIDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{11}
}
func (m *QueryFindPermissionsWithDIDResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryFindPermissionsWithDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryFindPermissionsWithDIDResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryFindPermissionsWithDIDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryFindPermissionsWithDIDResponse.Merge(m, src)
}
func (m *QueryFindPermissionsWithDIDResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryFindPermissionsWithDIDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryFindPermissionsWithDIDResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryFindPermissionsWithDIDResponse proto.InternalMessageInfo
func (m *QueryFindPermissionsWithDIDResponse) GetPermissions() []Permission {
if m != nil {
return m.Permissions
}
return nil
}
type QueryFindBeneficiariesRequest struct {
IssuerPermId uint64 `protobuf:"varint,1,opt,name=issuer_perm_id,json=issuerPermId,proto3" json:"issuer_perm_id,omitempty"`
VerifierPermId uint64 `protobuf:"varint,2,opt,name=verifier_perm_id,json=verifierPermId,proto3" json:"verifier_perm_id,omitempty"`
}
func (m *QueryFindBeneficiariesRequest) Reset() { *m = QueryFindBeneficiariesRequest{} }
func (m *QueryFindBeneficiariesRequest) String() string { return proto.CompactTextString(m) }
func (*QueryFindBeneficiariesRequest) ProtoMessage() {}
func (*QueryFindBeneficiariesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{12}
}
func (m *QueryFindBeneficiariesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryFindBeneficiariesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryFindBeneficiariesRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryFindBeneficiariesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryFindBeneficiariesRequest.Merge(m, src)
}
func (m *QueryFindBeneficiariesRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryFindBeneficiariesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryFindBeneficiariesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryFindBeneficiariesRequest proto.InternalMessageInfo
func (m *QueryFindBeneficiariesRequest) GetIssuerPermId() uint64 {
if m != nil {
return m.IssuerPermId
}
return 0
}
func (m *QueryFindBeneficiariesRequest) GetVerifierPermId() uint64 {
if m != nil {
return m.VerifierPermId
}
return 0
}
type QueryFindBeneficiariesResponse struct {
Permissions []Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions"`
}
func (m *QueryFindBeneficiariesResponse) Reset() { *m = QueryFindBeneficiariesResponse{} }
func (m *QueryFindBeneficiariesResponse) String() string { return proto.CompactTextString(m) }
func (*QueryFindBeneficiariesResponse) ProtoMessage() {}
func (*QueryFindBeneficiariesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e10f93c705c1fbc8, []int{13}
}
func (m *QueryFindBeneficiariesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryFindBeneficiariesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryFindBeneficiariesResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryFindBeneficiariesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryFindBeneficiariesResponse.Merge(m, src)
}
func (m *QueryFindBeneficiariesResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryFindBeneficiariesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryFindBeneficiariesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryFindBeneficiariesResponse proto.InternalMessageInfo
func (m *QueryFindBeneficiariesResponse) GetPermissions() []Permission {
if m != nil {
return m.Permissions
}
return nil
}
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "veranablockchain.permission.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "veranablockchain.permission.QueryParamsResponse")
proto.RegisterType((*QueryListPermissionsRequest)(nil), "veranablockchain.permission.QueryListPermissionsRequest")
proto.RegisterType((*QueryListPermissionsResponse)(nil), "veranablockchain.permission.QueryListPermissionsResponse")
proto.RegisterType((*QueryGetPermissionRequest)(nil), "veranablockchain.permission.QueryGetPermissionRequest")
proto.RegisterType((*QueryGetPermissionResponse)(nil), "veranablockchain.permission.QueryGetPermissionResponse")
proto.RegisterType((*QueryGetPermissionSessionRequest)(nil), "veranablockchain.permission.QueryGetPermissionSessionRequest")
proto.RegisterType((*QueryGetPermissionSessionResponse)(nil), "veranablockchain.permission.QueryGetPermissionSessionResponse")
proto.RegisterType((*QueryListPermissionSessionsRequest)(nil), "veranablockchain.permission.QueryListPermissionSessionsRequest")
proto.RegisterType((*QueryListPermissionSessionsResponse)(nil), "veranablockchain.permission.QueryListPermissionSessionsResponse")
proto.RegisterType((*QueryFindPermissionsWithDIDRequest)(nil), "veranablockchain.permission.QueryFindPermissionsWithDIDRequest")
proto.RegisterType((*QueryFindPermissionsWithDIDResponse)(nil), "veranablockchain.permission.QueryFindPermissionsWithDIDResponse")
proto.RegisterType((*QueryFindBeneficiariesRequest)(nil), "veranablockchain.permission.QueryFindBeneficiariesRequest")
proto.RegisterType((*QueryFindBeneficiariesResponse)(nil), "veranablockchain.permission.QueryFindBeneficiariesResponse")
}
func init() {
proto.RegisterFile("veranablockchain/permission/query.proto", fileDescriptor_e10f93c705c1fbc8)
}
var fileDescriptor_e10f93c705c1fbc8 = []byte{
// 957 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0x4d, 0x6f, 0x1b, 0x45,
0x18, 0xc7, 0x33, 0x89, 0x9b, 0x26, 0x4f, 0x48, 0x52, 0x4f, 0xd3, 0xd4, 0xd9, 0xb4, 0x9b, 0x74,
0x8b, 0x54, 0x2b, 0x88, 0x5d, 0x12, 0x24, 0x28, 0x54, 0xbc, 0x59, 0x55, 0x21, 0x82, 0x8a, 0xe0,
0x82, 0x90, 0x90, 0xd0, 0x6a, 0xec, 0x1d, 0xdb, 0xa3, 0x66, 0x77, 0x36, 0x3b, 0x6b, 0x27, 0x29,
0xe2, 0x82, 0xf8, 0x00, 0x95, 0x90, 0xb8, 0xa0, 0xde, 0x39, 0x70, 0x80, 0x1b, 0x82, 0x13, 0xb7,
0x1c, 0x2b, 0x71, 0xe1, 0x54, 0x50, 0x82, 0xc4, 0xd7, 0x40, 0x3b, 0x3b, 0xb3, 0x71, 0x92, 0xcd,
0xd6, 0x8e, 0x54, 0xf5, 0x12, 0x4d, 0xc6, 0xcf, 0xcb, 0xef, 0xff, 0xcc, 0xf8, 0x3f, 0x86, 0x1b,
0x3d, 0x1a, 0x91, 0x80, 0x34, 0x36, 0x79, 0xf3, 0x7e, 0xb3, 0x43, 0x58, 0xe0, 0x84, 0x34, 0xf2,
0x99, 0x10, 0x8c, 0x07, 0xce, 0x56, 0x97, 0x46, 0xbb, 0x76, 0x18, 0xf1, 0x98, 0xe3, 0xc5, 0xe3,
0x81, 0xf6, 0x61, 0xa0, 0x51, 0x26, 0x3e, 0x0b, 0xb8, 0x23, 0xff, 0xa6, 0xf1, 0xc6, 0x5c, 0x9b,
0xb7, 0xb9, 0x5c, 0x3a, 0xc9, 0x4a, 0xed, 0x5e, 0x69, 0x73, 0xde, 0xde, 0xa4, 0x0e, 0x09, 0x99,
0x43, 0x82, 0x80, 0xc7, 0x24, 0x66, 0x3c, 0x10, 0xea, 0xd3, 0x95, 0x26, 0x17, 0x3e, 0x17, 0x4e,
0x83, 0x08, 0x9a, 0x36, 0x77, 0x7a, 0xab, 0x0d, 0x1a, 0x93, 0x55, 0x27, 0x24, 0x6d, 0x16, 0xc8,
0x60, 0x15, 0x5b, 0x2d, 0x02, 0x0f, 0x49, 0x44, 0x7c, 0x5d, 0xb5, 0x50, 0x62, 0xbc, 0x1b, 0x52,
0x1d, 0xb8, 0xa4, 0xe0, 0xe4, 0x7f, 0x8d, 0x6e, 0xcb, 0x89, 0x99, 0x4f, 0x45, 0x4c, 0xfc, 0x30,
0x0d, 0xb0, 0xe6, 0x00, 0x7f, 0x92, 0x50, 0x6d, 0xc8, 0xf2, 0x75, 0xba, 0xd5, 0xa5, 0x22, 0xb6,
0xbe, 0x84, 0x8b, 0x47, 0x76, 0x45, 0xc8, 0x03, 0x41, 0xf1, 0x1d, 0x18, 0x4f, 0x31, 0x2a, 0x68,
0x19, 0x55, 0xa7, 0xd6, 0xae, 0xdb, 0x05, 0x13, 0xb4, 0xd3, 0xe4, 0xda, 0xe4, 0xde, 0x93, 0xa5,
0x91, 0x1f, 0xff, 0xfb, 0x79, 0x05, 0xd5, 0x55, 0xb6, 0xf5, 0x3d, 0x82, 0x45, 0x59, 0xff, 0x23,
0x26, 0xe2, 0x8d, 0x2c, 0x43, 0xb7, 0xc7, 0x1f, 0xc2, 0x8c, 0xcf, 0x3d, 0xd6, 0x62, 0xd4, 0x73,
0x49, 0x2b, 0xa6, 0x91, 0xea, 0x67, 0xd8, 0xa9, 0x1c, 0x5b, 0xcb, 0xb1, 0x3f, 0xd5, 0x72, 0x6a,
0x13, 0x7b, 0x4f, 0x96, 0xd0, 0xc3, 0xbf, 0x97, 0x50, 0x7d, 0x5a, 0xe7, 0xbe, 0x97, 0xa4, 0xe2,
0x15, 0x28, 0x47, 0x4a, 0x80, 0xeb, 0x93, 0x1d, 0x57, 0xb0, 0x07, 0xb4, 0x32, 0xba, 0x8c, 0xaa,
0xd3, 0xf5, 0x59, 0xfd, 0xc1, 0x5d, 0xb2, 0x73, 0x8f, 0x3d, 0xa0, 0x16, 0x87, 0x2b, 0xf9, 0x5c,
0x6a, 0x00, 0x1f, 0xc3, 0xd4, 0xa1, 0xc0, 0x64, 0x0a, 0x63, 0xd5, 0xa9, 0xb5, 0x1b, 0xc5, 0x53,
0xc8, 0x96, 0xb5, 0x52, 0x32, 0x89, 0x7a, 0x7f, 0x05, 0xeb, 0x25, 0x58, 0x90, 0x0d, 0xdf, 0xa7,
0x7d, 0xfd, 0xf4, 0x18, 0x66, 0x60, 0x94, 0x79, 0x52, 0x7a, 0xa9, 0x3e, 0xca, 0x3c, 0xeb, 0x3e,
0x18, 0x79, 0xc1, 0x8a, 0xed, 0x2e, 0xc0, 0x61, 0x65, 0x35, 0xb0, 0x21, 0xd1, 0xfa, 0x0a, 0x58,
0x6b, 0xb0, 0x7c, 0xb2, 0xd9, 0x3d, 0x7a, 0x0a, 0xe0, 0xa4, 0x04, 0xf4, 0xe1, 0x5a, 0x41, 0x8e,
0xe2, 0xfc, 0x00, 0xce, 0x0b, 0xda, 0x0f, 0x69, 0x0f, 0x08, 0xa9, 0x0b, 0xe9, 0x74, 0xeb, 0x11,
0x02, 0x2b, 0xe7, 0xb8, 0x54, 0xdc, 0xf3, 0xbf, 0x4d, 0xdb, 0x70, 0xbd, 0x10, 0x4f, 0x0d, 0x64,
0x03, 0x26, 0x94, 0x22, 0x7d, 0xa3, 0x86, 0x9c, 0x88, 0x3a, 0xbd, 0xac, 0x8a, 0xf5, 0x87, 0x1e,
0xcc, 0x1d, 0x16, 0x78, 0x7d, 0xf7, 0xf8, 0x73, 0x16, 0x77, 0x6e, 0xaf, 0xdf, 0xd6, 0x83, 0xb9,
0x00, 0x63, 0x5e, 0x76, 0x7e, 0xc9, 0x12, 0x63, 0x28, 0x25, 0xee, 0xa1, 0x04, 0xc9, 0x35, 0x5e,
0x84, 0x49, 0xd1, 0xec, 0x50, 0x9f, 0xb8, 0xcc, 0xab, 0x8c, 0xc9, 0xcb, 0x38, 0x91, 0x6e, 0xac,
0x7b, 0xd8, 0x84, 0xf3, 0x4d, 0xde, 0x0d, 0xe2, 0x68, 0xb7, 0x52, 0x4a, 0xca, 0x48, 0x14, 0x54,
0xd7, 0x9b, 0xf8, 0x26, 0x94, 0xb6, 0x3b, 0x34, 0xa8, 0x9c, 0x1b, 0x62, 0xe2, 0x32, 0xc3, 0xea,
0xa9, 0xe1, 0x9d, 0x26, 0xe1, 0x59, 0x7d, 0x23, 0x39, 0x5c, 0xcd, 0xfa, 0xd6, 0x68, 0x40, 0x5b,
0xac, 0xc9, 0x48, 0xc4, 0x68, 0x76, 0x9d, 0x5e, 0x84, 0x19, 0x26, 0x44, 0x97, 0x46, 0x6e, 0x92,
0xe6, 0x66, 0xdf, 0xd0, 0x17, 0xd2, 0xdd, 0xa4, 0xfa, 0xba, 0x87, 0xab, 0x70, 0xa1, 0x47, 0xa3,
0xe4, 0xe2, 0x1c, 0xc6, 0x8d, 0xca, 0xb8, 0x19, 0xbd, 0x9f, 0x46, 0x5a, 0x5b, 0x60, 0x9e, 0xd6,
0xf0, 0x19, 0x69, 0x5c, 0xfb, 0x65, 0x12, 0xce, 0xc9, 0x9e, 0xf8, 0x5b, 0x04, 0xe3, 0xa9, 0x4f,
0x63, 0xa7, 0xb0, 0xe0, 0xc9, 0x47, 0xc2, 0x78, 0x65, 0xf0, 0x84, 0x54, 0x88, 0x75, 0xf9, 0x9b,
0x3f, 0xff, 0xfd, 0x6e, 0xb4, 0x8c, 0x67, 0xe5, 0x73, 0xe5, 0xf4, 0x56, 0xd5, 0xab, 0x86, 0x1f,
0x21, 0x98, 0x3d, 0xe6, 0xb9, 0xf8, 0xe6, 0xd3, 0xcb, 0xe7, 0x3f, 0x1f, 0xc6, 0x1b, 0x67, 0xc8,
0x54, 0x84, 0x97, 0x24, 0xe1, 0x2c, 0x9e, 0xce, 0x08, 0x37, 0x99, 0x88, 0xf1, 0x0f, 0x08, 0xa6,
0x8f, 0x98, 0x1a, 0x7e, 0xed, 0xe9, 0x3d, 0xf2, 0x3c, 0xdd, 0x78, 0x7d, 0xe8, 0x3c, 0x45, 0xb6,
0x20, 0xc9, 0x2e, 0xe2, 0xb2, 0x13, 0x46, 0x54, 0x92, 0xb5, 0x69, 0xec, 0x7c, 0xc5, 0xbc, 0xaf,
0xf1, 0xaf, 0x08, 0xe6, 0xf2, 0x2c, 0x17, 0xbf, 0x35, 0x64, 0xb3, 0xa3, 0xf6, 0x6e, 0xbc, 0x7d,
0xd6, 0x74, 0x85, 0x7c, 0x4d, 0x22, 0x2f, 0xe2, 0x85, 0x6c, 0x98, 0x6d, 0x1a, 0xbb, 0xca, 0xa5,
0x52, 0xf4, 0xdf, 0x10, 0xcc, 0xe7, 0xdb, 0x23, 0x7e, 0x67, 0xd8, 0x53, 0x3c, 0xe6, 0xfb, 0xc6,
0xbb, 0x67, 0x2f, 0xa0, 0x04, 0x5c, 0x95, 0x02, 0x2e, 0xe3, 0x4b, 0x47, 0x6e, 0x83, 0x56, 0x80,
0x7f, 0x47, 0x30, 0x9f, 0x6f, 0x4f, 0x83, 0xc0, 0x17, 0x7a, 0xf3, 0x20, 0xf0, 0xc5, 0xce, 0x68,
0x99, 0x12, 0xbe, 0x82, 0xe7, 0x33, 0xf8, 0x16, 0x0b, 0x3c, 0x77, 0x9b, 0xc5, 0x1d, 0x37, 0xf1,
0xfa, 0x9f, 0x10, 0x94, 0x4f, 0x78, 0x0e, 0x7e, 0x73, 0xb0, 0xbe, 0x79, 0xce, 0x68, 0xdc, 0x3a,
0x53, 0xee, 0xa9, 0xb8, 0x8d, 0xfe, 0xb8, 0xda, 0x67, 0x7b, 0xfb, 0x26, 0x7a, 0xbc, 0x6f, 0xa2,
0x7f, 0xf6, 0x4d, 0xf4, 0xf0, 0xc0, 0x1c, 0x79, 0x7c, 0x60, 0x8e, 0xfc, 0x75, 0x60, 0x8e, 0x7c,
0x71, 0xab, 0xcd, 0xe2, 0x4e, 0xb7, 0x61, 0x37, 0xb9, 0xef, 0xa4, 0x00, 0x2f, 0x6f, 0x92, 0x86,
0xd0, 0xeb, 0xbe, 0x1f, 0xc9, 0x3b, 0x27, 0x7e, 0x26, 0x37, 0xc6, 0xe5, 0x53, 0xf4, 0xea, 0xff,
0x01, 0x00, 0x00, 0xff, 0xff, 0x60, 0xa9, 0xce, 0xe1, 0x35, 0x0c, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
ListPermissions(ctx context.Context, in *QueryListPermissionsRequest, opts ...grpc.CallOption) (*QueryListPermissionsResponse, error)
GetPermission(ctx context.Context, in *QueryGetPermissionRequest, opts ...grpc.CallOption) (*QueryGetPermissionResponse, error)
GetPermissionSession(ctx context.Context, in *QueryGetPermissionSessionRequest, opts ...grpc.CallOption) (*QueryGetPermissionSessionResponse, error)
ListPermissionSessions(ctx context.Context, in *QueryListPermissionSessionsRequest, opts ...grpc.CallOption) (*QueryListPermissionSessionsResponse, error)
FindPermissionsWithDID(ctx context.Context, in *QueryFindPermissionsWithDIDRequest, opts ...grpc.CallOption) (*QueryFindPermissionsWithDIDResponse, error)
FindBeneficiaries(ctx context.Context, in *QueryFindBeneficiariesRequest, opts ...grpc.CallOption) (*QueryFindBeneficiariesResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListPermissions(ctx context.Context, in *QueryListPermissionsRequest, opts ...grpc.CallOption) (*QueryListPermissionsResponse, error) {
out := new(QueryListPermissionsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/ListPermissions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetPermission(ctx context.Context, in *QueryGetPermissionRequest, opts ...grpc.CallOption) (*QueryGetPermissionResponse, error) {
out := new(QueryGetPermissionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/GetPermission", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetPermissionSession(ctx context.Context, in *QueryGetPermissionSessionRequest, opts ...grpc.CallOption) (*QueryGetPermissionSessionResponse, error) {
out := new(QueryGetPermissionSessionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/GetPermissionSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListPermissionSessions(ctx context.Context, in *QueryListPermissionSessionsRequest, opts ...grpc.CallOption) (*QueryListPermissionSessionsResponse, error) {
out := new(QueryListPermissionSessionsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/ListPermissionSessions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) FindPermissionsWithDID(ctx context.Context, in *QueryFindPermissionsWithDIDRequest, opts ...grpc.CallOption) (*QueryFindPermissionsWithDIDResponse, error) {
out := new(QueryFindPermissionsWithDIDResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/FindPermissionsWithDID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) FindBeneficiaries(ctx context.Context, in *QueryFindBeneficiariesRequest, opts ...grpc.CallOption) (*QueryFindBeneficiariesResponse, error) {
out := new(QueryFindBeneficiariesResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Query/FindBeneficiaries", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
ListPermissions(context.Context, *QueryListPermissionsRequest) (*QueryListPermissionsResponse, error)
GetPermission(context.Context, *QueryGetPermissionRequest) (*QueryGetPermissionResponse, error)
GetPermissionSession(context.Context, *QueryGetPermissionSessionRequest) (*QueryGetPermissionSessionResponse, error)
ListPermissionSessions(context.Context, *QueryListPermissionSessionsRequest) (*QueryListPermissionSessionsResponse, error)
FindPermissionsWithDID(context.Context, *QueryFindPermissionsWithDIDRequest) (*QueryFindPermissionsWithDIDResponse, error)
FindBeneficiaries(context.Context, *QueryFindBeneficiariesRequest) (*QueryFindBeneficiariesResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (*UnimplementedQueryServer) ListPermissions(ctx context.Context, req *QueryListPermissionsRequest) (*QueryListPermissionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPermissions not implemented")
}
func (*UnimplementedQueryServer) GetPermission(ctx context.Context, req *QueryGetPermissionRequest) (*QueryGetPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPermission not implemented")
}
func (*UnimplementedQueryServer) GetPermissionSession(ctx context.Context, req *QueryGetPermissionSessionRequest) (*QueryGetPermissionSessionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPermissionSession not implemented")
}
func (*UnimplementedQueryServer) ListPermissionSessions(ctx context.Context, req *QueryListPermissionSessionsRequest) (*QueryListPermissionSessionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPermissionSessions not implemented")
}
func (*UnimplementedQueryServer) FindPermissionsWithDID(ctx context.Context, req *QueryFindPermissionsWithDIDRequest) (*QueryFindPermissionsWithDIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindPermissionsWithDID not implemented")
}
func (*UnimplementedQueryServer) FindBeneficiaries(ctx context.Context, req *QueryFindBeneficiariesRequest) (*QueryFindBeneficiariesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindBeneficiaries not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListPermissions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/ListPermissions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListPermissions(ctx, req.(*QueryListPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetPermissionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/GetPermission",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetPermission(ctx, req.(*QueryGetPermissionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetPermissionSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetPermissionSessionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetPermissionSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/GetPermissionSession",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetPermissionSession(ctx, req.(*QueryGetPermissionSessionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListPermissionSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListPermissionSessionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListPermissionSessions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/ListPermissionSessions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListPermissionSessions(ctx, req.(*QueryListPermissionSessionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_FindPermissionsWithDID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryFindPermissionsWithDIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).FindPermissionsWithDID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/FindPermissionsWithDID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).FindPermissionsWithDID(ctx, req.(*QueryFindPermissionsWithDIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_FindBeneficiaries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryFindBeneficiariesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).FindBeneficiaries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Query/FindBeneficiaries",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).FindBeneficiaries(ctx, req.(*QueryFindBeneficiariesRequest))
}
return interceptor(ctx, in, info, handler)
}
var Query_serviceDesc = _Query_serviceDesc
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.permission.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "ListPermissions",
Handler: _Query_ListPermissions_Handler,
},
{
MethodName: "GetPermission",
Handler: _Query_GetPermission_Handler,
},
{
MethodName: "GetPermissionSession",
Handler: _Query_GetPermissionSession_Handler,
},
{
MethodName: "ListPermissionSessions",
Handler: _Query_ListPermissionSessions_Handler,
},
{
MethodName: "FindPermissionsWithDID",
Handler: _Query_FindPermissionsWithDID_Handler,
},
{
MethodName: "FindBeneficiaries",
Handler: _Query_FindBeneficiaries_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/permission/query.proto",
}
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryListPermissionsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListPermissionsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListPermissionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ResponseMaxSize != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.ResponseMaxSize))
i--
dAtA[i] = 0x10
}
if m.ModifiedAfter != nil {
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ModifiedAfter, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintQuery(dAtA, i, uint64(n2))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryListPermissionsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListPermissionsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Permissions) > 0 {
for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Permissions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *QueryGetPermissionRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetPermissionRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetPermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryGetPermissionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetPermissionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Permission.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryGetPermissionSessionRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetPermissionSessionRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetPermissionSessionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryGetPermissionSessionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetPermissionSessionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetPermissionSessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Session != nil {
{
size, err := m.Session.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryListPermissionSessionsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListPermissionSessionsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListPermissionSessionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ResponseMaxSize != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.ResponseMaxSize))
i--
dAtA[i] = 0x10
}
if m.ModifiedAfter != nil {
n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ModifiedAfter, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter):])
if err5 != nil {
return 0, err5
}
i -= n5
i = encodeVarintQuery(dAtA, i, uint64(n5))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryListPermissionSessionsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListPermissionSessionsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListPermissionSessionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Sessions) > 0 {
for iNdEx := len(m.Sessions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Sessions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *QueryFindPermissionsWithDIDRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryFindPermissionsWithDIDRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryFindPermissionsWithDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.When != nil {
n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.When, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.When):])
if err6 != nil {
return 0, err6
}
i -= n6
i = encodeVarintQuery(dAtA, i, uint64(n6))
i--
dAtA[i] = 0x2a
}
if len(m.Country) > 0 {
i -= len(m.Country)
copy(dAtA[i:], m.Country)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Country)))
i--
dAtA[i] = 0x22
}
if m.SchemaId != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.SchemaId))
i--
dAtA[i] = 0x18
}
if m.Type != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.Type))
i--
dAtA[i] = 0x10
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryFindPermissionsWithDIDResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryFindPermissionsWithDIDResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryFindPermissionsWithDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Permissions) > 0 {
for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Permissions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *QueryFindBeneficiariesRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryFindBeneficiariesRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryFindBeneficiariesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.VerifierPermId != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.VerifierPermId))
i--
dAtA[i] = 0x10
}
if m.IssuerPermId != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.IssuerPermId))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryFindBeneficiariesResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryFindBeneficiariesResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryFindBeneficiariesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Permissions) > 0 {
for iNdEx := len(m.Permissions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Permissions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *QueryParamsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryListPermissionsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ModifiedAfter != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter)
n += 1 + l + sovQuery(uint64(l))
}
if m.ResponseMaxSize != 0 {
n += 1 + sovQuery(uint64(m.ResponseMaxSize))
}
return n
}
func (m *QueryListPermissionsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Permissions) > 0 {
for _, e := range m.Permissions {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func (m *QueryGetPermissionRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovQuery(uint64(m.Id))
}
return n
}
func (m *QueryGetPermissionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Permission.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryGetPermissionSessionRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Id)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryGetPermissionSessionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Session != nil {
l = m.Session.Size()
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryListPermissionSessionsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ModifiedAfter != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter)
n += 1 + l + sovQuery(uint64(l))
}
if m.ResponseMaxSize != 0 {
n += 1 + sovQuery(uint64(m.ResponseMaxSize))
}
return n
}
func (m *QueryListPermissionSessionsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Sessions) > 0 {
for _, e := range m.Sessions {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func (m *QueryFindPermissionsWithDIDRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Did)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
if m.Type != 0 {
n += 1 + sovQuery(uint64(m.Type))
}
if m.SchemaId != 0 {
n += 1 + sovQuery(uint64(m.SchemaId))
}
l = len(m.Country)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
if m.When != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.When)
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryFindPermissionsWithDIDResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Permissions) > 0 {
for _, e := range m.Permissions {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func (m *QueryFindBeneficiariesRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.IssuerPermId != 0 {
n += 1 + sovQuery(uint64(m.IssuerPermId))
}
if m.VerifierPermId != 0 {
n += 1 + sovQuery(uint64(m.VerifierPermId))
}
return n
}
func (m *QueryFindBeneficiariesResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Permissions) > 0 {
for _, e := range m.Permissions {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func sovQuery(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQuery(x uint64) (n int) {
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListPermissionsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListPermissionsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListPermissionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ModifiedAfter == nil {
m.ModifiedAfter = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ModifiedAfter, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
m.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListPermissionsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListPermissionsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListPermissionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Permissions = append(m.Permissions, Permission{})
if err := m.Permissions[len(m.Permissions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetPermissionRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetPermissionRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetPermissionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetPermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Permission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetPermissionSessionRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetPermissionSessionRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetPermissionSessionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetPermissionSessionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetPermissionSessionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetPermissionSessionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Session", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Session == nil {
m.Session = &PermissionSession{}
}
if err := m.Session.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListPermissionSessionsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListPermissionSessionsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListPermissionSessionsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ModifiedAfter == nil {
m.ModifiedAfter = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ModifiedAfter, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
m.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListPermissionSessionsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListPermissionSessionsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListPermissionSessionsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Sessions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Sessions = append(m.Sessions, PermissionSession{})
if err := m.Sessions[len(m.Sessions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryFindPermissionsWithDIDRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryFindPermissionsWithDIDRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryFindPermissionsWithDIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
m.Type = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Type |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
m.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field When", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.When == nil {
m.When = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.When, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryFindPermissionsWithDIDResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryFindPermissionsWithDIDResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryFindPermissionsWithDIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Permissions = append(m.Permissions, Permission{})
if err := m.Permissions[len(m.Permissions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryFindBeneficiariesRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryFindBeneficiariesRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryFindBeneficiariesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerPermId", wireType)
}
m.IssuerPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierPermId", wireType)
}
m.VerifierPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryFindBeneficiariesResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryFindBeneficiariesResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryFindBeneficiariesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Permissions = append(m.Permissions, Permission{})
if err := m.Permissions[len(m.Permissions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQuery(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthQuery
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupQuery
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthQuery
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: veranablockchain/permission/query.proto
/*
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package types
import (
"context"
"io"
"net/http"
"github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/proto"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/utilities"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = descriptor.ForMessage
var _ = metadata.Join
func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := server.Params(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_ListPermissions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_ListPermissions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListPermissionsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListPermissions_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.ListPermissions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_ListPermissions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListPermissionsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListPermissions_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.ListPermissions(ctx, &protoReq)
return msg, metadata, err
}
func request_Query_GetPermission_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetPermissionRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := client.GetPermission(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetPermission_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetPermissionRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := server.GetPermission(ctx, &protoReq)
return msg, metadata, err
}
func request_Query_GetPermissionSession_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetPermissionSessionRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := client.GetPermissionSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetPermissionSession_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetPermissionSessionRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
}
protoReq.Id, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
}
msg, err := server.GetPermissionSession(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_ListPermissionSessions_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_ListPermissionSessions_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListPermissionSessionsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListPermissionSessions_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.ListPermissionSessions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_ListPermissionSessions_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListPermissionSessionsRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListPermissionSessions_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.ListPermissionSessions(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_FindPermissionsWithDID_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_FindPermissionsWithDID_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryFindPermissionsWithDIDRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_FindPermissionsWithDID_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.FindPermissionsWithDID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_FindPermissionsWithDID_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryFindPermissionsWithDIDRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_FindPermissionsWithDID_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.FindPermissionsWithDID(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_FindBeneficiaries_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_FindBeneficiaries_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryFindBeneficiariesRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_FindBeneficiaries_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.FindBeneficiaries(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_FindBeneficiaries_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryFindBeneficiariesRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_FindBeneficiaries_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.FindBeneficiaries(ctx, &protoReq)
return msg, metadata, err
}
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
// UnaryRPC :call QueryServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_ListPermissions_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetPermission_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetPermission_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetPermission_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetPermissionSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetPermissionSession_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetPermissionSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListPermissionSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_ListPermissionSessions_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListPermissionSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_FindPermissionsWithDID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_FindPermissionsWithDID_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_FindPermissionsWithDID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_FindBeneficiaries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_FindBeneficiaries_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_FindBeneficiaries_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
conn, err := grpc.Dial(endpoint, opts...)
if err != nil {
return err
}
defer func() {
if err != nil {
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
}()
}()
return RegisterQueryHandler(ctx, mux, conn)
}
// RegisterQueryHandler registers the http handlers for service Query to "mux".
// The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn))
}
// RegisterQueryHandlerClient registers the http handlers for service Query
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient".
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient"
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_ListPermissions_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetPermission_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetPermission_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetPermission_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetPermissionSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetPermissionSession_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetPermissionSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListPermissionSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_ListPermissionSessions_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListPermissionSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_FindPermissionsWithDID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_FindPermissionsWithDID_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_FindPermissionsWithDID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_FindBeneficiaries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_FindBeneficiaries_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_FindBeneficiaries_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
var (
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"perm", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_ListPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"perm", "v1", "list"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetPermission_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"prem", "v1", "get", "id"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetPermissionSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"perm", "v1", "get_session", "id"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_ListPermissionSessions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"perm", "v1", "list_session"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_FindPermissionsWithDID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"perm", "v1", "find_with_did"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_FindBeneficiaries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"perm", "v1", "beneficiaries"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
forward_Query_Params_0 = runtime.ForwardResponseMessage
forward_Query_ListPermissions_0 = runtime.ForwardResponseMessage
forward_Query_GetPermission_0 = runtime.ForwardResponseMessage
forward_Query_GetPermissionSession_0 = runtime.ForwardResponseMessage
forward_Query_ListPermissionSessions_0 = runtime.ForwardResponseMessage
forward_Query_FindPermissionsWithDID_0 = runtime.ForwardResponseMessage
forward_Query_FindBeneficiaries_0 = runtime.ForwardResponseMessage
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/permission/tx.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParams) ProtoMessage() {}
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{0}
}
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParams.Merge(m, src)
}
func (m *MsgUpdateParams) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
func (m *MsgUpdateParams) GetAuthority() string {
if m != nil {
return m.Authority
}
return ""
}
func (m *MsgUpdateParams) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
}
func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParamsResponse) ProtoMessage() {}
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{1}
}
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
}
func (m *MsgUpdateParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
// MsgStartPermissionVP represents a message to start a permission validation process
type MsgStartPermissionVP struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
ValidatorPermId uint64 `protobuf:"varint,3,opt,name=validator_perm_id,json=validatorPermId,proto3" json:"validator_perm_id,omitempty"`
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
Did string `protobuf:"bytes,5,opt,name=did,proto3" json:"did,omitempty"`
}
func (m *MsgStartPermissionVP) Reset() { *m = MsgStartPermissionVP{} }
func (m *MsgStartPermissionVP) String() string { return proto.CompactTextString(m) }
func (*MsgStartPermissionVP) ProtoMessage() {}
func (*MsgStartPermissionVP) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{2}
}
func (m *MsgStartPermissionVP) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgStartPermissionVP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgStartPermissionVP.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgStartPermissionVP) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgStartPermissionVP.Merge(m, src)
}
func (m *MsgStartPermissionVP) XXX_Size() int {
return m.Size()
}
func (m *MsgStartPermissionVP) XXX_DiscardUnknown() {
xxx_messageInfo_MsgStartPermissionVP.DiscardUnknown(m)
}
var xxx_messageInfo_MsgStartPermissionVP proto.InternalMessageInfo
func (m *MsgStartPermissionVP) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgStartPermissionVP) GetType() uint32 {
if m != nil {
return m.Type
}
return 0
}
func (m *MsgStartPermissionVP) GetValidatorPermId() uint64 {
if m != nil {
return m.ValidatorPermId
}
return 0
}
func (m *MsgStartPermissionVP) GetCountry() string {
if m != nil {
return m.Country
}
return ""
}
func (m *MsgStartPermissionVP) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
// MsgStartPermissionVPResponse defines the Msg/StartPermissionVP response type
type MsgStartPermissionVPResponse struct {
PermissionId uint64 `protobuf:"varint,1,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"`
}
func (m *MsgStartPermissionVPResponse) Reset() { *m = MsgStartPermissionVPResponse{} }
func (m *MsgStartPermissionVPResponse) String() string { return proto.CompactTextString(m) }
func (*MsgStartPermissionVPResponse) ProtoMessage() {}
func (*MsgStartPermissionVPResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{3}
}
func (m *MsgStartPermissionVPResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgStartPermissionVPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgStartPermissionVPResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgStartPermissionVPResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgStartPermissionVPResponse.Merge(m, src)
}
func (m *MsgStartPermissionVPResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgStartPermissionVPResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgStartPermissionVPResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgStartPermissionVPResponse proto.InternalMessageInfo
func (m *MsgStartPermissionVPResponse) GetPermissionId() uint64 {
if m != nil {
return m.PermissionId
}
return 0
}
// MsgRenewPermissionVP represents a message to renew a permission validation process
type MsgRenewPermissionVP struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgRenewPermissionVP) Reset() { *m = MsgRenewPermissionVP{} }
func (m *MsgRenewPermissionVP) String() string { return proto.CompactTextString(m) }
func (*MsgRenewPermissionVP) ProtoMessage() {}
func (*MsgRenewPermissionVP) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{4}
}
func (m *MsgRenewPermissionVP) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRenewPermissionVP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRenewPermissionVP.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRenewPermissionVP) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRenewPermissionVP.Merge(m, src)
}
func (m *MsgRenewPermissionVP) XXX_Size() int {
return m.Size()
}
func (m *MsgRenewPermissionVP) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRenewPermissionVP.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRenewPermissionVP proto.InternalMessageInfo
func (m *MsgRenewPermissionVP) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgRenewPermissionVP) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
// MsgRenewPermissionVPResponse defines the Msg/RenewPermissionVP response type
type MsgRenewPermissionVPResponse struct {
}
func (m *MsgRenewPermissionVPResponse) Reset() { *m = MsgRenewPermissionVPResponse{} }
func (m *MsgRenewPermissionVPResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRenewPermissionVPResponse) ProtoMessage() {}
func (*MsgRenewPermissionVPResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{5}
}
func (m *MsgRenewPermissionVPResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRenewPermissionVPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRenewPermissionVPResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRenewPermissionVPResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRenewPermissionVPResponse.Merge(m, src)
}
func (m *MsgRenewPermissionVPResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRenewPermissionVPResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRenewPermissionVPResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRenewPermissionVPResponse proto.InternalMessageInfo
// MsgSetPermissionVPToValidated represents a message to set a permission validation process to validated state
type MsgSetPermissionVPToValidated struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
EffectiveUntil *time.Time `protobuf:"bytes,3,opt,name=effective_until,json=effectiveUntil,proto3,stdtime" json:"effective_until,omitempty"`
ValidationFees uint64 `protobuf:"varint,4,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,5,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,6,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"`
VpSummaryDigestSri string `protobuf:"bytes,8,opt,name=vp_summary_digest_sri,json=vpSummaryDigestSri,proto3" json:"vp_summary_digest_sri,omitempty"`
}
func (m *MsgSetPermissionVPToValidated) Reset() { *m = MsgSetPermissionVPToValidated{} }
func (m *MsgSetPermissionVPToValidated) String() string { return proto.CompactTextString(m) }
func (*MsgSetPermissionVPToValidated) ProtoMessage() {}
func (*MsgSetPermissionVPToValidated) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{6}
}
func (m *MsgSetPermissionVPToValidated) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSetPermissionVPToValidated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSetPermissionVPToValidated.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgSetPermissionVPToValidated) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSetPermissionVPToValidated.Merge(m, src)
}
func (m *MsgSetPermissionVPToValidated) XXX_Size() int {
return m.Size()
}
func (m *MsgSetPermissionVPToValidated) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSetPermissionVPToValidated.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSetPermissionVPToValidated proto.InternalMessageInfo
func (m *MsgSetPermissionVPToValidated) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgSetPermissionVPToValidated) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgSetPermissionVPToValidated) GetEffectiveUntil() *time.Time {
if m != nil {
return m.EffectiveUntil
}
return nil
}
func (m *MsgSetPermissionVPToValidated) GetValidationFees() uint64 {
if m != nil {
return m.ValidationFees
}
return 0
}
func (m *MsgSetPermissionVPToValidated) GetIssuanceFees() uint64 {
if m != nil {
return m.IssuanceFees
}
return 0
}
func (m *MsgSetPermissionVPToValidated) GetVerificationFees() uint64 {
if m != nil {
return m.VerificationFees
}
return 0
}
func (m *MsgSetPermissionVPToValidated) GetCountry() string {
if m != nil {
return m.Country
}
return ""
}
func (m *MsgSetPermissionVPToValidated) GetVpSummaryDigestSri() string {
if m != nil {
return m.VpSummaryDigestSri
}
return ""
}
// MsgSetPermissionVPToValidatedResponse defines the Msg/SetPermissionVPToValidated response type
type MsgSetPermissionVPToValidatedResponse struct {
}
func (m *MsgSetPermissionVPToValidatedResponse) Reset() { *m = MsgSetPermissionVPToValidatedResponse{} }
func (m *MsgSetPermissionVPToValidatedResponse) String() string { return proto.CompactTextString(m) }
func (*MsgSetPermissionVPToValidatedResponse) ProtoMessage() {}
func (*MsgSetPermissionVPToValidatedResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{7}
}
func (m *MsgSetPermissionVPToValidatedResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSetPermissionVPToValidatedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSetPermissionVPToValidatedResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgSetPermissionVPToValidatedResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSetPermissionVPToValidatedResponse.Merge(m, src)
}
func (m *MsgSetPermissionVPToValidatedResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgSetPermissionVPToValidatedResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSetPermissionVPToValidatedResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSetPermissionVPToValidatedResponse proto.InternalMessageInfo
// MsgRequestPermissionVPTermination represents a message to request termination of a permission validation process
type MsgRequestPermissionVPTermination struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgRequestPermissionVPTermination) Reset() { *m = MsgRequestPermissionVPTermination{} }
func (m *MsgRequestPermissionVPTermination) String() string { return proto.CompactTextString(m) }
func (*MsgRequestPermissionVPTermination) ProtoMessage() {}
func (*MsgRequestPermissionVPTermination) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{8}
}
func (m *MsgRequestPermissionVPTermination) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRequestPermissionVPTermination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRequestPermissionVPTermination.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRequestPermissionVPTermination) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRequestPermissionVPTermination.Merge(m, src)
}
func (m *MsgRequestPermissionVPTermination) XXX_Size() int {
return m.Size()
}
func (m *MsgRequestPermissionVPTermination) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRequestPermissionVPTermination.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRequestPermissionVPTermination proto.InternalMessageInfo
func (m *MsgRequestPermissionVPTermination) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgRequestPermissionVPTermination) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
// MsgRequestPermissionVPTerminationResponse defines the Msg/RequestPermissionVPTermination response type
type MsgRequestPermissionVPTerminationResponse struct {
}
func (m *MsgRequestPermissionVPTerminationResponse) Reset() {
*m = MsgRequestPermissionVPTerminationResponse{}
}
func (m *MsgRequestPermissionVPTerminationResponse) String() string {
return proto.CompactTextString(m)
}
func (*MsgRequestPermissionVPTerminationResponse) ProtoMessage() {}
func (*MsgRequestPermissionVPTerminationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{9}
}
func (m *MsgRequestPermissionVPTerminationResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRequestPermissionVPTerminationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRequestPermissionVPTerminationResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRequestPermissionVPTerminationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRequestPermissionVPTerminationResponse.Merge(m, src)
}
func (m *MsgRequestPermissionVPTerminationResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRequestPermissionVPTerminationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRequestPermissionVPTerminationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRequestPermissionVPTerminationResponse proto.InternalMessageInfo
type MsgConfirmPermissionVPTermination struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgConfirmPermissionVPTermination) Reset() { *m = MsgConfirmPermissionVPTermination{} }
func (m *MsgConfirmPermissionVPTermination) String() string { return proto.CompactTextString(m) }
func (*MsgConfirmPermissionVPTermination) ProtoMessage() {}
func (*MsgConfirmPermissionVPTermination) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{10}
}
func (m *MsgConfirmPermissionVPTermination) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgConfirmPermissionVPTermination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgConfirmPermissionVPTermination.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgConfirmPermissionVPTermination) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgConfirmPermissionVPTermination.Merge(m, src)
}
func (m *MsgConfirmPermissionVPTermination) XXX_Size() int {
return m.Size()
}
func (m *MsgConfirmPermissionVPTermination) XXX_DiscardUnknown() {
xxx_messageInfo_MsgConfirmPermissionVPTermination.DiscardUnknown(m)
}
var xxx_messageInfo_MsgConfirmPermissionVPTermination proto.InternalMessageInfo
func (m *MsgConfirmPermissionVPTermination) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgConfirmPermissionVPTermination) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type MsgConfirmPermissionVPTerminationResponse struct {
}
func (m *MsgConfirmPermissionVPTerminationResponse) Reset() {
*m = MsgConfirmPermissionVPTerminationResponse{}
}
func (m *MsgConfirmPermissionVPTerminationResponse) String() string {
return proto.CompactTextString(m)
}
func (*MsgConfirmPermissionVPTerminationResponse) ProtoMessage() {}
func (*MsgConfirmPermissionVPTerminationResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{11}
}
func (m *MsgConfirmPermissionVPTerminationResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgConfirmPermissionVPTerminationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgConfirmPermissionVPTerminationResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgConfirmPermissionVPTerminationResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgConfirmPermissionVPTerminationResponse.Merge(m, src)
}
func (m *MsgConfirmPermissionVPTerminationResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgConfirmPermissionVPTerminationResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgConfirmPermissionVPTerminationResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgConfirmPermissionVPTerminationResponse proto.InternalMessageInfo
type MsgCancelPermissionVPLastRequest struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgCancelPermissionVPLastRequest) Reset() { *m = MsgCancelPermissionVPLastRequest{} }
func (m *MsgCancelPermissionVPLastRequest) String() string { return proto.CompactTextString(m) }
func (*MsgCancelPermissionVPLastRequest) ProtoMessage() {}
func (*MsgCancelPermissionVPLastRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{12}
}
func (m *MsgCancelPermissionVPLastRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCancelPermissionVPLastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCancelPermissionVPLastRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCancelPermissionVPLastRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCancelPermissionVPLastRequest.Merge(m, src)
}
func (m *MsgCancelPermissionVPLastRequest) XXX_Size() int {
return m.Size()
}
func (m *MsgCancelPermissionVPLastRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCancelPermissionVPLastRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCancelPermissionVPLastRequest proto.InternalMessageInfo
func (m *MsgCancelPermissionVPLastRequest) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgCancelPermissionVPLastRequest) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type MsgCancelPermissionVPLastRequestResponse struct {
}
func (m *MsgCancelPermissionVPLastRequestResponse) Reset() {
*m = MsgCancelPermissionVPLastRequestResponse{}
}
func (m *MsgCancelPermissionVPLastRequestResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCancelPermissionVPLastRequestResponse) ProtoMessage() {}
func (*MsgCancelPermissionVPLastRequestResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{13}
}
func (m *MsgCancelPermissionVPLastRequestResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCancelPermissionVPLastRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCancelPermissionVPLastRequestResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCancelPermissionVPLastRequestResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCancelPermissionVPLastRequestResponse.Merge(m, src)
}
func (m *MsgCancelPermissionVPLastRequestResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCancelPermissionVPLastRequestResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCancelPermissionVPLastRequestResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCancelPermissionVPLastRequestResponse proto.InternalMessageInfo
type MsgCreateRootPermission struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
SchemaId uint64 `protobuf:"varint,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"`
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
EffectiveFrom *time.Time `protobuf:"bytes,5,opt,name=effective_from,json=effectiveFrom,proto3,stdtime" json:"effective_from,omitempty"`
EffectiveUntil *time.Time `protobuf:"bytes,6,opt,name=effective_until,json=effectiveUntil,proto3,stdtime" json:"effective_until,omitempty"`
ValidationFees uint64 `protobuf:"varint,7,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,8,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,9,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
}
func (m *MsgCreateRootPermission) Reset() { *m = MsgCreateRootPermission{} }
func (m *MsgCreateRootPermission) String() string { return proto.CompactTextString(m) }
func (*MsgCreateRootPermission) ProtoMessage() {}
func (*MsgCreateRootPermission) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{14}
}
func (m *MsgCreateRootPermission) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateRootPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateRootPermission.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateRootPermission) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateRootPermission.Merge(m, src)
}
func (m *MsgCreateRootPermission) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateRootPermission) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateRootPermission.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateRootPermission proto.InternalMessageInfo
func (m *MsgCreateRootPermission) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgCreateRootPermission) GetSchemaId() uint64 {
if m != nil {
return m.SchemaId
}
return 0
}
func (m *MsgCreateRootPermission) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *MsgCreateRootPermission) GetCountry() string {
if m != nil {
return m.Country
}
return ""
}
func (m *MsgCreateRootPermission) GetEffectiveFrom() *time.Time {
if m != nil {
return m.EffectiveFrom
}
return nil
}
func (m *MsgCreateRootPermission) GetEffectiveUntil() *time.Time {
if m != nil {
return m.EffectiveUntil
}
return nil
}
func (m *MsgCreateRootPermission) GetValidationFees() uint64 {
if m != nil {
return m.ValidationFees
}
return 0
}
func (m *MsgCreateRootPermission) GetIssuanceFees() uint64 {
if m != nil {
return m.IssuanceFees
}
return 0
}
func (m *MsgCreateRootPermission) GetVerificationFees() uint64 {
if m != nil {
return m.VerificationFees
}
return 0
}
type MsgCreateRootPermissionResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgCreateRootPermissionResponse) Reset() { *m = MsgCreateRootPermissionResponse{} }
func (m *MsgCreateRootPermissionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateRootPermissionResponse) ProtoMessage() {}
func (*MsgCreateRootPermissionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{15}
}
func (m *MsgCreateRootPermissionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateRootPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateRootPermissionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateRootPermissionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateRootPermissionResponse.Merge(m, src)
}
func (m *MsgCreateRootPermissionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateRootPermissionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateRootPermissionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateRootPermissionResponse proto.InternalMessageInfo
func (m *MsgCreateRootPermissionResponse) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type MsgExtendPermission struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
EffectiveUntil *time.Time `protobuf:"bytes,3,opt,name=effective_until,json=effectiveUntil,proto3,stdtime" json:"effective_until,omitempty"`
}
func (m *MsgExtendPermission) Reset() { *m = MsgExtendPermission{} }
func (m *MsgExtendPermission) String() string { return proto.CompactTextString(m) }
func (*MsgExtendPermission) ProtoMessage() {}
func (*MsgExtendPermission) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{16}
}
func (m *MsgExtendPermission) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgExtendPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgExtendPermission.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgExtendPermission) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgExtendPermission.Merge(m, src)
}
func (m *MsgExtendPermission) XXX_Size() int {
return m.Size()
}
func (m *MsgExtendPermission) XXX_DiscardUnknown() {
xxx_messageInfo_MsgExtendPermission.DiscardUnknown(m)
}
var xxx_messageInfo_MsgExtendPermission proto.InternalMessageInfo
func (m *MsgExtendPermission) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgExtendPermission) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgExtendPermission) GetEffectiveUntil() *time.Time {
if m != nil {
return m.EffectiveUntil
}
return nil
}
type MsgExtendPermissionResponse struct {
}
func (m *MsgExtendPermissionResponse) Reset() { *m = MsgExtendPermissionResponse{} }
func (m *MsgExtendPermissionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgExtendPermissionResponse) ProtoMessage() {}
func (*MsgExtendPermissionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{17}
}
func (m *MsgExtendPermissionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgExtendPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgExtendPermissionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgExtendPermissionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgExtendPermissionResponse.Merge(m, src)
}
func (m *MsgExtendPermissionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgExtendPermissionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgExtendPermissionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgExtendPermissionResponse proto.InternalMessageInfo
type MsgRevokePermission struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgRevokePermission) Reset() { *m = MsgRevokePermission{} }
func (m *MsgRevokePermission) String() string { return proto.CompactTextString(m) }
func (*MsgRevokePermission) ProtoMessage() {}
func (*MsgRevokePermission) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{18}
}
func (m *MsgRevokePermission) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRevokePermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRevokePermission.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRevokePermission) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRevokePermission.Merge(m, src)
}
func (m *MsgRevokePermission) XXX_Size() int {
return m.Size()
}
func (m *MsgRevokePermission) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRevokePermission.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRevokePermission proto.InternalMessageInfo
func (m *MsgRevokePermission) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgRevokePermission) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
type MsgRevokePermissionResponse struct {
}
func (m *MsgRevokePermissionResponse) Reset() { *m = MsgRevokePermissionResponse{} }
func (m *MsgRevokePermissionResponse) String() string { return proto.CompactTextString(m) }
func (*MsgRevokePermissionResponse) ProtoMessage() {}
func (*MsgRevokePermissionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{19}
}
func (m *MsgRevokePermissionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgRevokePermissionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgRevokePermissionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgRevokePermissionResponse.Merge(m, src)
}
func (m *MsgRevokePermissionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgRevokePermissionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgRevokePermissionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgRevokePermissionResponse proto.InternalMessageInfo
type MsgCreateOrUpdatePermissionSession struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
IssuerPermId uint64 `protobuf:"varint,3,opt,name=issuer_perm_id,json=issuerPermId,proto3" json:"issuer_perm_id,omitempty"`
VerifierPermId uint64 `protobuf:"varint,4,opt,name=verifier_perm_id,json=verifierPermId,proto3" json:"verifier_perm_id,omitempty"`
AgentPermId uint64 `protobuf:"varint,5,opt,name=agent_perm_id,json=agentPermId,proto3" json:"agent_perm_id,omitempty"`
WalletAgentPermId uint64 `protobuf:"varint,6,opt,name=wallet_agent_perm_id,json=walletAgentPermId,proto3" json:"wallet_agent_perm_id,omitempty"`
}
func (m *MsgCreateOrUpdatePermissionSession) Reset() { *m = MsgCreateOrUpdatePermissionSession{} }
func (m *MsgCreateOrUpdatePermissionSession) String() string { return proto.CompactTextString(m) }
func (*MsgCreateOrUpdatePermissionSession) ProtoMessage() {}
func (*MsgCreateOrUpdatePermissionSession) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{20}
}
func (m *MsgCreateOrUpdatePermissionSession) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateOrUpdatePermissionSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateOrUpdatePermissionSession.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateOrUpdatePermissionSession) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateOrUpdatePermissionSession.Merge(m, src)
}
func (m *MsgCreateOrUpdatePermissionSession) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateOrUpdatePermissionSession) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateOrUpdatePermissionSession.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateOrUpdatePermissionSession proto.InternalMessageInfo
func (m *MsgCreateOrUpdatePermissionSession) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgCreateOrUpdatePermissionSession) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *MsgCreateOrUpdatePermissionSession) GetIssuerPermId() uint64 {
if m != nil {
return m.IssuerPermId
}
return 0
}
func (m *MsgCreateOrUpdatePermissionSession) GetVerifierPermId() uint64 {
if m != nil {
return m.VerifierPermId
}
return 0
}
func (m *MsgCreateOrUpdatePermissionSession) GetAgentPermId() uint64 {
if m != nil {
return m.AgentPermId
}
return 0
}
func (m *MsgCreateOrUpdatePermissionSession) GetWalletAgentPermId() uint64 {
if m != nil {
return m.WalletAgentPermId
}
return 0
}
type MsgCreateOrUpdatePermissionSessionResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) Reset() {
*m = MsgCreateOrUpdatePermissionSessionResponse{}
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) String() string {
return proto.CompactTextString(m)
}
func (*MsgCreateOrUpdatePermissionSessionResponse) ProtoMessage() {}
func (*MsgCreateOrUpdatePermissionSessionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_9be78fdf8430a9d2, []int{21}
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateOrUpdatePermissionSessionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateOrUpdatePermissionSessionResponse.Merge(m, src)
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateOrUpdatePermissionSessionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateOrUpdatePermissionSessionResponse proto.InternalMessageInfo
func (m *MsgCreateOrUpdatePermissionSessionResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func init() {
proto.RegisterType((*MsgUpdateParams)(nil), "veranablockchain.permission.MsgUpdateParams")
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "veranablockchain.permission.MsgUpdateParamsResponse")
proto.RegisterType((*MsgStartPermissionVP)(nil), "veranablockchain.permission.MsgStartPermissionVP")
proto.RegisterType((*MsgStartPermissionVPResponse)(nil), "veranablockchain.permission.MsgStartPermissionVPResponse")
proto.RegisterType((*MsgRenewPermissionVP)(nil), "veranablockchain.permission.MsgRenewPermissionVP")
proto.RegisterType((*MsgRenewPermissionVPResponse)(nil), "veranablockchain.permission.MsgRenewPermissionVPResponse")
proto.RegisterType((*MsgSetPermissionVPToValidated)(nil), "veranablockchain.permission.MsgSetPermissionVPToValidated")
proto.RegisterType((*MsgSetPermissionVPToValidatedResponse)(nil), "veranablockchain.permission.MsgSetPermissionVPToValidatedResponse")
proto.RegisterType((*MsgRequestPermissionVPTermination)(nil), "veranablockchain.permission.MsgRequestPermissionVPTermination")
proto.RegisterType((*MsgRequestPermissionVPTerminationResponse)(nil), "veranablockchain.permission.MsgRequestPermissionVPTerminationResponse")
proto.RegisterType((*MsgConfirmPermissionVPTermination)(nil), "veranablockchain.permission.MsgConfirmPermissionVPTermination")
proto.RegisterType((*MsgConfirmPermissionVPTerminationResponse)(nil), "veranablockchain.permission.MsgConfirmPermissionVPTerminationResponse")
proto.RegisterType((*MsgCancelPermissionVPLastRequest)(nil), "veranablockchain.permission.MsgCancelPermissionVPLastRequest")
proto.RegisterType((*MsgCancelPermissionVPLastRequestResponse)(nil), "veranablockchain.permission.MsgCancelPermissionVPLastRequestResponse")
proto.RegisterType((*MsgCreateRootPermission)(nil), "veranablockchain.permission.MsgCreateRootPermission")
proto.RegisterType((*MsgCreateRootPermissionResponse)(nil), "veranablockchain.permission.MsgCreateRootPermissionResponse")
proto.RegisterType((*MsgExtendPermission)(nil), "veranablockchain.permission.MsgExtendPermission")
proto.RegisterType((*MsgExtendPermissionResponse)(nil), "veranablockchain.permission.MsgExtendPermissionResponse")
proto.RegisterType((*MsgRevokePermission)(nil), "veranablockchain.permission.MsgRevokePermission")
proto.RegisterType((*MsgRevokePermissionResponse)(nil), "veranablockchain.permission.MsgRevokePermissionResponse")
proto.RegisterType((*MsgCreateOrUpdatePermissionSession)(nil), "veranablockchain.permission.MsgCreateOrUpdatePermissionSession")
proto.RegisterType((*MsgCreateOrUpdatePermissionSessionResponse)(nil), "veranablockchain.permission.MsgCreateOrUpdatePermissionSessionResponse")
}
func init() {
proto.RegisterFile("veranablockchain/permission/tx.proto", fileDescriptor_9be78fdf8430a9d2)
}
var fileDescriptor_9be78fdf8430a9d2 = []byte{
// 1196 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcb, 0x6f, 0x1b, 0x45,
0x18, 0xcf, 0xc4, 0xce, 0xc3, 0x5f, 0xde, 0x4b, 0xa0, 0xee, 0x86, 0xd8, 0xc1, 0x2d, 0x8a, 0x71,
0x89, 0xdd, 0x84, 0x87, 0x20, 0x94, 0x47, 0x13, 0x1a, 0x14, 0x41, 0x44, 0xb4, 0x69, 0x7a, 0xe0,
0x62, 0x6d, 0x76, 0xc7, 0x9b, 0x55, 0xbd, 0x3b, 0x66, 0x67, 0xec, 0x26, 0x17, 0x04, 0x9c, 0x50,
0x4f, 0xfd, 0x03, 0xb8, 0x70, 0x40, 0xaa, 0xc4, 0x25, 0x07, 0xc4, 0x85, 0x7f, 0x20, 0xe2, 0x54,
0xc1, 0x85, 0x53, 0xa9, 0x92, 0x43, 0xfe, 0x0d, 0x34, 0xb3, 0x0f, 0xdb, 0x6b, 0x7b, 0x37, 0xcf,
0x5e, 0x92, 0xd9, 0x99, 0xdf, 0x6f, 0xbe, 0xdf, 0xf7, 0x98, 0x99, 0x4f, 0x86, 0x9b, 0x0d, 0xec,
0xa8, 0xb6, 0xba, 0x53, 0x25, 0xda, 0x43, 0x6d, 0x57, 0x35, 0xed, 0x52, 0x0d, 0x3b, 0x96, 0x49,
0xa9, 0x49, 0xec, 0x12, 0xdb, 0x2b, 0xd6, 0x1c, 0xc2, 0x88, 0x34, 0x13, 0x46, 0x15, 0x9b, 0x28,
0x79, 0x4a, 0xb5, 0x4c, 0x9b, 0x94, 0xc4, 0x5f, 0x17, 0x2f, 0x5f, 0xd3, 0x08, 0xb5, 0x08, 0x2d,
0x59, 0xd4, 0x28, 0x35, 0x16, 0xf9, 0x3f, 0x6f, 0xe1, 0xba, 0xbb, 0x50, 0x16, 0x5f, 0x25, 0xf7,
0xc3, 0x5b, 0x9a, 0x36, 0x88, 0x41, 0xdc, 0x79, 0x3e, 0xf2, 0x66, 0xf3, 0x51, 0xfa, 0x6a, 0xaa,
0xa3, 0x5a, 0x3e, 0x7f, 0x3e, 0xd2, 0x93, 0xfd, 0x1a, 0xf6, 0x81, 0x59, 0x83, 0x10, 0xa3, 0x8a,
0x4b, 0xe2, 0x6b, 0xa7, 0x5e, 0x29, 0x31, 0xd3, 0xc2, 0x94, 0xa9, 0x56, 0xcd, 0x05, 0xe4, 0xfe,
0x41, 0x30, 0xb1, 0x41, 0x8d, 0xed, 0x9a, 0xae, 0x32, 0xbc, 0x29, 0x6c, 0x48, 0xef, 0x43, 0x4a,
0xad, 0xb3, 0x5d, 0xe2, 0x98, 0x6c, 0x3f, 0x8d, 0xe6, 0x50, 0x3e, 0xb5, 0x92, 0xfe, 0xfb, 0xf7,
0x85, 0x69, 0xcf, 0x85, 0xbb, 0xba, 0xee, 0x60, 0x4a, 0xb7, 0x98, 0x63, 0xda, 0x86, 0xd2, 0x84,
0x4a, 0x6b, 0x30, 0xe8, 0xaa, 0x4c, 0xf7, 0xcf, 0xa1, 0xfc, 0xc8, 0xd2, 0x8d, 0x62, 0x44, 0x28,
0x8b, 0xae, 0xb1, 0x95, 0xd4, 0xe1, 0xf3, 0x6c, 0xdf, 0xd3, 0x93, 0x83, 0x02, 0x52, 0x3c, 0xf6,
0xf2, 0x67, 0x3f, 0x9e, 0x1c, 0x14, 0x9a, 0xfb, 0x3e, 0x3e, 0x39, 0x28, 0x2c, 0x74, 0x38, 0xbc,
0xd7, 0xea, 0x72, 0xc8, 0x83, 0xdc, 0x75, 0xb8, 0x16, 0x9a, 0x52, 0x30, 0xad, 0x11, 0x9b, 0xe2,
0xdc, 0x5f, 0x08, 0xa6, 0x37, 0xa8, 0xb1, 0xc5, 0x54, 0x87, 0x6d, 0x06, 0x3b, 0x3c, 0xd8, 0x94,
0x96, 0x60, 0x48, 0x73, 0xb0, 0xca, 0x88, 0x13, 0xeb, 0xb3, 0x0f, 0x94, 0x24, 0x48, 0xf2, 0x68,
0x0b, 0x7f, 0xc7, 0x14, 0x31, 0x96, 0x0a, 0x30, 0xd5, 0x50, 0xab, 0xa6, 0xce, 0x01, 0x65, 0xae,
0xb1, 0x6c, 0xea, 0xe9, 0xc4, 0x1c, 0xca, 0x27, 0x95, 0x89, 0x60, 0x81, 0x5b, 0x5e, 0xd7, 0xa5,
0x34, 0x0c, 0x69, 0xa4, 0x6e, 0x33, 0x67, 0x3f, 0x9d, 0xe4, 0x36, 0x15, 0xff, 0x53, 0x7a, 0x0d,
0x12, 0xba, 0xa9, 0xa7, 0x07, 0x84, 0x92, 0xe4, 0xe1, 0xf3, 0x2c, 0x52, 0xf8, 0xc4, 0xf2, 0x28,
0x8f, 0x8d, 0x6f, 0x3f, 0xb7, 0x0a, 0xaf, 0x77, 0xf3, 0xc5, 0x77, 0x56, 0xba, 0x01, 0x63, 0xcd,
0x28, 0x71, 0x1d, 0x48, 0xe8, 0x18, 0x6d, 0x4e, 0xae, 0xeb, 0xb9, 0x5d, 0x11, 0x10, 0x05, 0xdb,
0xf8, 0xd1, 0x85, 0x03, 0x32, 0x0e, 0xfd, 0xa6, 0x2e, 0xc2, 0x91, 0x54, 0xfa, 0x3b, 0xe4, 0x66,
0x84, 0xdc, 0x0e, 0x4b, 0x41, 0x6e, 0x7e, 0x4a, 0xc0, 0x2c, 0xf7, 0x07, 0xb7, 0x79, 0x73, 0x9f,
0x3c, 0x70, 0xc3, 0x86, 0xf5, 0xcb, 0xd0, 0x24, 0x6d, 0xc0, 0x04, 0xae, 0x54, 0xb0, 0xc6, 0xcc,
0x06, 0x2e, 0xd7, 0x6d, 0x66, 0x56, 0x45, 0x7a, 0x46, 0x96, 0xe4, 0xa2, 0x7b, 0x5a, 0x8a, 0xfe,
0x69, 0x29, 0xde, 0xf7, 0x4f, 0xcb, 0xca, 0x30, 0x4f, 0xc1, 0x93, 0xff, 0xb2, 0x48, 0x19, 0x0f,
0xc8, 0xdb, 0x9c, 0x2b, 0xcd, 0x83, 0x9f, 0x56, 0x1e, 0xe3, 0x0a, 0xc6, 0x54, 0xe4, 0x32, 0xa9,
0x8c, 0x37, 0xa7, 0xd7, 0x30, 0xa6, 0x3c, 0x19, 0x26, 0xa5, 0x75, 0xd5, 0xd6, 0xb0, 0x0b, 0x1b,
0x70, 0x93, 0xe1, 0x4f, 0x0a, 0xd0, 0x2d, 0x98, 0x6a, 0x60, 0xc7, 0xac, 0x98, 0x5a, 0xcb, 0x7e,
0x83, 0x02, 0x38, 0xd9, 0xba, 0x20, 0xc0, 0x2d, 0xe5, 0x33, 0xd4, 0x5e, 0x3e, 0x8b, 0xf0, 0x6a,
0xa3, 0x56, 0xa6, 0x75, 0xcb, 0x52, 0x9d, 0xfd, 0xb2, 0x6e, 0x1a, 0x98, 0xb2, 0x32, 0x75, 0xcc,
0xf4, 0xb0, 0xc0, 0x49, 0x8d, 0xda, 0x96, 0xbb, 0xf6, 0xb9, 0x58, 0xda, 0x72, 0xcc, 0x50, 0xaa,
0xe6, 0xe1, 0xcd, 0xc8, 0x4c, 0x04, 0x39, 0xab, 0xc3, 0x1b, 0x22, 0xa7, 0xdf, 0xd6, 0x31, 0x6d,
0x07, 0xf3, 0xb1, 0x2d, 0xc4, 0x5e, 0x41, 0x29, 0xdd, 0x82, 0xb7, 0x62, 0xcd, 0x86, 0x34, 0xae,
0x12, 0xbb, 0x62, 0x3a, 0xd6, 0xcb, 0xd6, 0x18, 0x6d, 0x36, 0xd0, 0xc8, 0x60, 0x8e, 0x83, 0x79,
0x21, 0x54, 0x5b, 0xb1, 0x5f, 0xa9, 0x94, 0x79, 0x6e, 0x5e, 0x81, 0xc4, 0x02, 0xe4, 0xe3, 0xac,
0x06, 0x0a, 0xff, 0x4c, 0x88, 0x5b, 0x75, 0x95, 0x53, 0xb1, 0x42, 0x48, 0x4b, 0xd8, 0xcf, 0xa5,
0x6c, 0x06, 0x52, 0x54, 0xdb, 0xc5, 0x96, 0x5a, 0x0e, 0x04, 0x0e, 0xbb, 0x13, 0xeb, 0xba, 0x34,
0xe9, 0xde, 0x7f, 0x09, 0x51, 0xae, 0x7c, 0x18, 0x71, 0x57, 0x7e, 0x09, 0xcd, 0x33, 0x59, 0xae,
0x38, 0xc4, 0x12, 0x27, 0xeb, 0xb4, 0xe7, 0x79, 0x2c, 0xe0, 0xae, 0x39, 0xc4, 0xea, 0x76, 0x3b,
0x0c, 0x5e, 0xee, 0xed, 0x30, 0x74, 0xba, 0xdb, 0x61, 0xf8, 0xb4, 0xb7, 0x43, 0xaa, 0xfb, 0xed,
0x10, 0xca, 0xf4, 0x22, 0x64, 0x7b, 0x24, 0x2f, 0x78, 0x2d, 0xdc, 0x52, 0x41, 0x7e, 0xa9, 0xe4,
0xfe, 0x40, 0xf0, 0xca, 0x06, 0x35, 0xee, 0xed, 0x31, 0x6c, 0xeb, 0x17, 0x4c, 0xf6, 0xd5, 0x5e,
0xc2, 0x21, 0x5f, 0x67, 0x61, 0xa6, 0x8b, 0xee, 0xa0, 0x90, 0x0d, 0xe1, 0x96, 0x82, 0x1b, 0xe4,
0x21, 0xbe, 0x5c, 0xb7, 0xba, 0xea, 0x08, 0x1b, 0x0a, 0x74, 0xfc, 0xd2, 0x0f, 0xb9, 0x20, 0x27,
0x5f, 0x3b, 0x5e, 0xbb, 0x12, 0xe0, 0xb6, 0xf0, 0x65, 0xe8, 0x4a, 0x89, 0x70, 0xdf, 0x84, 0x71,
0x5e, 0x48, 0x38, 0xdc, 0x91, 0x8c, 0xba, 0xb3, 0x5e, 0x3b, 0x92, 0x07, 0xaf, 0x8a, 0x5a, 0x70,
0xfe, 0x5b, 0xe6, 0xcd, 0x7b, 0xc8, 0x1c, 0x8c, 0xa9, 0x06, 0xb6, 0x59, 0x00, 0x73, 0xdf, 0xb2,
0x11, 0x31, 0xe9, 0x61, 0xde, 0x83, 0xe9, 0x47, 0x6a, 0xb5, 0x8a, 0x59, 0xb9, 0x1d, 0x2a, 0x5e,
0x33, 0xaf, 0xa7, 0x99, 0x72, 0x11, 0x77, 0x9b, 0xb4, 0x50, 0x08, 0xef, 0x40, 0x21, 0x3e, 0x44,
0x5d, 0x2a, 0x58, 0xb8, 0xbd, 0xf4, 0x62, 0x14, 0x12, 0x1b, 0xd4, 0x90, 0x1c, 0x18, 0x6d, 0xeb,
0x70, 0xdf, 0x8e, 0xec, 0x4c, 0x43, 0xad, 0xa3, 0xfc, 0xee, 0x59, 0xd0, 0x81, 0x96, 0x1f, 0x10,
0x4c, 0x75, 0x76, 0x99, 0x8b, 0x71, 0x7b, 0x75, 0x50, 0xe4, 0x0f, 0xcf, 0x4c, 0x69, 0xd3, 0xd0,
0xd9, 0xd8, 0xc5, 0x6a, 0xe8, 0xa0, 0xc4, 0x6b, 0xe8, 0xd9, 0xd4, 0x49, 0x3f, 0x23, 0x90, 0x23,
0x3a, 0xba, 0xe5, 0x58, 0xef, 0x7a, 0x72, 0xe5, 0x95, 0xf3, 0x73, 0x03, 0x79, 0x4f, 0x11, 0x64,
0x62, 0xba, 0x97, 0x4f, 0xe2, 0x9d, 0x8f, 0xe2, 0xcb, 0x6b, 0x17, 0xe3, 0xb7, 0x49, 0x8d, 0x69,
0x62, 0x62, 0xa5, 0x46, 0xf3, 0xe3, 0xa5, 0x9e, 0xae, 0x9b, 0x91, 0x7e, 0x45, 0x30, 0x1b, 0xdd,
0xcb, 0x7c, 0x1c, 0x6b, 0x29, 0x8a, 0x2e, 0xdf, 0xbb, 0x10, 0x3d, 0xd0, 0xf9, 0x18, 0xc1, 0x74,
0xd7, 0x86, 0x26, 0xf6, 0xcc, 0x77, 0x63, 0xc9, 0x77, 0xce, 0xc3, 0x0a, 0xc4, 0x7c, 0x07, 0x93,
0x1d, 0x6f, 0xed, 0xed, 0xb8, 0x1d, 0xc3, 0x0c, 0xf9, 0x83, 0xb3, 0x32, 0x5a, 0xed, 0x77, 0x3c,
0x8a, 0xb7, 0xe3, 0x6b, 0xb7, 0x9d, 0x11, 0x6f, 0xbf, 0xd7, 0x7b, 0x28, 0xfd, 0x86, 0x20, 0x1b,
0xf7, 0x18, 0x7e, 0x7a, 0xba, 0x08, 0xf7, 0xdc, 0x40, 0xfe, 0xe2, 0x82, 0x1b, 0xf8, 0x6a, 0xe5,
0x81, 0xef, 0x4f, 0x0e, 0x0a, 0x68, 0x65, 0xfb, 0xf0, 0x28, 0x83, 0x9e, 0x1d, 0x65, 0xd0, 0x8b,
0xa3, 0x0c, 0x7a, 0x72, 0x9c, 0xe9, 0x7b, 0x76, 0x9c, 0xe9, 0xfb, 0xf7, 0x38, 0xd3, 0xf7, 0xcd,
0x47, 0x86, 0xc9, 0x76, 0xeb, 0x3b, 0x45, 0x8d, 0x58, 0x25, 0xd7, 0xe6, 0x42, 0x55, 0xdd, 0xa1,
0xfe, 0xb8, 0xd7, 0x6f, 0x19, 0xe2, 0xe7, 0x9b, 0x9d, 0x41, 0xd1, 0xfe, 0xbc, 0xf3, 0x7f, 0x00,
0x00, 0x00, 0xff, 0xff, 0xc0, 0x69, 0xc2, 0xde, 0xb4, 0x12, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
StartPermissionVP(ctx context.Context, in *MsgStartPermissionVP, opts ...grpc.CallOption) (*MsgStartPermissionVPResponse, error)
RenewPermissionVP(ctx context.Context, in *MsgRenewPermissionVP, opts ...grpc.CallOption) (*MsgRenewPermissionVPResponse, error)
SetPermissionVPToValidated(ctx context.Context, in *MsgSetPermissionVPToValidated, opts ...grpc.CallOption) (*MsgSetPermissionVPToValidatedResponse, error)
RequestPermissionVPTermination(ctx context.Context, in *MsgRequestPermissionVPTermination, opts ...grpc.CallOption) (*MsgRequestPermissionVPTerminationResponse, error)
ConfirmPermissionVPTermination(ctx context.Context, in *MsgConfirmPermissionVPTermination, opts ...grpc.CallOption) (*MsgConfirmPermissionVPTerminationResponse, error)
CancelPermissionVPLastRequest(ctx context.Context, in *MsgCancelPermissionVPLastRequest, opts ...grpc.CallOption) (*MsgCancelPermissionVPLastRequestResponse, error)
CreateRootPermission(ctx context.Context, in *MsgCreateRootPermission, opts ...grpc.CallOption) (*MsgCreateRootPermissionResponse, error)
ExtendPermission(ctx context.Context, in *MsgExtendPermission, opts ...grpc.CallOption) (*MsgExtendPermissionResponse, error)
RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error)
CreateOrUpdatePermissionSession(ctx context.Context, in *MsgCreateOrUpdatePermissionSession, opts ...grpc.CallOption) (*MsgCreateOrUpdatePermissionSessionResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/UpdateParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) StartPermissionVP(ctx context.Context, in *MsgStartPermissionVP, opts ...grpc.CallOption) (*MsgStartPermissionVPResponse, error) {
out := new(MsgStartPermissionVPResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/StartPermissionVP", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RenewPermissionVP(ctx context.Context, in *MsgRenewPermissionVP, opts ...grpc.CallOption) (*MsgRenewPermissionVPResponse, error) {
out := new(MsgRenewPermissionVPResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/RenewPermissionVP", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) SetPermissionVPToValidated(ctx context.Context, in *MsgSetPermissionVPToValidated, opts ...grpc.CallOption) (*MsgSetPermissionVPToValidatedResponse, error) {
out := new(MsgSetPermissionVPToValidatedResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/SetPermissionVPToValidated", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RequestPermissionVPTermination(ctx context.Context, in *MsgRequestPermissionVPTermination, opts ...grpc.CallOption) (*MsgRequestPermissionVPTerminationResponse, error) {
out := new(MsgRequestPermissionVPTerminationResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/RequestPermissionVPTermination", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ConfirmPermissionVPTermination(ctx context.Context, in *MsgConfirmPermissionVPTermination, opts ...grpc.CallOption) (*MsgConfirmPermissionVPTerminationResponse, error) {
out := new(MsgConfirmPermissionVPTerminationResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/ConfirmPermissionVPTermination", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CancelPermissionVPLastRequest(ctx context.Context, in *MsgCancelPermissionVPLastRequest, opts ...grpc.CallOption) (*MsgCancelPermissionVPLastRequestResponse, error) {
out := new(MsgCancelPermissionVPLastRequestResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/CancelPermissionVPLastRequest", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateRootPermission(ctx context.Context, in *MsgCreateRootPermission, opts ...grpc.CallOption) (*MsgCreateRootPermissionResponse, error) {
out := new(MsgCreateRootPermissionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/CreateRootPermission", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ExtendPermission(ctx context.Context, in *MsgExtendPermission, opts ...grpc.CallOption) (*MsgExtendPermissionResponse, error) {
out := new(MsgExtendPermissionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/ExtendPermission", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error) {
out := new(MsgRevokePermissionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/RevokePermission", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateOrUpdatePermissionSession(ctx context.Context, in *MsgCreateOrUpdatePermissionSession, opts ...grpc.CallOption) (*MsgCreateOrUpdatePermissionSessionResponse, error) {
out := new(MsgCreateOrUpdatePermissionSessionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.permission.Msg/CreateOrUpdatePermissionSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
StartPermissionVP(context.Context, *MsgStartPermissionVP) (*MsgStartPermissionVPResponse, error)
RenewPermissionVP(context.Context, *MsgRenewPermissionVP) (*MsgRenewPermissionVPResponse, error)
SetPermissionVPToValidated(context.Context, *MsgSetPermissionVPToValidated) (*MsgSetPermissionVPToValidatedResponse, error)
RequestPermissionVPTermination(context.Context, *MsgRequestPermissionVPTermination) (*MsgRequestPermissionVPTerminationResponse, error)
ConfirmPermissionVPTermination(context.Context, *MsgConfirmPermissionVPTermination) (*MsgConfirmPermissionVPTerminationResponse, error)
CancelPermissionVPLastRequest(context.Context, *MsgCancelPermissionVPLastRequest) (*MsgCancelPermissionVPLastRequestResponse, error)
CreateRootPermission(context.Context, *MsgCreateRootPermission) (*MsgCreateRootPermissionResponse, error)
ExtendPermission(context.Context, *MsgExtendPermission) (*MsgExtendPermissionResponse, error)
RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error)
CreateOrUpdatePermissionSession(context.Context, *MsgCreateOrUpdatePermissionSession) (*MsgCreateOrUpdatePermissionSessionResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (*UnimplementedMsgServer) StartPermissionVP(ctx context.Context, req *MsgStartPermissionVP) (*MsgStartPermissionVPResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartPermissionVP not implemented")
}
func (*UnimplementedMsgServer) RenewPermissionVP(ctx context.Context, req *MsgRenewPermissionVP) (*MsgRenewPermissionVPResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenewPermissionVP not implemented")
}
func (*UnimplementedMsgServer) SetPermissionVPToValidated(ctx context.Context, req *MsgSetPermissionVPToValidated) (*MsgSetPermissionVPToValidatedResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetPermissionVPToValidated not implemented")
}
func (*UnimplementedMsgServer) RequestPermissionVPTermination(ctx context.Context, req *MsgRequestPermissionVPTermination) (*MsgRequestPermissionVPTerminationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RequestPermissionVPTermination not implemented")
}
func (*UnimplementedMsgServer) ConfirmPermissionVPTermination(ctx context.Context, req *MsgConfirmPermissionVPTermination) (*MsgConfirmPermissionVPTerminationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ConfirmPermissionVPTermination not implemented")
}
func (*UnimplementedMsgServer) CancelPermissionVPLastRequest(ctx context.Context, req *MsgCancelPermissionVPLastRequest) (*MsgCancelPermissionVPLastRequestResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelPermissionVPLastRequest not implemented")
}
func (*UnimplementedMsgServer) CreateRootPermission(ctx context.Context, req *MsgCreateRootPermission) (*MsgCreateRootPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateRootPermission not implemented")
}
func (*UnimplementedMsgServer) ExtendPermission(ctx context.Context, req *MsgExtendPermission) (*MsgExtendPermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ExtendPermission not implemented")
}
func (*UnimplementedMsgServer) RevokePermission(ctx context.Context, req *MsgRevokePermission) (*MsgRevokePermissionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RevokePermission not implemented")
}
func (*UnimplementedMsgServer) CreateOrUpdatePermissionSession(ctx context.Context, req *MsgCreateOrUpdatePermissionSession) (*MsgCreateOrUpdatePermissionSessionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdatePermissionSession not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/UpdateParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_StartPermissionVP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgStartPermissionVP)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).StartPermissionVP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/StartPermissionVP",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).StartPermissionVP(ctx, req.(*MsgStartPermissionVP))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RenewPermissionVP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRenewPermissionVP)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RenewPermissionVP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/RenewPermissionVP",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RenewPermissionVP(ctx, req.(*MsgRenewPermissionVP))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_SetPermissionVPToValidated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgSetPermissionVPToValidated)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).SetPermissionVPToValidated(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/SetPermissionVPToValidated",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).SetPermissionVPToValidated(ctx, req.(*MsgSetPermissionVPToValidated))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RequestPermissionVPTermination_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRequestPermissionVPTermination)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RequestPermissionVPTermination(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/RequestPermissionVPTermination",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RequestPermissionVPTermination(ctx, req.(*MsgRequestPermissionVPTermination))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ConfirmPermissionVPTermination_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgConfirmPermissionVPTermination)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ConfirmPermissionVPTermination(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/ConfirmPermissionVPTermination",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ConfirmPermissionVPTermination(ctx, req.(*MsgConfirmPermissionVPTermination))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CancelPermissionVPLastRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCancelPermissionVPLastRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CancelPermissionVPLastRequest(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/CancelPermissionVPLastRequest",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CancelPermissionVPLastRequest(ctx, req.(*MsgCancelPermissionVPLastRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateRootPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateRootPermission)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateRootPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/CreateRootPermission",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateRootPermission(ctx, req.(*MsgCreateRootPermission))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ExtendPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgExtendPermission)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ExtendPermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/ExtendPermission",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ExtendPermission(ctx, req.(*MsgExtendPermission))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_RevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgRevokePermission)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).RevokePermission(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/RevokePermission",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).RevokePermission(ctx, req.(*MsgRevokePermission))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateOrUpdatePermissionSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateOrUpdatePermissionSession)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateOrUpdatePermissionSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.permission.Msg/CreateOrUpdatePermissionSession",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateOrUpdatePermissionSession(ctx, req.(*MsgCreateOrUpdatePermissionSession))
}
return interceptor(ctx, in, info, handler)
}
var Msg_serviceDesc = _Msg_serviceDesc
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.permission.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "StartPermissionVP",
Handler: _Msg_StartPermissionVP_Handler,
},
{
MethodName: "RenewPermissionVP",
Handler: _Msg_RenewPermissionVP_Handler,
},
{
MethodName: "SetPermissionVPToValidated",
Handler: _Msg_SetPermissionVPToValidated_Handler,
},
{
MethodName: "RequestPermissionVPTermination",
Handler: _Msg_RequestPermissionVPTermination_Handler,
},
{
MethodName: "ConfirmPermissionVPTermination",
Handler: _Msg_ConfirmPermissionVPTermination_Handler,
},
{
MethodName: "CancelPermissionVPLastRequest",
Handler: _Msg_CancelPermissionVPLastRequest_Handler,
},
{
MethodName: "CreateRootPermission",
Handler: _Msg_CreateRootPermission_Handler,
},
{
MethodName: "ExtendPermission",
Handler: _Msg_ExtendPermission_Handler,
},
{
MethodName: "RevokePermission",
Handler: _Msg_RevokePermission_Handler,
},
{
MethodName: "CreateOrUpdatePermissionSession",
Handler: _Msg_CreateOrUpdatePermissionSession_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/permission/tx.proto",
}
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
if len(m.Authority) > 0 {
i -= len(m.Authority)
copy(dAtA[i:], m.Authority)
i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgStartPermissionVP) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgStartPermissionVP) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgStartPermissionVP) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x2a
}
if len(m.Country) > 0 {
i -= len(m.Country)
copy(dAtA[i:], m.Country)
i = encodeVarintTx(dAtA, i, uint64(len(m.Country)))
i--
dAtA[i] = 0x22
}
if m.ValidatorPermId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.ValidatorPermId))
i--
dAtA[i] = 0x18
}
if m.Type != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Type))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgStartPermissionVPResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgStartPermissionVPResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgStartPermissionVPResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.PermissionId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.PermissionId))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *MsgRenewPermissionVP) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRenewPermissionVP) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRenewPermissionVP) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgRenewPermissionVPResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRenewPermissionVPResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRenewPermissionVPResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgSetPermissionVPToValidated) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgSetPermissionVPToValidated) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgSetPermissionVPToValidated) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.VpSummaryDigestSri) > 0 {
i -= len(m.VpSummaryDigestSri)
copy(dAtA[i:], m.VpSummaryDigestSri)
i = encodeVarintTx(dAtA, i, uint64(len(m.VpSummaryDigestSri)))
i--
dAtA[i] = 0x42
}
if len(m.Country) > 0 {
i -= len(m.Country)
copy(dAtA[i:], m.Country)
i = encodeVarintTx(dAtA, i, uint64(len(m.Country)))
i--
dAtA[i] = 0x3a
}
if m.VerificationFees != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerificationFees))
i--
dAtA[i] = 0x30
}
if m.IssuanceFees != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuanceFees))
i--
dAtA[i] = 0x28
}
if m.ValidationFees != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.ValidationFees))
i--
dAtA[i] = 0x20
}
if m.EffectiveUntil != nil {
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.EffectiveUntil, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintTx(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x1a
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgSetPermissionVPToValidatedResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgSetPermissionVPToValidatedResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgSetPermissionVPToValidatedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgRequestPermissionVPTermination) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRequestPermissionVPTermination) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRequestPermissionVPTermination) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgRequestPermissionVPTerminationResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRequestPermissionVPTerminationResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRequestPermissionVPTerminationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgConfirmPermissionVPTermination) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgConfirmPermissionVPTermination) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgConfirmPermissionVPTermination) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgConfirmPermissionVPTerminationResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgConfirmPermissionVPTerminationResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgConfirmPermissionVPTerminationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgCancelPermissionVPLastRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCancelPermissionVPLastRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCancelPermissionVPLastRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgCancelPermissionVPLastRequestResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCancelPermissionVPLastRequestResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCancelPermissionVPLastRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgCreateRootPermission) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateRootPermission) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateRootPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.VerificationFees != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerificationFees))
i--
dAtA[i] = 0x48
}
if m.IssuanceFees != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuanceFees))
i--
dAtA[i] = 0x40
}
if m.ValidationFees != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.ValidationFees))
i--
dAtA[i] = 0x38
}
if m.EffectiveUntil != nil {
n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.EffectiveUntil, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil):])
if err3 != nil {
return 0, err3
}
i -= n3
i = encodeVarintTx(dAtA, i, uint64(n3))
i--
dAtA[i] = 0x32
}
if m.EffectiveFrom != nil {
n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.EffectiveFrom, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveFrom):])
if err4 != nil {
return 0, err4
}
i -= n4
i = encodeVarintTx(dAtA, i, uint64(n4))
i--
dAtA[i] = 0x2a
}
if len(m.Country) > 0 {
i -= len(m.Country)
copy(dAtA[i:], m.Country)
i = encodeVarintTx(dAtA, i, uint64(len(m.Country)))
i--
dAtA[i] = 0x22
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x1a
}
if m.SchemaId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.SchemaId))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgCreateRootPermissionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateRootPermissionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateRootPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *MsgExtendPermission) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgExtendPermission) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgExtendPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.EffectiveUntil != nil {
n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.EffectiveUntil, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil):])
if err5 != nil {
return 0, err5
}
i -= n5
i = encodeVarintTx(dAtA, i, uint64(n5))
i--
dAtA[i] = 0x1a
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgExtendPermissionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgExtendPermissionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgExtendPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgRevokePermission) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRevokePermission) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRevokePermission) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgRevokePermissionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgCreateOrUpdatePermissionSession) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateOrUpdatePermissionSession) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateOrUpdatePermissionSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.WalletAgentPermId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.WalletAgentPermId))
i--
dAtA[i] = 0x30
}
if m.AgentPermId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.AgentPermId))
i--
dAtA[i] = 0x28
}
if m.VerifierPermId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.VerifierPermId))
i--
dAtA[i] = 0x20
}
if m.IssuerPermId != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.IssuerPermId))
i--
dAtA[i] = 0x18
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintTx(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0x12
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintTx(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgUpdateParams) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Authority)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = m.Params.Size()
n += 1 + l + sovTx(uint64(l))
return n
}
func (m *MsgUpdateParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgStartPermissionVP) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Type != 0 {
n += 1 + sovTx(uint64(m.Type))
}
if m.ValidatorPermId != 0 {
n += 1 + sovTx(uint64(m.ValidatorPermId))
}
l = len(m.Country)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgStartPermissionVPResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.PermissionId != 0 {
n += 1 + sovTx(uint64(m.PermissionId))
}
return n
}
func (m *MsgRenewPermissionVP) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgRenewPermissionVPResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgSetPermissionVPToValidated) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
if m.EffectiveUntil != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil)
n += 1 + l + sovTx(uint64(l))
}
if m.ValidationFees != 0 {
n += 1 + sovTx(uint64(m.ValidationFees))
}
if m.IssuanceFees != 0 {
n += 1 + sovTx(uint64(m.IssuanceFees))
}
if m.VerificationFees != 0 {
n += 1 + sovTx(uint64(m.VerificationFees))
}
l = len(m.Country)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.VpSummaryDigestSri)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgSetPermissionVPToValidatedResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgRequestPermissionVPTermination) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgRequestPermissionVPTerminationResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgConfirmPermissionVPTermination) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgConfirmPermissionVPTerminationResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgCancelPermissionVPLastRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgCancelPermissionVPLastRequestResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgCreateRootPermission) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.SchemaId != 0 {
n += 1 + sovTx(uint64(m.SchemaId))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Country)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.EffectiveFrom != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveFrom)
n += 1 + l + sovTx(uint64(l))
}
if m.EffectiveUntil != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil)
n += 1 + l + sovTx(uint64(l))
}
if m.ValidationFees != 0 {
n += 1 + sovTx(uint64(m.ValidationFees))
}
if m.IssuanceFees != 0 {
n += 1 + sovTx(uint64(m.IssuanceFees))
}
if m.VerificationFees != 0 {
n += 1 + sovTx(uint64(m.VerificationFees))
}
return n
}
func (m *MsgCreateRootPermissionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgExtendPermission) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
if m.EffectiveUntil != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil)
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgExtendPermissionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgRevokePermission) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgRevokePermissionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgCreateOrUpdatePermissionSession) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Id)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.IssuerPermId != 0 {
n += 1 + sovTx(uint64(m.IssuerPermId))
}
if m.VerifierPermId != 0 {
n += 1 + sovTx(uint64(m.VerifierPermId))
}
if m.AgentPermId != 0 {
n += 1 + sovTx(uint64(m.AgentPermId))
}
if m.WalletAgentPermId != 0 {
n += 1 + sovTx(uint64(m.WalletAgentPermId))
}
return n
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Id)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgStartPermissionVP) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgStartPermissionVP: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgStartPermissionVP: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
m.Type = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Type |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidatorPermId", wireType)
}
m.ValidatorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ValidatorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgStartPermissionVPResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgStartPermissionVPResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgStartPermissionVPResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field PermissionId", wireType)
}
m.PermissionId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.PermissionId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRenewPermissionVP) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRenewPermissionVP: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRenewPermissionVP: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRenewPermissionVPResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRenewPermissionVPResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRenewPermissionVPResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgSetPermissionVPToValidated) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgSetPermissionVPToValidated: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgSetPermissionVPToValidated: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.EffectiveUntil == nil {
m.EffectiveUntil = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.EffectiveUntil, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
m.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
m.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
m.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field VpSummaryDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.VpSummaryDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgSetPermissionVPToValidatedResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgSetPermissionVPToValidatedResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgSetPermissionVPToValidatedResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRequestPermissionVPTermination) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRequestPermissionVPTermination: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRequestPermissionVPTermination: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRequestPermissionVPTerminationResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRequestPermissionVPTerminationResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRequestPermissionVPTerminationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgConfirmPermissionVPTermination) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgConfirmPermissionVPTermination: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgConfirmPermissionVPTermination: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgConfirmPermissionVPTerminationResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgConfirmPermissionVPTerminationResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgConfirmPermissionVPTerminationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCancelPermissionVPLastRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCancelPermissionVPLastRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCancelPermissionVPLastRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCancelPermissionVPLastRequestResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCancelPermissionVPLastRequestResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCancelPermissionVPLastRequestResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateRootPermission) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateRootPermission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateRootPermission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
m.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EffectiveFrom", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.EffectiveFrom == nil {
m.EffectiveFrom = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.EffectiveFrom, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.EffectiveUntil == nil {
m.EffectiveUntil = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.EffectiveUntil, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
m.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
m.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 9:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
m.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateRootPermissionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateRootPermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateRootPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgExtendPermission) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgExtendPermission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgExtendPermission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.EffectiveUntil == nil {
m.EffectiveUntil = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.EffectiveUntil, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgExtendPermissionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgExtendPermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgExtendPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRevokePermission) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRevokePermission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRevokePermission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgRevokePermissionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgRevokePermissionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateOrUpdatePermissionSession) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateOrUpdatePermissionSession: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateOrUpdatePermissionSession: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuerPermId", wireType)
}
m.IssuerPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuerPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerifierPermId", wireType)
}
m.VerifierPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerifierPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field AgentPermId", wireType)
}
m.AgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.AgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field WalletAgentPermId", wireType)
}
m.WalletAgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.WalletAgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateOrUpdatePermissionSessionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateOrUpdatePermissionSessionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateOrUpdatePermissionSessionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
package types
import (
"fmt"
"regexp"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/google/uuid"
)
func (msg *MsgStartPermissionVP) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
if msg.ValidatorPermId == 0 {
return fmt.Errorf("validator permission ID cannot be 0")
}
if msg.Type == 0 || msg.Type > 6 {
return fmt.Errorf("permission type must be between 1 and 6")
}
if msg.Country == "" {
return fmt.Errorf("country must be specified")
}
if !isValidCountryCode(msg.Country) {
return fmt.Errorf("invalid country code format")
}
if msg.Did != "" && !isValidDID(msg.Did) {
return fmt.Errorf("invalid DID format")
}
return nil
}
func isValidCountryCode(code string) bool {
// Basic check for ISO 3166-1 alpha-2 format
match, _ := regexp.MatchString(`^[A-Z]{2}$`, code)
return match
}
func isValidDID(did string) bool {
// Basic DID validation regex
match, _ := regexp.MatchString(`^did:[a-zA-Z0-9]+:[a-zA-Z0-9._-]+$`, did)
return match
}
func (msg *MsgRenewPermissionVP) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
return nil
}
// ValidateBasic for MsgSetPermissionVPToValidated
func (msg *MsgSetPermissionVPToValidated) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
// Validate fees are non-negative
if msg.ValidationFees < 0 {
return fmt.Errorf("validation fees cannot be negative")
}
if msg.IssuanceFees < 0 {
return fmt.Errorf("issuance fees cannot be negative")
}
if msg.VerificationFees < 0 {
return fmt.Errorf("verification fees cannot be negative")
}
// Validate country code if provided
if msg.Country != "" && !isValidCountryCode(msg.Country) {
return fmt.Errorf("invalid country code format")
}
// Validate effective until if provided
if msg.EffectiveUntil != nil && msg.EffectiveUntil.Before(time.Now()) {
return fmt.Errorf("effective until must be in the future")
}
return nil
}
// ValidateBasic for MsgRequestPermissionVPTermination
func (msg *MsgRequestPermissionVPTermination) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
return nil
}
// ValidateBasic for MsgConfirmPermissionVPTermination
func (msg *MsgConfirmPermissionVPTermination) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
return nil
}
// ValidateBasic for MsgConfirmPermissionVPTermination
func (msg *MsgCancelPermissionVPLastRequest) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
return nil
}
func (msg *MsgCreateRootPermission) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate schema ID
if msg.SchemaId == 0 {
return fmt.Errorf("schema ID cannot be 0")
}
// Validate DID
if msg.Did == "" {
return fmt.Errorf("DID is required")
}
if !isValidDID(msg.Did) {
return fmt.Errorf("invalid DID format")
}
// Validate fees are non-negative
if msg.ValidationFees < 0 {
return fmt.Errorf("validation fees cannot be negative")
}
if msg.IssuanceFees < 0 {
return fmt.Errorf("issuance fees cannot be negative")
}
if msg.VerificationFees < 0 {
return fmt.Errorf("verification fees cannot be negative")
}
// Validate country code if present
if msg.Country != "" && !isValidCountryCode(msg.Country) {
return fmt.Errorf("invalid country code format")
}
// Validate effective dates if present
now := time.Now()
if msg.EffectiveFrom != nil {
if !msg.EffectiveFrom.After(now) {
return fmt.Errorf("effective_from must be in the future")
}
if msg.EffectiveUntil != nil {
if !msg.EffectiveUntil.After(*msg.EffectiveFrom) {
return fmt.Errorf("effective_until must be after effective_from")
}
}
}
return nil
}
func (msg *MsgExtendPermission) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
// Validate effective_until is in the future
if msg.EffectiveUntil != nil && !msg.EffectiveUntil.After(time.Now()) {
return fmt.Errorf("effective_until must be in the future")
}
return nil
}
func (msg *MsgRevokePermission) ValidateBasic() error {
// Validate creator address
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return fmt.Errorf("invalid creator address: %w", err)
}
// Validate permission ID
if msg.Id == 0 {
return fmt.Errorf("permission ID cannot be 0")
}
return nil
}
func (msg *MsgCreateOrUpdatePermissionSession) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address: %s", err)
}
// Validate UUID format
if _, err := uuid.Parse(msg.Id); err != nil {
return sdkerrors.ErrInvalidRequest.Wrap("invalid session ID: must be valid UUID")
}
// At least one of issuer or verifier must be provided
if msg.IssuerPermId == 0 && msg.VerifierPermId == 0 {
return sdkerrors.ErrInvalidRequest.Wrap("at least one of issuer_perm_id or verifier_perm_id must be provided")
}
// Agent permission ID is required
if msg.AgentPermId == 0 {
return sdkerrors.ErrInvalidRequest.Wrap("agent permission ID required")
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/permission/types.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Permission types
type PermissionType int32
const (
PermissionType_PERMISSION_TYPE_UNSPECIFIED PermissionType = 0
PermissionType_PERMISSION_TYPE_ISSUER PermissionType = 1
PermissionType_PERMISSION_TYPE_VERIFIER PermissionType = 2
PermissionType_PERMISSION_TYPE_ISSUER_GRANTOR PermissionType = 3
PermissionType_PERMISSION_TYPE_VERIFIER_GRANTOR PermissionType = 4
PermissionType_PERMISSION_TYPE_TRUST_REGISTRY PermissionType = 5
PermissionType_PERMISSION_TYPE_HOLDER PermissionType = 6
)
var PermissionType_name = map[int32]string{
0: "PERMISSION_TYPE_UNSPECIFIED",
1: "PERMISSION_TYPE_ISSUER",
2: "PERMISSION_TYPE_VERIFIER",
3: "PERMISSION_TYPE_ISSUER_GRANTOR",
4: "PERMISSION_TYPE_VERIFIER_GRANTOR",
5: "PERMISSION_TYPE_TRUST_REGISTRY",
6: "PERMISSION_TYPE_HOLDER",
}
var PermissionType_value = map[string]int32{
"PERMISSION_TYPE_UNSPECIFIED": 0,
"PERMISSION_TYPE_ISSUER": 1,
"PERMISSION_TYPE_VERIFIER": 2,
"PERMISSION_TYPE_ISSUER_GRANTOR": 3,
"PERMISSION_TYPE_VERIFIER_GRANTOR": 4,
"PERMISSION_TYPE_TRUST_REGISTRY": 5,
"PERMISSION_TYPE_HOLDER": 6,
}
func (x PermissionType) String() string {
return proto.EnumName(PermissionType_name, int32(x))
}
func (PermissionType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_53bb65abd815b63f, []int{0}
}
// Validation process states
type ValidationState int32
const (
ValidationState_VALIDATION_STATE_UNSPECIFIED ValidationState = 0
ValidationState_VALIDATION_STATE_PENDING ValidationState = 1
ValidationState_VALIDATION_STATE_VALIDATED ValidationState = 2
ValidationState_VALIDATION_STATE_TERMINATED ValidationState = 3
ValidationState_VALIDATION_STATE_TERMINATION_REQUESTED ValidationState = 4
)
var ValidationState_name = map[int32]string{
0: "VALIDATION_STATE_UNSPECIFIED",
1: "VALIDATION_STATE_PENDING",
2: "VALIDATION_STATE_VALIDATED",
3: "VALIDATION_STATE_TERMINATED",
4: "VALIDATION_STATE_TERMINATION_REQUESTED",
}
var ValidationState_value = map[string]int32{
"VALIDATION_STATE_UNSPECIFIED": 0,
"VALIDATION_STATE_PENDING": 1,
"VALIDATION_STATE_VALIDATED": 2,
"VALIDATION_STATE_TERMINATED": 3,
"VALIDATION_STATE_TERMINATION_REQUESTED": 4,
}
func (x ValidationState) String() string {
return proto.EnumName(ValidationState_name, int32(x))
}
func (ValidationState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_53bb65abd815b63f, []int{1}
}
type Permission struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
SchemaId uint64 `protobuf:"varint,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
Type PermissionType `protobuf:"varint,3,opt,name=type,proto3,enum=veranablockchain.permission.PermissionType" json:"type,omitempty"`
Did string `protobuf:"bytes,4,opt,name=did,proto3" json:"did,omitempty"`
Grantee string `protobuf:"bytes,5,opt,name=grantee,proto3" json:"grantee,omitempty"`
Created *time.Time `protobuf:"bytes,6,opt,name=created,proto3,stdtime" json:"created,omitempty"`
CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
Extended *time.Time `protobuf:"bytes,8,opt,name=extended,proto3,stdtime" json:"extended,omitempty"`
ExtendedBy string `protobuf:"bytes,9,opt,name=extended_by,json=extendedBy,proto3" json:"extended_by,omitempty"`
EffectiveFrom *time.Time `protobuf:"bytes,10,opt,name=effective_from,json=effectiveFrom,proto3,stdtime" json:"effective_from,omitempty"`
EffectiveUntil *time.Time `protobuf:"bytes,11,opt,name=effective_until,json=effectiveUntil,proto3,stdtime" json:"effective_until,omitempty"`
Modified *time.Time `protobuf:"bytes,12,opt,name=modified,proto3,stdtime" json:"modified,omitempty"`
ValidationFees uint64 `protobuf:"varint,13,opt,name=validation_fees,json=validationFees,proto3" json:"validation_fees,omitempty"`
IssuanceFees uint64 `protobuf:"varint,14,opt,name=issuance_fees,json=issuanceFees,proto3" json:"issuance_fees,omitempty"`
VerificationFees uint64 `protobuf:"varint,15,opt,name=verification_fees,json=verificationFees,proto3" json:"verification_fees,omitempty"`
Deposit uint64 `protobuf:"varint,16,opt,name=deposit,proto3" json:"deposit,omitempty"`
Revoked *time.Time `protobuf:"bytes,17,opt,name=revoked,proto3,stdtime" json:"revoked,omitempty"`
RevokedBy string `protobuf:"bytes,18,opt,name=revoked_by,json=revokedBy,proto3" json:"revoked_by,omitempty"`
Terminated *time.Time `protobuf:"bytes,19,opt,name=terminated,proto3,stdtime" json:"terminated,omitempty"`
TerminatedBy string `protobuf:"bytes,20,opt,name=terminated_by,json=terminatedBy,proto3" json:"terminated_by,omitempty"`
Country string `protobuf:"bytes,21,opt,name=country,proto3" json:"country,omitempty"`
ValidatorPermId uint64 `protobuf:"varint,22,opt,name=validator_perm_id,json=validatorPermId,proto3" json:"validator_perm_id,omitempty"`
VpState ValidationState `protobuf:"varint,23,opt,name=vp_state,json=vpState,proto3,enum=veranablockchain.permission.ValidationState" json:"vp_state,omitempty"`
VpExp *time.Time `protobuf:"bytes,24,opt,name=vp_exp,json=vpExp,proto3,stdtime" json:"vp_exp,omitempty"`
VpLastStateChange *time.Time `protobuf:"bytes,25,opt,name=vp_last_state_change,json=vpLastStateChange,proto3,stdtime" json:"vp_last_state_change,omitempty"`
VpValidatorDeposit uint64 `protobuf:"varint,26,opt,name=vp_validator_deposit,json=vpValidatorDeposit,proto3" json:"vp_validator_deposit,omitempty"`
VpCurrentFees uint64 `protobuf:"varint,27,opt,name=vp_current_fees,json=vpCurrentFees,proto3" json:"vp_current_fees,omitempty"`
VpCurrentDeposit uint64 `protobuf:"varint,28,opt,name=vp_current_deposit,json=vpCurrentDeposit,proto3" json:"vp_current_deposit,omitempty"`
VpSummaryDigestSri string `protobuf:"bytes,29,opt,name=vp_summary_digest_sri,json=vpSummaryDigestSri,proto3" json:"vp_summary_digest_sri,omitempty"`
VpTermRequested *time.Time `protobuf:"bytes,30,opt,name=vp_term_requested,json=vpTermRequested,proto3,stdtime" json:"vp_term_requested,omitempty"`
}
func (m *Permission) Reset() { *m = Permission{} }
func (m *Permission) String() string { return proto.CompactTextString(m) }
func (*Permission) ProtoMessage() {}
func (*Permission) Descriptor() ([]byte, []int) {
return fileDescriptor_53bb65abd815b63f, []int{0}
}
func (m *Permission) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Permission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Permission.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Permission) XXX_Merge(src proto.Message) {
xxx_messageInfo_Permission.Merge(m, src)
}
func (m *Permission) XXX_Size() int {
return m.Size()
}
func (m *Permission) XXX_DiscardUnknown() {
xxx_messageInfo_Permission.DiscardUnknown(m)
}
var xxx_messageInfo_Permission proto.InternalMessageInfo
func (m *Permission) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Permission) GetSchemaId() uint64 {
if m != nil {
return m.SchemaId
}
return 0
}
func (m *Permission) GetType() PermissionType {
if m != nil {
return m.Type
}
return PermissionType_PERMISSION_TYPE_UNSPECIFIED
}
func (m *Permission) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *Permission) GetGrantee() string {
if m != nil {
return m.Grantee
}
return ""
}
func (m *Permission) GetCreated() *time.Time {
if m != nil {
return m.Created
}
return nil
}
func (m *Permission) GetCreatedBy() string {
if m != nil {
return m.CreatedBy
}
return ""
}
func (m *Permission) GetExtended() *time.Time {
if m != nil {
return m.Extended
}
return nil
}
func (m *Permission) GetExtendedBy() string {
if m != nil {
return m.ExtendedBy
}
return ""
}
func (m *Permission) GetEffectiveFrom() *time.Time {
if m != nil {
return m.EffectiveFrom
}
return nil
}
func (m *Permission) GetEffectiveUntil() *time.Time {
if m != nil {
return m.EffectiveUntil
}
return nil
}
func (m *Permission) GetModified() *time.Time {
if m != nil {
return m.Modified
}
return nil
}
func (m *Permission) GetValidationFees() uint64 {
if m != nil {
return m.ValidationFees
}
return 0
}
func (m *Permission) GetIssuanceFees() uint64 {
if m != nil {
return m.IssuanceFees
}
return 0
}
func (m *Permission) GetVerificationFees() uint64 {
if m != nil {
return m.VerificationFees
}
return 0
}
func (m *Permission) GetDeposit() uint64 {
if m != nil {
return m.Deposit
}
return 0
}
func (m *Permission) GetRevoked() *time.Time {
if m != nil {
return m.Revoked
}
return nil
}
func (m *Permission) GetRevokedBy() string {
if m != nil {
return m.RevokedBy
}
return ""
}
func (m *Permission) GetTerminated() *time.Time {
if m != nil {
return m.Terminated
}
return nil
}
func (m *Permission) GetTerminatedBy() string {
if m != nil {
return m.TerminatedBy
}
return ""
}
func (m *Permission) GetCountry() string {
if m != nil {
return m.Country
}
return ""
}
func (m *Permission) GetValidatorPermId() uint64 {
if m != nil {
return m.ValidatorPermId
}
return 0
}
func (m *Permission) GetVpState() ValidationState {
if m != nil {
return m.VpState
}
return ValidationState_VALIDATION_STATE_UNSPECIFIED
}
func (m *Permission) GetVpExp() *time.Time {
if m != nil {
return m.VpExp
}
return nil
}
func (m *Permission) GetVpLastStateChange() *time.Time {
if m != nil {
return m.VpLastStateChange
}
return nil
}
func (m *Permission) GetVpValidatorDeposit() uint64 {
if m != nil {
return m.VpValidatorDeposit
}
return 0
}
func (m *Permission) GetVpCurrentFees() uint64 {
if m != nil {
return m.VpCurrentFees
}
return 0
}
func (m *Permission) GetVpCurrentDeposit() uint64 {
if m != nil {
return m.VpCurrentDeposit
}
return 0
}
func (m *Permission) GetVpSummaryDigestSri() string {
if m != nil {
return m.VpSummaryDigestSri
}
return ""
}
func (m *Permission) GetVpTermRequested() *time.Time {
if m != nil {
return m.VpTermRequested
}
return nil
}
type PermissionSession struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"`
AgentPermId uint64 `protobuf:"varint,3,opt,name=agent_perm_id,json=agentPermId,proto3" json:"agent_perm_id,omitempty"`
Authz []*SessionAuthz `protobuf:"bytes,4,rep,name=authz,proto3" json:"authz,omitempty"`
Created *time.Time `protobuf:"bytes,5,opt,name=created,proto3,stdtime" json:"created,omitempty"`
Modified *time.Time `protobuf:"bytes,6,opt,name=modified,proto3,stdtime" json:"modified,omitempty"`
}
func (m *PermissionSession) Reset() { *m = PermissionSession{} }
func (m *PermissionSession) String() string { return proto.CompactTextString(m) }
func (*PermissionSession) ProtoMessage() {}
func (*PermissionSession) Descriptor() ([]byte, []int) {
return fileDescriptor_53bb65abd815b63f, []int{1}
}
func (m *PermissionSession) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PermissionSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PermissionSession.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PermissionSession) XXX_Merge(src proto.Message) {
xxx_messageInfo_PermissionSession.Merge(m, src)
}
func (m *PermissionSession) XXX_Size() int {
return m.Size()
}
func (m *PermissionSession) XXX_DiscardUnknown() {
xxx_messageInfo_PermissionSession.DiscardUnknown(m)
}
var xxx_messageInfo_PermissionSession proto.InternalMessageInfo
func (m *PermissionSession) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *PermissionSession) GetController() string {
if m != nil {
return m.Controller
}
return ""
}
func (m *PermissionSession) GetAgentPermId() uint64 {
if m != nil {
return m.AgentPermId
}
return 0
}
func (m *PermissionSession) GetAuthz() []*SessionAuthz {
if m != nil {
return m.Authz
}
return nil
}
func (m *PermissionSession) GetCreated() *time.Time {
if m != nil {
return m.Created
}
return nil
}
func (m *PermissionSession) GetModified() *time.Time {
if m != nil {
return m.Modified
}
return nil
}
type SessionAuthz struct {
ExecutorPermId uint64 `protobuf:"varint,1,opt,name=executor_perm_id,json=executorPermId,proto3" json:"executor_perm_id,omitempty"`
BeneficiaryPermId uint64 `protobuf:"varint,2,opt,name=beneficiary_perm_id,json=beneficiaryPermId,proto3" json:"beneficiary_perm_id,omitempty"`
WalletAgentPermId uint64 `protobuf:"varint,3,opt,name=wallet_agent_perm_id,json=walletAgentPermId,proto3" json:"wallet_agent_perm_id,omitempty"`
}
func (m *SessionAuthz) Reset() { *m = SessionAuthz{} }
func (m *SessionAuthz) String() string { return proto.CompactTextString(m) }
func (*SessionAuthz) ProtoMessage() {}
func (*SessionAuthz) Descriptor() ([]byte, []int) {
return fileDescriptor_53bb65abd815b63f, []int{2}
}
func (m *SessionAuthz) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SessionAuthz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SessionAuthz.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SessionAuthz) XXX_Merge(src proto.Message) {
xxx_messageInfo_SessionAuthz.Merge(m, src)
}
func (m *SessionAuthz) XXX_Size() int {
return m.Size()
}
func (m *SessionAuthz) XXX_DiscardUnknown() {
xxx_messageInfo_SessionAuthz.DiscardUnknown(m)
}
var xxx_messageInfo_SessionAuthz proto.InternalMessageInfo
func (m *SessionAuthz) GetExecutorPermId() uint64 {
if m != nil {
return m.ExecutorPermId
}
return 0
}
func (m *SessionAuthz) GetBeneficiaryPermId() uint64 {
if m != nil {
return m.BeneficiaryPermId
}
return 0
}
func (m *SessionAuthz) GetWalletAgentPermId() uint64 {
if m != nil {
return m.WalletAgentPermId
}
return 0
}
func init() {
proto.RegisterEnum("veranablockchain.permission.PermissionType", PermissionType_name, PermissionType_value)
proto.RegisterEnum("veranablockchain.permission.ValidationState", ValidationState_name, ValidationState_value)
proto.RegisterType((*Permission)(nil), "veranablockchain.permission.Permission")
proto.RegisterType((*PermissionSession)(nil), "veranablockchain.permission.PermissionSession")
proto.RegisterType((*SessionAuthz)(nil), "veranablockchain.permission.SessionAuthz")
}
func init() {
proto.RegisterFile("veranablockchain/permission/types.proto", fileDescriptor_53bb65abd815b63f)
}
var fileDescriptor_53bb65abd815b63f = []byte{
// 1153 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4d, 0x6f, 0xdb, 0x46,
0x13, 0x36, 0x25, 0xf9, 0x43, 0x63, 0x4b, 0xa2, 0x36, 0x4e, 0xde, 0x8d, 0xec, 0x57, 0x16, 0xdc,
0x22, 0x51, 0x9d, 0x44, 0x6a, 0xdd, 0x43, 0xd0, 0x2f, 0xa4, 0x92, 0x45, 0xbb, 0x02, 0x5c, 0xd9,
0x21, 0x29, 0x03, 0xe9, 0x85, 0xa0, 0xc8, 0x95, 0xbc, 0x88, 0xf8, 0x51, 0x92, 0x62, 0xad, 0xfe,
0x8a, 0x5c, 0x7b, 0xed, 0x1f, 0xe8, 0xa5, 0xe7, 0x9e, 0x7b, 0x0c, 0x7a, 0xea, 0xad, 0x85, 0xfd,
0x1b, 0x7a, 0x2f, 0x76, 0x49, 0x4a, 0xaa, 0xec, 0xd8, 0xca, 0x85, 0xd8, 0x9d, 0x79, 0x9e, 0x99,
0x9d, 0xd9, 0x67, 0x77, 0x09, 0x8f, 0x43, 0xe2, 0xe9, 0xb6, 0xde, 0x1b, 0x3a, 0xc6, 0x6b, 0xe3,
0x5c, 0xa7, 0x76, 0xdd, 0x25, 0x9e, 0x45, 0x7d, 0x9f, 0x3a, 0x76, 0x3d, 0x18, 0xbb, 0xc4, 0xaf,
0xb9, 0x9e, 0x13, 0x38, 0x68, 0x6b, 0x1e, 0x58, 0x9b, 0x02, 0x4b, 0x45, 0xdd, 0xa2, 0xb6, 0x53,
0xe7, 0xdf, 0x08, 0x5f, 0x7a, 0x68, 0x38, 0xbe, 0xe5, 0xf8, 0x1a, 0x9f, 0xd5, 0xa3, 0x49, 0xec,
0xda, 0x1c, 0x38, 0x03, 0x27, 0xb2, 0xb3, 0x51, 0x6c, 0xdd, 0x19, 0x38, 0xce, 0x60, 0x48, 0xea,
0x7c, 0xd6, 0x1b, 0xf5, 0xeb, 0x01, 0xb5, 0x88, 0x1f, 0xe8, 0x96, 0x1b, 0x01, 0x76, 0x7f, 0xd9,
0x00, 0x38, 0x9d, 0xe4, 0x44, 0x79, 0x48, 0x51, 0x13, 0x0b, 0x15, 0xa1, 0x9a, 0x91, 0x53, 0xd4,
0x44, 0x5b, 0x90, 0xf5, 0x8d, 0x73, 0x62, 0xe9, 0x1a, 0x35, 0x71, 0x8a, 0x9b, 0xd7, 0x22, 0x43,
0xdb, 0x44, 0x2f, 0x20, 0xc3, 0x8a, 0xc1, 0xe9, 0x8a, 0x50, 0xcd, 0xef, 0x3f, 0xa9, 0xdd, 0x52,
0x4c, 0x6d, 0x9a, 0x43, 0x1d, 0xbb, 0x44, 0xe6, 0x44, 0x24, 0x42, 0xda, 0xa4, 0x26, 0xce, 0x54,
0x84, 0x6a, 0x56, 0x66, 0x43, 0xb4, 0x0f, 0xab, 0x03, 0x4f, 0xb7, 0x03, 0x42, 0xf0, 0x32, 0xb3,
0x36, 0xf1, 0x1f, 0xbf, 0x3e, 0xdb, 0x8c, 0x0b, 0x6d, 0x98, 0xa6, 0x47, 0x7c, 0x5f, 0x09, 0x3c,
0x6a, 0x0f, 0xe4, 0x04, 0x88, 0x3e, 0x87, 0x55, 0xc3, 0x23, 0x7a, 0x40, 0x4c, 0xbc, 0x52, 0x11,
0xaa, 0xeb, 0xfb, 0xa5, 0x5a, 0x54, 0x75, 0x2d, 0xa9, 0xba, 0xa6, 0x26, 0x55, 0x37, 0x33, 0x6f,
0xfe, 0xda, 0x11, 0xe4, 0x84, 0x80, 0x9e, 0x03, 0xc4, 0x43, 0xad, 0x37, 0xc6, 0xab, 0x77, 0xa4,
0xcc, 0xc6, 0xd8, 0xe6, 0x18, 0x7d, 0x09, 0x6b, 0xe4, 0x22, 0x20, 0xb6, 0x49, 0x4c, 0xbc, 0xb6,
0x60, 0xd6, 0x09, 0x03, 0x7d, 0x06, 0xeb, 0xc9, 0x98, 0xe5, 0xcd, 0xde, 0x91, 0x17, 0x12, 0x70,
0x73, 0x8c, 0x8e, 0x20, 0x4f, 0xfa, 0x7d, 0x62, 0x04, 0x34, 0x24, 0x5a, 0xdf, 0x73, 0x2c, 0x0c,
0x0b, 0xa6, 0xcf, 0x4d, 0x78, 0x87, 0x9e, 0x63, 0xa1, 0x36, 0x14, 0xa6, 0x81, 0x46, 0x76, 0x40,
0x87, 0x78, 0x7d, 0xc1, 0x48, 0xd3, 0x15, 0x74, 0x19, 0x8f, 0x35, 0xc3, 0x72, 0x4c, 0xda, 0xa7,
0xc4, 0xc4, 0x1b, 0x8b, 0x36, 0x23, 0x61, 0xa0, 0xc7, 0x50, 0x08, 0xf5, 0x21, 0x35, 0xf5, 0x80,
0x3a, 0xb6, 0xd6, 0x27, 0xc4, 0xc7, 0x39, 0xae, 0xb4, 0xfc, 0xd4, 0x7c, 0x48, 0x88, 0x8f, 0x3e,
0x80, 0x1c, 0xf5, 0xfd, 0x91, 0x6e, 0x1b, 0x24, 0x82, 0xe5, 0x39, 0x6c, 0x23, 0x31, 0x72, 0xd0,
0x13, 0x28, 0x86, 0xc4, 0xa3, 0x7d, 0x6a, 0xcc, 0xc4, 0x2b, 0x70, 0xa0, 0x38, 0xeb, 0xe0, 0x60,
0x0c, 0xab, 0x26, 0x71, 0x1d, 0x9f, 0x06, 0x58, 0xe4, 0x90, 0x64, 0xca, 0x44, 0xe5, 0x91, 0xd0,
0x79, 0x4d, 0x4c, 0x5c, 0x5c, 0x54, 0x54, 0x31, 0x81, 0x89, 0x2a, 0x1e, 0xb2, 0xcd, 0x45, 0x77,
0x89, 0x2a, 0xc6, 0x36, 0xc7, 0xe8, 0x6b, 0x80, 0x80, 0x9d, 0x13, 0x9b, 0x8b, 0xf9, 0xde, 0x82,
0x79, 0x67, 0x38, 0xe8, 0x2b, 0xc8, 0x4d, 0x67, 0x2c, 0xfb, 0xe6, 0x1d, 0xd9, 0x37, 0xa6, 0xf0,
0xe6, 0x98, 0xf5, 0xc3, 0x70, 0x46, 0x76, 0xe0, 0x8d, 0xf1, 0x7d, 0x7e, 0x28, 0x93, 0x29, 0xda,
0x83, 0x62, 0xbc, 0x1b, 0x8e, 0xa7, 0xb1, 0x73, 0xcd, 0x2e, 0x84, 0x07, 0xbc, 0x67, 0x85, 0x89,
0x83, 0x1d, 0xf2, 0xb6, 0x89, 0x8e, 0x60, 0x2d, 0x74, 0x35, 0x3f, 0xd0, 0x03, 0x82, 0xff, 0xc7,
0xef, 0x86, 0xa7, 0xb7, 0xde, 0x0d, 0x67, 0x93, 0x6d, 0x56, 0x18, 0x47, 0x5e, 0x0d, 0x5d, 0x3e,
0x40, 0xcf, 0x61, 0x25, 0x74, 0x35, 0x72, 0xe1, 0x62, 0xbc, 0x60, 0x2f, 0x96, 0x43, 0x57, 0xba,
0x70, 0xd1, 0x4b, 0xd8, 0x0c, 0x5d, 0x6d, 0xa8, 0xfb, 0x41, 0xb4, 0x0c, 0xcd, 0x38, 0xd7, 0xed,
0x01, 0xc1, 0x0f, 0x17, 0x0c, 0x53, 0x0c, 0xdd, 0x63, 0xdd, 0x0f, 0xf8, 0x2a, 0x0e, 0x38, 0x15,
0x7d, 0xcc, 0x43, 0x4e, 0x7b, 0x90, 0xe8, 0xa6, 0xc4, 0x7b, 0x80, 0x42, 0xf7, 0x2c, 0x71, 0xb5,
0x62, 0x09, 0x3d, 0x82, 0x42, 0xe8, 0x6a, 0xc6, 0xc8, 0xf3, 0x88, 0x1d, 0x44, 0x3a, 0xdc, 0xe2,
0xe0, 0x5c, 0xe8, 0x1e, 0x44, 0x56, 0x2e, 0xc2, 0xa7, 0x80, 0x66, 0x70, 0x49, 0xdc, 0xed, 0x58,
0xb2, 0x09, 0x34, 0x89, 0xfa, 0x09, 0xdc, 0x67, 0xcd, 0x1d, 0x59, 0x96, 0xee, 0x8d, 0x35, 0x93,
0x0e, 0x08, 0x2b, 0xd2, 0xa3, 0xf8, 0xff, 0x7c, 0xc3, 0x50, 0xe8, 0x2a, 0x91, 0xaf, 0xc5, 0x5d,
0x8a, 0x47, 0xd1, 0x31, 0x14, 0x43, 0x57, 0x63, 0x1b, 0xad, 0x79, 0xe4, 0xfb, 0x11, 0xf1, 0x99,
0xba, 0xca, 0x0b, 0xb6, 0xa2, 0x10, 0xba, 0x2a, 0xf1, 0x2c, 0x39, 0x21, 0xee, 0xfe, 0x9c, 0x82,
0xe2, 0xf4, 0x36, 0x57, 0xc8, 0xfc, 0xc3, 0x91, 0xe5, 0x0f, 0x47, 0x19, 0xc0, 0x70, 0xec, 0xc0,
0x73, 0x86, 0x43, 0xe2, 0xf1, 0x97, 0x23, 0x2b, 0xcf, 0x58, 0xd0, 0x2e, 0xe4, 0xf4, 0x01, 0xab,
0x37, 0xd1, 0x52, 0x9a, 0xd7, 0xbb, 0xce, 0x8d, 0xb1, 0x8e, 0x5e, 0xc0, 0xb2, 0x3e, 0x0a, 0xce,
0x7f, 0xc4, 0x99, 0x4a, 0xba, 0xba, 0xbe, 0xff, 0xd1, 0xad, 0x22, 0x8a, 0x17, 0xd2, 0x60, 0x04,
0x39, 0xe2, 0xcd, 0xbe, 0x0c, 0xcb, 0xef, 0xfb, 0x32, 0xcc, 0xde, 0x69, 0x2b, 0xef, 0x7b, 0xa7,
0xed, 0xfe, 0x24, 0xc0, 0xc6, 0xec, 0x8a, 0x50, 0x15, 0x44, 0x72, 0x41, 0x8c, 0xd1, 0xec, 0xf1,
0x89, 0x9e, 0xd9, 0x7c, 0x62, 0x8f, 0xab, 0xae, 0xc1, 0xbd, 0x1e, 0xb1, 0x49, 0x9f, 0x1a, 0x94,
0xed, 0x70, 0x02, 0x8e, 0x1e, 0xdf, 0xe2, 0x8c, 0x2b, 0xc6, 0xd7, 0x61, 0xf3, 0x07, 0x7d, 0x38,
0x24, 0x81, 0x76, 0x53, 0x43, 0x8b, 0x91, 0xaf, 0x31, 0x6d, 0xeb, 0xde, 0x3f, 0x02, 0xe4, 0xff,
0xfb, 0x1c, 0xa3, 0x1d, 0xd8, 0x3a, 0x95, 0xe4, 0x6f, 0xdb, 0x8a, 0xd2, 0x3e, 0xe9, 0x68, 0xea,
0xab, 0x53, 0x49, 0xeb, 0x76, 0x94, 0x53, 0xe9, 0xa0, 0x7d, 0xd8, 0x96, 0x5a, 0xe2, 0x12, 0x2a,
0xc1, 0x83, 0x79, 0x40, 0x5b, 0x51, 0xba, 0x92, 0x2c, 0x0a, 0x68, 0x1b, 0xf0, 0xbc, 0xef, 0x4c,
0x92, 0x19, 0x53, 0x16, 0x53, 0x68, 0x17, 0xca, 0x37, 0x33, 0xb5, 0x23, 0xb9, 0xd1, 0x51, 0x4f,
0x64, 0x31, 0x8d, 0x3e, 0x84, 0xca, 0xbb, 0x22, 0x4c, 0x50, 0x99, 0x9b, 0x22, 0xa9, 0x72, 0x57,
0x51, 0x35, 0x59, 0x3a, 0x6a, 0x2b, 0xaa, 0xfc, 0x4a, 0x5c, 0xbe, 0x69, 0x9d, 0xdf, 0x9c, 0x1c,
0xb7, 0x24, 0x59, 0x5c, 0xd9, 0xfb, 0x4d, 0x80, 0xc2, 0xdc, 0x55, 0x83, 0x2a, 0xb0, 0x7d, 0xd6,
0x38, 0x6e, 0xb7, 0x1a, 0x2a, 0xc3, 0x2b, 0x6a, 0x43, 0x9d, 0xaf, 0x7c, 0x1b, 0xf0, 0x35, 0xc4,
0xa9, 0xd4, 0x69, 0xb5, 0x3b, 0x47, 0xa2, 0x80, 0xca, 0x50, 0xba, 0xe6, 0x8d, 0x0d, 0x52, 0x4b,
0x4c, 0xb1, 0xc6, 0x5e, 0xf3, 0xab, 0x6c, 0x81, 0x1d, 0x0e, 0x48, 0xa3, 0x3d, 0x78, 0xf4, 0x4e,
0x00, 0xb3, 0xc8, 0xd2, 0xcb, 0xae, 0xa4, 0x30, 0x6c, 0xa6, 0xd9, 0xfd, 0xfd, 0xb2, 0x2c, 0xbc,
0xbd, 0x2c, 0x0b, 0x7f, 0x5f, 0x96, 0x85, 0x37, 0x57, 0xe5, 0xa5, 0xb7, 0x57, 0xe5, 0xa5, 0x3f,
0xaf, 0xca, 0x4b, 0xdf, 0x7d, 0x31, 0xa0, 0xc1, 0xf9, 0xa8, 0x57, 0x33, 0x1c, 0xab, 0x1e, 0x1d,
0x92, 0x67, 0x43, 0xbd, 0xe7, 0x27, 0xe3, 0x99, 0x1f, 0xd1, 0x8b, 0x6b, 0xbf, 0xa2, 0xbd, 0x15,
0xae, 0xe7, 0x4f, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x9c, 0x4d, 0xd4, 0xb6, 0x0a, 0x00,
0x00,
}
func (m *Permission) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Permission) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Permission) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.VpTermRequested != nil {
n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.VpTermRequested, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.VpTermRequested):])
if err1 != nil {
return 0, err1
}
i -= n1
i = encodeVarintTypes(dAtA, i, uint64(n1))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xf2
}
if len(m.VpSummaryDigestSri) > 0 {
i -= len(m.VpSummaryDigestSri)
copy(dAtA[i:], m.VpSummaryDigestSri)
i = encodeVarintTypes(dAtA, i, uint64(len(m.VpSummaryDigestSri)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xea
}
if m.VpCurrentDeposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VpCurrentDeposit))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xe0
}
if m.VpCurrentFees != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VpCurrentFees))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xd8
}
if m.VpValidatorDeposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VpValidatorDeposit))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xd0
}
if m.VpLastStateChange != nil {
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.VpLastStateChange, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.VpLastStateChange):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintTypes(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xca
}
if m.VpExp != nil {
n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.VpExp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.VpExp):])
if err3 != nil {
return 0, err3
}
i -= n3
i = encodeVarintTypes(dAtA, i, uint64(n3))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xc2
}
if m.VpState != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VpState))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xb8
}
if m.ValidatorPermId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.ValidatorPermId))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xb0
}
if len(m.Country) > 0 {
i -= len(m.Country)
copy(dAtA[i:], m.Country)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Country)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xaa
}
if len(m.TerminatedBy) > 0 {
i -= len(m.TerminatedBy)
copy(dAtA[i:], m.TerminatedBy)
i = encodeVarintTypes(dAtA, i, uint64(len(m.TerminatedBy)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0xa2
}
if m.Terminated != nil {
n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Terminated, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Terminated):])
if err4 != nil {
return 0, err4
}
i -= n4
i = encodeVarintTypes(dAtA, i, uint64(n4))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x9a
}
if len(m.RevokedBy) > 0 {
i -= len(m.RevokedBy)
copy(dAtA[i:], m.RevokedBy)
i = encodeVarintTypes(dAtA, i, uint64(len(m.RevokedBy)))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x92
}
if m.Revoked != nil {
n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Revoked, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Revoked):])
if err5 != nil {
return 0, err5
}
i -= n5
i = encodeVarintTypes(dAtA, i, uint64(n5))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x8a
}
if m.Deposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Deposit))
i--
dAtA[i] = 0x1
i--
dAtA[i] = 0x80
}
if m.VerificationFees != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.VerificationFees))
i--
dAtA[i] = 0x78
}
if m.IssuanceFees != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.IssuanceFees))
i--
dAtA[i] = 0x70
}
if m.ValidationFees != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.ValidationFees))
i--
dAtA[i] = 0x68
}
if m.Modified != nil {
n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Modified, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Modified):])
if err6 != nil {
return 0, err6
}
i -= n6
i = encodeVarintTypes(dAtA, i, uint64(n6))
i--
dAtA[i] = 0x62
}
if m.EffectiveUntil != nil {
n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.EffectiveUntil, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil):])
if err7 != nil {
return 0, err7
}
i -= n7
i = encodeVarintTypes(dAtA, i, uint64(n7))
i--
dAtA[i] = 0x5a
}
if m.EffectiveFrom != nil {
n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.EffectiveFrom, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveFrom):])
if err8 != nil {
return 0, err8
}
i -= n8
i = encodeVarintTypes(dAtA, i, uint64(n8))
i--
dAtA[i] = 0x52
}
if len(m.ExtendedBy) > 0 {
i -= len(m.ExtendedBy)
copy(dAtA[i:], m.ExtendedBy)
i = encodeVarintTypes(dAtA, i, uint64(len(m.ExtendedBy)))
i--
dAtA[i] = 0x4a
}
if m.Extended != nil {
n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Extended, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Extended):])
if err9 != nil {
return 0, err9
}
i -= n9
i = encodeVarintTypes(dAtA, i, uint64(n9))
i--
dAtA[i] = 0x42
}
if len(m.CreatedBy) > 0 {
i -= len(m.CreatedBy)
copy(dAtA[i:], m.CreatedBy)
i = encodeVarintTypes(dAtA, i, uint64(len(m.CreatedBy)))
i--
dAtA[i] = 0x3a
}
if m.Created != nil {
n10, err10 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Created):])
if err10 != nil {
return 0, err10
}
i -= n10
i = encodeVarintTypes(dAtA, i, uint64(n10))
i--
dAtA[i] = 0x32
}
if len(m.Grantee) > 0 {
i -= len(m.Grantee)
copy(dAtA[i:], m.Grantee)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Grantee)))
i--
dAtA[i] = 0x2a
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x22
}
if m.Type != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Type))
i--
dAtA[i] = 0x18
}
if m.SchemaId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.SchemaId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *PermissionSession) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *PermissionSession) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PermissionSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Modified != nil {
n11, err11 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Modified, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Modified):])
if err11 != nil {
return 0, err11
}
i -= n11
i = encodeVarintTypes(dAtA, i, uint64(n11))
i--
dAtA[i] = 0x32
}
if m.Created != nil {
n12, err12 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Created):])
if err12 != nil {
return 0, err12
}
i -= n12
i = encodeVarintTypes(dAtA, i, uint64(n12))
i--
dAtA[i] = 0x2a
}
if len(m.Authz) > 0 {
for iNdEx := len(m.Authz) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Authz[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTypes(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
}
if m.AgentPermId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.AgentPermId))
i--
dAtA[i] = 0x18
}
if len(m.Controller) > 0 {
i -= len(m.Controller)
copy(dAtA[i:], m.Controller)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Controller)))
i--
dAtA[i] = 0x12
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *SessionAuthz) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *SessionAuthz) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SessionAuthz) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.WalletAgentPermId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.WalletAgentPermId))
i--
dAtA[i] = 0x18
}
if m.BeneficiaryPermId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.BeneficiaryPermId))
i--
dAtA[i] = 0x10
}
if m.ExecutorPermId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.ExecutorPermId))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
offset -= sovTypes(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Permission) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
if m.SchemaId != 0 {
n += 1 + sovTypes(uint64(m.SchemaId))
}
if m.Type != 0 {
n += 1 + sovTypes(uint64(m.Type))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.Grantee)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.Created != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Created)
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.CreatedBy)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.Extended != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Extended)
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.ExtendedBy)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.EffectiveFrom != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveFrom)
n += 1 + l + sovTypes(uint64(l))
}
if m.EffectiveUntil != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.EffectiveUntil)
n += 1 + l + sovTypes(uint64(l))
}
if m.Modified != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Modified)
n += 1 + l + sovTypes(uint64(l))
}
if m.ValidationFees != 0 {
n += 1 + sovTypes(uint64(m.ValidationFees))
}
if m.IssuanceFees != 0 {
n += 1 + sovTypes(uint64(m.IssuanceFees))
}
if m.VerificationFees != 0 {
n += 1 + sovTypes(uint64(m.VerificationFees))
}
if m.Deposit != 0 {
n += 2 + sovTypes(uint64(m.Deposit))
}
if m.Revoked != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Revoked)
n += 2 + l + sovTypes(uint64(l))
}
l = len(m.RevokedBy)
if l > 0 {
n += 2 + l + sovTypes(uint64(l))
}
if m.Terminated != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Terminated)
n += 2 + l + sovTypes(uint64(l))
}
l = len(m.TerminatedBy)
if l > 0 {
n += 2 + l + sovTypes(uint64(l))
}
l = len(m.Country)
if l > 0 {
n += 2 + l + sovTypes(uint64(l))
}
if m.ValidatorPermId != 0 {
n += 2 + sovTypes(uint64(m.ValidatorPermId))
}
if m.VpState != 0 {
n += 2 + sovTypes(uint64(m.VpState))
}
if m.VpExp != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.VpExp)
n += 2 + l + sovTypes(uint64(l))
}
if m.VpLastStateChange != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.VpLastStateChange)
n += 2 + l + sovTypes(uint64(l))
}
if m.VpValidatorDeposit != 0 {
n += 2 + sovTypes(uint64(m.VpValidatorDeposit))
}
if m.VpCurrentFees != 0 {
n += 2 + sovTypes(uint64(m.VpCurrentFees))
}
if m.VpCurrentDeposit != 0 {
n += 2 + sovTypes(uint64(m.VpCurrentDeposit))
}
l = len(m.VpSummaryDigestSri)
if l > 0 {
n += 2 + l + sovTypes(uint64(l))
}
if m.VpTermRequested != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.VpTermRequested)
n += 2 + l + sovTypes(uint64(l))
}
return n
}
func (m *PermissionSession) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Id)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.Controller)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.AgentPermId != 0 {
n += 1 + sovTypes(uint64(m.AgentPermId))
}
if len(m.Authz) > 0 {
for _, e := range m.Authz {
l = e.Size()
n += 1 + l + sovTypes(uint64(l))
}
}
if m.Created != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Created)
n += 1 + l + sovTypes(uint64(l))
}
if m.Modified != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Modified)
n += 1 + l + sovTypes(uint64(l))
}
return n
}
func (m *SessionAuthz) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ExecutorPermId != 0 {
n += 1 + sovTypes(uint64(m.ExecutorPermId))
}
if m.BeneficiaryPermId != 0 {
n += 1 + sovTypes(uint64(m.BeneficiaryPermId))
}
if m.WalletAgentPermId != 0 {
n += 1 + sovTypes(uint64(m.WalletAgentPermId))
}
return n
}
func sovTypes(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTypes(x uint64) (n int) {
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Permission) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Permission: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Permission: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SchemaId", wireType)
}
m.SchemaId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SchemaId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
}
m.Type = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Type |= PermissionType(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Grantee = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Created == nil {
m.Created = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.CreatedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Extended", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Extended == nil {
m.Extended = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Extended, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 9:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ExtendedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ExtendedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 10:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EffectiveFrom", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.EffectiveFrom == nil {
m.EffectiveFrom = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.EffectiveFrom, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 11:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EffectiveUntil", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.EffectiveUntil == nil {
m.EffectiveUntil = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.EffectiveUntil, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 12:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Modified == nil {
m.Modified = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Modified, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 13:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidationFees", wireType)
}
m.ValidationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ValidationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 14:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field IssuanceFees", wireType)
}
m.IssuanceFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.IssuanceFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 15:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VerificationFees", wireType)
}
m.VerificationFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VerificationFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 16:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
m.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 17:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Revoked", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Revoked == nil {
m.Revoked = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Revoked, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 18:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RevokedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.RevokedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 19:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Terminated", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Terminated == nil {
m.Terminated = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Terminated, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 20:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TerminatedBy", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.TerminatedBy = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 21:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Country", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Country = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 22:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ValidatorPermId", wireType)
}
m.ValidatorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ValidatorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 23:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VpState", wireType)
}
m.VpState = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VpState |= ValidationState(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 24:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field VpExp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.VpExp == nil {
m.VpExp = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.VpExp, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 25:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field VpLastStateChange", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.VpLastStateChange == nil {
m.VpLastStateChange = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.VpLastStateChange, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 26:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VpValidatorDeposit", wireType)
}
m.VpValidatorDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VpValidatorDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 27:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VpCurrentFees", wireType)
}
m.VpCurrentFees = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VpCurrentFees |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 28:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field VpCurrentDeposit", wireType)
}
m.VpCurrentDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.VpCurrentDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 29:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field VpSummaryDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.VpSummaryDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 30:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field VpTermRequested", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.VpTermRequested == nil {
m.VpTermRequested = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.VpTermRequested, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PermissionSession) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: PermissionSession: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PermissionSession: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field AgentPermId", wireType)
}
m.AgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.AgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Authz", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Authz = append(m.Authz, &SessionAuthz{})
if err := m.Authz[len(m.Authz)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Created == nil {
m.Created = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Modified == nil {
m.Modified = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Modified, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SessionAuthz) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: SessionAuthz: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SessionAuthz: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ExecutorPermId", wireType)
}
m.ExecutorPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ExecutorPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field BeneficiaryPermId", wireType)
}
m.BeneficiaryPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.BeneficiaryPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field WalletAgentPermId", wireType)
}
m.WalletAgentPermId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.WalletAgentPermId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTypes(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTypes
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTypes
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTypes
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
package keeper
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
// AdjustTrustDeposit modifies the trust deposit for an account by the specified amount.
// If augend is positive, it increases the trust deposit.
// If augend is negative, it decreases the trust deposit and increases the claimable amount.
//
// The function follows the specification [MOD-TD-MSG-1] from the Verana blockchain specs.
//
// Parameters:
// - ctx: The SDK context
// - account: The account address as a Bech32 string
// - augend: The amount to adjust (positive for increase, negative for decrease)
//
// Returns:
// - error: If the operation fails
func (k Keeper) AdjustTrustDeposit(ctx sdk.Context, account string, augend int64) error {
// Basic validation
senderAcc, err := sdk.AccAddressFromBech32(account)
if err != nil {
return fmt.Errorf("invalid account address: %w", err)
}
if account == "" {
return fmt.Errorf("account cannot be empty")
}
if augend == 0 {
return fmt.Errorf("augend must be non-zero")
}
// Load existing trust deposit if it exists
td, err := k.TrustDeposit.Get(ctx, account)
// Get total shares and total deposits across all accounts
totalShares, totalDeposits := k.GetTotalSharesAndDeposits(ctx)
if err != nil {
// If trust deposit doesn't exist and trying to decrease, abort
if augend < 0 {
return fmt.Errorf("cannot decrease non-existent trust deposit")
}
// Initialize new trust deposit
td = types.TrustDeposit{
Account: account,
Share: 0,
Amount: 0,
Claimable: 0,
}
}
// Convert uint fields to int64 for calculations
amount := int64(td.Amount)
claimable := int64(td.Claimable)
share := int64(td.Share)
if augend > 0 {
// Handle positive adjustment (increase)
if claimable > 0 {
if claimable >= augend {
// Can cover from claimable amount
claimable -= augend
} else {
// Need to transfer additional funds
int64NeededDeposit := augend - claimable
// Calculate new shares using dynamic share calculation
// Shares per Token = TotalShares / TotalDeposits
var newShares int64
if totalDeposits > 0 {
// Use dynamic ratio based on total shares and deposits
newShares = (int64NeededDeposit * totalShares) / totalDeposits
} else {
// If no total deposits yet, use 1:1 ratio (first deposit)
newShares = int64NeededDeposit
}
// Transfer tokens from account to module
err := k.bankKeeper.SendCoinsFromAccountToModule(
ctx,
senderAcc,
types.ModuleName,
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64NeededDeposit)),
)
if err != nil {
return fmt.Errorf("failed to transfer tokens: %w", err)
}
amount += int64NeededDeposit
share += newShares
claimable = 0
}
} else {
// No claimable amount, need to transfer full amount
// Calculate new shares using dynamic share calculation
// Shares per Token = TotalShares / TotalDeposits
var newShares int64
if totalDeposits > 0 {
// Use dynamic ratio based on total shares and deposits
newShares = (augend * totalShares) / totalDeposits
} else {
// If no total deposits yet, use 1:1 ratio (first deposit)
newShares = augend
}
// Transfer tokens from account to module
err := k.bankKeeper.SendCoinsFromAccountToModule(
ctx,
senderAcc,
types.ModuleName,
sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, augend)),
)
if err != nil {
return fmt.Errorf("failed to transfer tokens: %w", err)
}
amount += augend
share += newShares
}
} else { // augend < 0
// Handle negative adjustment (decrease)
// Get absolute value of augend for easier handling
absAugend := -augend
// if augend is negative and td.claimable - augend > td.deposit transaction MUST abort
if claimable+absAugend > amount {
return fmt.Errorf("claimable after adjustment would exceed deposit: %d > %d", claimable+absAugend, amount)
}
// Since augend is negative, we add absAugend to claimable
// This implements "set td.claimable to td.claimable - augend" when augend is negative
claimable += absAugend
}
// Convert back to uint for storage and ensure no negative values
if amount < 0 {
return fmt.Errorf("amount cannot be negative after adjustment: %d", amount)
}
if claimable < 0 {
return fmt.Errorf("claimable amount cannot be negative after adjustment: %d", claimable)
}
if share < 0 {
return fmt.Errorf("share cannot be negative after adjustment: %d", share)
}
td.Amount = uint64(amount)
td.Claimable = uint64(claimable)
td.Share = uint64(share)
// Save updated trust deposit
err = k.TrustDeposit.Set(ctx, account, td)
if err != nil {
return fmt.Errorf("failed to save trust deposit: %w", err)
}
return nil
}
// GetTotalSharesAndDeposits calculates the total shares and total deposits across all accounts
func (k Keeper) GetTotalSharesAndDeposits(ctx sdk.Context) (int64, int64) {
var totalShares int64
var totalDeposits int64
// Use Walk function to iterate through all trust deposits
_ = k.TrustDeposit.Walk(ctx, nil, func(key string, value types.TrustDeposit) (bool, error) {
totalShares += int64(value.Share)
totalDeposits += int64(value.Amount)
return false, nil // Continue iteration
})
return totalShares, totalDeposits
}
package keeper
import (
"cosmossdk.io/collections"
"cosmossdk.io/math"
"fmt"
"cosmossdk.io/core/store"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
type (
Keeper struct {
cdc codec.BinaryCodec
storeService store.KVStoreService
logger log.Logger
// the address capable of executing a MsgUpdateParams message. Typically, this
// should be the x/gov module account.
authority string
// state
TrustDeposit collections.Map[string, types.TrustDeposit]
// external keeper
bankKeeper types.BankKeeper
}
)
func NewKeeper(
cdc codec.BinaryCodec,
storeService store.KVStoreService,
logger log.Logger,
authority string,
bankKeeper types.BankKeeper,
) Keeper {
sb := collections.NewSchemaBuilder(storeService)
if _, err := sdk.AccAddressFromBech32(authority); err != nil {
panic(fmt.Sprintf("invalid authority address: %s", authority))
}
return Keeper{
cdc: cdc,
storeService: storeService,
authority: authority,
logger: logger,
TrustDeposit: collections.NewMap(sb, types.TrustDepositKey, "trust_deposit", collections.StringKey, codec.CollValue[types.TrustDeposit](cdc)),
bankKeeper: bankKeeper,
}
}
// GetAuthority returns the module's authority.
func (k Keeper) GetAuthority() string {
return k.authority
}
// Logger returns a module-specific logger.
func (k Keeper) Logger() log.Logger {
return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName))
}
func (k Keeper) GetTrustDepositRate(ctx sdk.Context) math.LegacyDec {
params := k.GetParams(ctx)
return params.TrustDepositRate
}
func (k Keeper) GetUserAgentRewardRate(ctx sdk.Context) math.LegacyDec {
params := k.GetParams(ctx)
return params.UserAgentRewardRate
}
func (k Keeper) GetWalletUserAgentRewardRate(ctx sdk.Context) math.LegacyDec {
params := k.GetParams(ctx)
return params.WalletUserAgentRewardRate
}
func (k Keeper) GetTrustDepositShareValue(ctx sdk.Context) math.LegacyDec {
params := k.GetParams(ctx)
return params.TrustDepositShareValue
}
package keeper
import (
"context"
"cosmossdk.io/math"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
type msgServer struct {
Keeper
}
// NewMsgServerImpl returns an implementation of the MsgServer interface
// for the provided Keeper.
func NewMsgServerImpl(keeper Keeper) types.MsgServer {
return &msgServer{Keeper: keeper}
}
var _ types.MsgServer = msgServer{}
func (ms msgServer) ReclaimTrustDepositInterests(goCtx context.Context, msg *types.MsgReclaimTrustDepositInterests) (*types.MsgReclaimTrustDepositInterestsResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Get account running the method
account := msg.Creator
// Load TrustDeposit entry
td, err := ms.Keeper.TrustDeposit.Get(ctx, account)
if err != nil {
return nil, fmt.Errorf("trust deposit not found for account: %s", account)
}
// Get module params for share value calculation
params := ms.Keeper.GetParams(ctx)
// Calculate claimable interest using decimal math
depositAmount := ms.Keeper.ShareToAmount(td.Share, params.TrustDepositShareValue)
// Guards against underflow
if depositAmount <= td.Amount {
return nil, fmt.Errorf("no claimable interest available")
}
claimableInterest := depositAmount - td.Amount
// Calculate shares to reduce using decimal math
sharesToReduce := ms.Keeper.AmountToShare(claimableInterest, params.TrustDepositShareValue)
// Update trust deposit shares
td.Share -= sharesToReduce
// Transfer claimable interest from module to account
coins := sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(claimableInterest)))
if err := ms.Keeper.bankKeeper.SendCoinsFromModuleToAccount(
ctx,
types.ModuleName,
sdk.AccAddress(account),
coins,
); err != nil {
return nil, fmt.Errorf("failed to transfer interest: %w", err)
}
// Save updated trust deposit
if err := ms.Keeper.TrustDeposit.Set(ctx, account, td); err != nil {
return nil, fmt.Errorf("failed to update trust deposit: %w", err)
}
return &types.MsgReclaimTrustDepositInterestsResponse{
ClaimedAmount: claimableInterest,
}, nil
}
// ShareToAmount converts share value to amount using decimal math
func (k Keeper) ShareToAmount(share uint64, shareValue math.LegacyDec) uint64 {
shareDec := math.LegacyNewDec(int64(share))
amountDec := shareDec.Mul(shareValue)
return amountDec.TruncateInt().Uint64()
}
// AmountToShare converts amount to share value using decimal math
func (k Keeper) AmountToShare(amount uint64, shareValue math.LegacyDec) uint64 {
amountDec := math.LegacyNewDec(int64(amount))
if shareValue.IsZero() {
return 0 // Prevent division by zero
}
shareDec := amountDec.Quo(shareValue)
return shareDec.TruncateInt().Uint64()
}
func (ms msgServer) ReclaimTrustDeposit(goCtx context.Context, msg *types.MsgReclaimTrustDeposit) (*types.MsgReclaimTrustDepositResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Basic validations
if msg.Claimed == 0 {
return nil, fmt.Errorf("claimed amount must be greater than 0")
}
// Get account running the method
account := msg.Creator
// Load TrustDeposit entry
td, err := ms.Keeper.TrustDeposit.Get(ctx, account)
if err != nil {
return nil, fmt.Errorf("trust deposit not found for account: %s", account)
}
// Check if claimed amount is within claimable balance
if td.Claimable < msg.Claimed {
return nil, fmt.Errorf("claimed amount exceeds claimable balance")
}
// Get module params for calculations
params := ms.Keeper.GetParams(ctx)
// Calculate required minimum deposit using decimal math
requiredMinDeposit := ms.Keeper.ShareToAmount(td.Share, params.TrustDepositShareValue)
if td.Amount < msg.Claimed {
return nil, fmt.Errorf("amount less than claimed")
}
if requiredMinDeposit < (td.Amount - msg.Claimed) {
return nil, fmt.Errorf("insufficient required minimum deposit")
}
// Calculate burn amount and transfer amount using decimal math
toBurn := ms.Keeper.CalculateBurnAmount(msg.Claimed, params.TrustDepositReclaimBurnRate)
toTransfer := msg.Claimed - toBurn
// Calculate share reduction using decimal math
shareReduction := ms.Keeper.AmountToShare(msg.Claimed, params.TrustDepositShareValue)
// Update trust deposit
td.Claimable -= msg.Claimed
td.Amount -= msg.Claimed
td.Share -= shareReduction
// Transfer claimable amount minus burn to the account
if toTransfer > 0 {
transferCoins := sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(toTransfer)))
if err := ms.Keeper.bankKeeper.SendCoinsFromModuleToAccount(
ctx,
types.ModuleName,
sdk.AccAddress(account),
transferCoins,
); err != nil {
return nil, fmt.Errorf("failed to transfer coins: %w", err)
}
}
// Burn the calculated amount
if toBurn > 0 {
burnCoins := sdk.NewCoins(sdk.NewInt64Coin(types.BondDenom, int64(toBurn)))
if err := ms.Keeper.bankKeeper.BurnCoins(
ctx,
types.ModuleName,
burnCoins,
); err != nil {
return nil, fmt.Errorf("failed to burn coins: %w", err)
}
}
// Save updated trust deposit
if err := ms.Keeper.TrustDeposit.Set(ctx, account, td); err != nil {
return nil, fmt.Errorf("failed to update trust deposit: %w", err)
}
return &types.MsgReclaimTrustDepositResponse{
BurnedAmount: toBurn,
ClaimedAmount: toTransfer,
}, nil
}
// CalculateBurnAmount applies burn rate to claimed amount using decimal math
func (k Keeper) CalculateBurnAmount(claimed uint64, burnRate math.LegacyDec) uint64 {
claimedDec := math.LegacyNewDec(int64(claimed))
burnAmountDec := claimedDec.Mul(burnRate)
return burnAmountDec.TruncateInt().Uint64()
}
package keeper
import (
"context"
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
if ms.GetAuthority() != req.Authority {
return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.GetAuthority(), req.Authority)
}
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.SetParams(ctx, req.Params); err != nil {
return nil, err
}
return &types.MsgUpdateParamsResponse{}, nil
}
package keeper
import (
"context"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
// GetParams get all parameters as types.Params
func (k Keeper) GetParams(ctx context.Context) (params types.Params) {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz := store.Get(types.ParamsKey)
if bz == nil {
return params
}
k.cdc.MustUnmarshal(bz, ¶ms)
return params
}
// SetParams set the params
func (k Keeper) SetParams(ctx context.Context, params types.Params) error {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz, err := k.cdc.Marshal(¶ms)
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)
return nil
}
package keeper
import (
"context"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
var _ types.QueryServer = Keeper{}
func (k Keeper) GetTrustDeposit(goCtx context.Context, req *types.QueryGetTrustDepositRequest) (*types.QueryGetTrustDepositResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-TD-QRY-1-2] Validate account address
if _, err := sdk.AccAddressFromBech32(req.Account); err != nil {
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("invalid account address: %s", err))
}
// [MOD-TD-QRY-1-3] Get trust deposit for account
trustDeposit, err := k.TrustDeposit.Get(ctx, req.Account)
if err != nil {
// Per spec: if not found, return not found error instead of zero values
return nil, status.Error(codes.NotFound, fmt.Sprintf("trust deposit not found for account %s", req.Account))
}
return &types.QueryGetTrustDepositResponse{
TrustDeposit: trustDeposit,
}, nil
}
package keeper
import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
}
ctx := sdk.UnwrapSDKContext(goCtx)
return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil
}
package trustdeposit
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/trustdeposit"
)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "Params",
Use: "params",
Short: "Shows the parameters of the module",
},
{
RpcMethod: "GetTrustDeposit",
Use: "get-trust-deposit [account]",
Short: "Query trust deposit for an account",
Long: "Get the trust deposit information for a given account address",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "account",
},
},
},
// this line is used by ignite scaffolding # autocli/query
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Msg_ServiceDesc.ServiceName,
EnhanceCustomCommand: true, // only required if you want to use the custom command
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "UpdateParams",
Skip: true, // skipped because authority gated
},
{
RpcMethod: "ReclaimTrustDepositInterests",
Use: "reclaim-interests",
Short: "Reclaim earned interest from trust deposits",
Long: "Reclaim any available interest earned from trust deposits. The interest is calculated based on share value and current deposit amount.",
},
{
RpcMethod: "ReclaimTrustDeposit",
Use: "reclaim-deposit [amount]",
Short: "Reclaim trust deposit",
Long: "Reclaim a specified amount from your claimable trust deposit balance. Note that a portion will be burned according to the reclaim burn rate.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{
ProtoField: "claimed",
},
},
},
// this line is used by ignite scaffolding # autocli/tx
},
},
}
}
package trustdeposit
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/keeper"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
// Set module parameters
if err := k.SetParams(ctx, genState.Params); err != nil {
panic(fmt.Sprintf("failed to set params: %s", err))
}
// Initialize trust deposits
for _, td := range genState.TrustDeposits {
// Create trust deposit entry
trustDeposit := types.TrustDeposit{
Account: td.Account,
Share: td.Share,
Amount: td.Amount,
Claimable: td.Claimable,
}
// Store the trust deposit
if err := k.TrustDeposit.Set(ctx, td.Account, trustDeposit); err != nil {
panic(fmt.Sprintf("failed to set trust deposit for account %s: %s", td.Account, err))
}
}
}
// ExportGenesis returns the module's exported genesis.
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
genesis := types.DefaultGenesis()
genesis.Params = k.GetParams(ctx)
// Export trust deposits
var trustDeposits []types.TrustDepositRecord
// Use a callback to gather all trust deposits in deterministic order
// The Walk function should iterate over keys in lexicographical order
_ = k.TrustDeposit.Walk(ctx, nil, func(key string, value types.TrustDeposit) (bool, error) {
trustDeposits = append(trustDeposits, types.TrustDepositRecord{
Account: value.Account,
Share: value.Share,
Amount: value.Amount,
Claimable: value.Claimable,
})
return false, nil // Continue iteration
})
genesis.TrustDeposits = trustDeposits
return genesis
}
package trustdeposit
import (
"context"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"encoding/json"
"fmt"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
// this line is used by starport scaffolding # 1
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/trustdeposit/module"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/keeper"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
var (
_ module.AppModuleBasic = (*AppModule)(nil)
_ module.AppModuleSimulation = (*AppModule)(nil)
_ module.HasGenesis = (*AppModule)(nil)
_ module.HasInvariants = (*AppModule)(nil)
_ module.HasConsensusVersion = (*AppModule)(nil)
_ appmodule.AppModule = (*AppModule)(nil)
_ appmodule.HasBeginBlocker = (*AppModule)(nil)
_ appmodule.HasEndBlocker = (*AppModule)(nil)
)
// ----------------------------------------------------------------------------
// AppModuleBasic
// ----------------------------------------------------------------------------
// AppModuleBasic implements the AppModuleBasic interface that defines the
// independent methods a Cosmos SDK module needs to implement.
type AppModuleBasic struct {
cdc codec.BinaryCodec
}
func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic {
return AppModuleBasic{cdc: cdc}
}
// Name returns the name of the module as a string.
func (AppModuleBasic) Name() string {
return types.ModuleName
}
// RegisterLegacyAminoCodec registers the amino codec for the module, which is used
// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message.
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) {
types.RegisterInterfaces(reg)
}
// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage.
// The default GenesisState need to be defined by the module developer and is primarily used for testing.
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(types.DefaultGenesis())
}
// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form.
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
var genState types.GenesisState
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err)
}
return genState.Validate()
}
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
panic(err)
}
}
// ----------------------------------------------------------------------------
// AppModule
// ----------------------------------------------------------------------------
// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement
type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
}
func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
accountKeeper types.AccountKeeper,
bankKeeper types.BankKeeper,
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(cdc),
keeper: keeper,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
}
}
// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}
// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted)
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
// InitGenesis performs the module's genesis initialization. It returns no validator updates.
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) {
var genState types.GenesisState
// Initialize global index to index in genesis state
cdc.MustUnmarshalJSON(gs, &genState)
InitGenesis(ctx, am.keeper, genState)
}
// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
genState := ExportGenesis(ctx, am.keeper)
return cdc.MustMarshalJSON(genState)
}
// ConsensusVersion is a sequence number for state-breaking change of the module.
// It should be incremented on each consensus-breaking change introduced by the module.
// To avoid wrong/empty versions, the initial version should be set to 1.
func (AppModule) ConsensusVersion() uint64 { return 1 }
// BeginBlock contains the logic that is automatically triggered at the beginning of each block.
// The begin block implementation is optional.
func (am AppModule) BeginBlock(_ context.Context) error {
return nil
}
// EndBlock contains the logic that is automatically triggered at the end of each block.
// The end block implementation is optional.
func (am AppModule) EndBlock(_ context.Context) error {
return nil
}
// IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (am AppModule) IsOnePerModuleType() {}
// IsAppModule implements the appmodule.AppModule interface.
func (am AppModule) IsAppModule() {}
// ----------------------------------------------------------------------------
// App Wiring Setup
// ----------------------------------------------------------------------------
func init() {
appmodule.Register(
&modulev1.Module{},
appmodule.Provide(ProvideModule),
)
}
type ModuleInputs struct {
depinject.In
StoreService store.KVStoreService
Cdc codec.Codec
Config *modulev1.Module
Logger log.Logger
AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
}
type ModuleOutputs struct {
depinject.Out
TrustdepositKeeper keeper.Keeper
Module appmodule.AppModule
}
func ProvideModule(in ModuleInputs) ModuleOutputs {
// default to governance authority if not provided
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
k := keeper.NewKeeper(
in.Cdc,
in.StoreService,
in.Logger,
authority.String(),
in.BankKeeper,
)
m := NewAppModule(
in.Cdc,
k,
in.AccountKeeper,
in.BankKeeper,
)
return ModuleOutputs{TrustdepositKeeper: k, Module: m}
}
package trustdeposit
import (
"math/rand"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/verana-labs/verana-blockchain/testutil/sample"
trustdepositsimulation "github.com/verana-labs/verana-blockchain/x/trustdeposit/simulation"
"github.com/verana-labs/verana-blockchain/x/trustdeposit/types"
)
// avoid unused import issue
var (
_ = trustdepositsimulation.FindAccount
_ = rand.Rand{}
_ = sample.AccAddress
_ = sdk.AccAddress{}
_ = simulation.MsgEntryKind
)
const (
// this line is used by starport scaffolding # simapp/module/const
)
// GenerateGenesisState creates a randomized GenState of the module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs := make([]string, len(simState.Accounts))
for i, acc := range simState.Accounts {
accs[i] = acc.Address.String()
}
trustdepositGenesis := types.GenesisState{
Params: types.DefaultParams(),
// this line is used by starport scaffolding # simapp/module/genesisState
}
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&trustdepositGenesis)
}
// RegisterStoreDecoder registers a decoder.
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {}
// WeightedOperations returns the all the gov module operations with their respective weights.
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
operations := make([]simtypes.WeightedOperation, 0)
// this line is used by starport scaffolding # simapp/module/operation
return operations
}
// ProposalMsgs returns msgs used for governance proposals for simulations.
func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg {
return []simtypes.WeightedProposalMsg{
// this line is used by starport scaffolding # simapp/module/OpMsg
}
}
package simulation
import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
// FindAccount find a specific address from an account list
func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) {
creator, err := sdk.AccAddressFromBech32(address)
if err != nil {
panic(err)
}
return simtypes.FindAccount(accs, creator)
}
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
// this line is used by starport scaffolding # 1
)
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgReclaimTrustDepositInterests{}, "/td/v1/reclaim-interests")
legacy.RegisterAminoMsg(cdc, &MsgReclaimTrustDeposit{}, "/td/v1/reclaim-deposit")
}
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// this line is used by starport scaffolding # 3
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUpdateParams{},
&MsgReclaimTrustDepositInterests{},
&MsgReclaimTrustDeposit{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
package types
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// DefaultIndex is the default global index
const DefaultIndex uint64 = 1
// DefaultGenesis returns the default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
Params: DefaultParams(),
TrustDeposits: []TrustDepositRecord{},
}
}
// Validate performs basic genesis state validation returning an error upon any
// failure.
func (gs GenesisState) Validate() error {
// Validate parameters
if err := gs.Params.Validate(); err != nil {
return err
}
// Check for duplicate addresses in trust deposits
accountSet := make(map[string]struct{}, len(gs.TrustDeposits))
for i, td := range gs.TrustDeposits {
// Check for valid account address
if _, err := sdk.AccAddressFromBech32(td.Account); err != nil {
return fmt.Errorf("invalid account address at index %d: %s", i, err)
}
// Check for duplicate account addresses
if _, exists := accountSet[td.Account]; exists {
return fmt.Errorf("duplicate trust deposit for account: %s", td.Account)
}
accountSet[td.Account] = struct{}{}
// Ensure other fields are valid
if td.Amount < td.Claimable {
return fmt.Errorf("claimable amount exceeds deposit amount for account %s: %d > %d",
td.Account, td.Claimable, td.Amount)
}
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustdeposit/genesis.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the trustdeposit module's genesis state.
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
TrustDeposits []TrustDepositRecord `protobuf:"bytes,2,rep,name=trust_deposits,json=trustDeposits,proto3" json:"trust_deposits"`
}
func (m *GenesisState) Reset() { *m = GenesisState{} }
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
func (*GenesisState) ProtoMessage() {}
func (*GenesisState) Descriptor() ([]byte, []int) {
return fileDescriptor_817341a9dd109852, []int{0}
}
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GenesisState) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenesisState.Merge(m, src)
}
func (m *GenesisState) XXX_Size() int {
return m.Size()
}
func (m *GenesisState) XXX_DiscardUnknown() {
xxx_messageInfo_GenesisState.DiscardUnknown(m)
}
var xxx_messageInfo_GenesisState proto.InternalMessageInfo
func (m *GenesisState) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
func (m *GenesisState) GetTrustDeposits() []TrustDepositRecord {
if m != nil {
return m.TrustDeposits
}
return nil
}
// TrustDepositRecord defines a trust deposit entry for genesis state
type TrustDepositRecord struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Share uint64 `protobuf:"varint,2,opt,name=share,proto3" json:"share,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Claimable uint64 `protobuf:"varint,4,opt,name=claimable,proto3" json:"claimable,omitempty"`
}
func (m *TrustDepositRecord) Reset() { *m = TrustDepositRecord{} }
func (m *TrustDepositRecord) String() string { return proto.CompactTextString(m) }
func (*TrustDepositRecord) ProtoMessage() {}
func (*TrustDepositRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_817341a9dd109852, []int{1}
}
func (m *TrustDepositRecord) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TrustDepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TrustDepositRecord.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TrustDepositRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrustDepositRecord.Merge(m, src)
}
func (m *TrustDepositRecord) XXX_Size() int {
return m.Size()
}
func (m *TrustDepositRecord) XXX_DiscardUnknown() {
xxx_messageInfo_TrustDepositRecord.DiscardUnknown(m)
}
var xxx_messageInfo_TrustDepositRecord proto.InternalMessageInfo
func (m *TrustDepositRecord) GetAccount() string {
if m != nil {
return m.Account
}
return ""
}
func (m *TrustDepositRecord) GetShare() uint64 {
if m != nil {
return m.Share
}
return 0
}
func (m *TrustDepositRecord) GetAmount() uint64 {
if m != nil {
return m.Amount
}
return 0
}
func (m *TrustDepositRecord) GetClaimable() uint64 {
if m != nil {
return m.Claimable
}
return 0
}
func init() {
proto.RegisterType((*GenesisState)(nil), "veranablockchain.trustdeposit.GenesisState")
proto.RegisterType((*TrustDepositRecord)(nil), "veranablockchain.trustdeposit.TrustDepositRecord")
}
func init() {
proto.RegisterFile("veranablockchain/trustdeposit/genesis.proto", fileDescriptor_817341a9dd109852)
}
var fileDescriptor_817341a9dd109852 = []byte{
// 340 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x29, 0x2a,
0x2d, 0x2e, 0x49, 0x49, 0x2d, 0xc8, 0x2f, 0xce, 0x2c, 0xd1, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce,
0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x45, 0x57, 0xac, 0x87, 0xac, 0x58, 0x4a,
0x30, 0x31, 0x37, 0x33, 0x2f, 0x5f, 0x1f, 0x4c, 0x42, 0x74, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7,
0x83, 0x99, 0xfa, 0x20, 0x16, 0x54, 0x54, 0x0b, 0xbf, 0xa5, 0x05, 0x89, 0x45, 0x89, 0xb9, 0x50,
0x3b, 0x95, 0x76, 0x30, 0x72, 0xf1, 0xb8, 0x43, 0x5c, 0x11, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0xe4,
0xc1, 0xc5, 0x06, 0x51, 0x20, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0xa4, 0xaa, 0x87, 0xd7, 0x55,
0x7a, 0x01, 0x60, 0xc5, 0x4e, 0x9c, 0x27, 0xee, 0xc9, 0x33, 0xac, 0x78, 0xbe, 0x41, 0x8b, 0x31,
0x08, 0xaa, 0x5f, 0x28, 0x8e, 0x8b, 0x0f, 0xac, 0x32, 0x1e, 0xaa, 0xb4, 0x58, 0x82, 0x49, 0x81,
0x59, 0x83, 0xdb, 0xc8, 0x90, 0x80, 0x89, 0x21, 0x20, 0x8e, 0x0b, 0x84, 0x13, 0x94, 0x9a, 0x9c,
0x5f, 0x94, 0xe2, 0xc4, 0x02, 0x32, 0x3d, 0x88, 0xb7, 0x04, 0x49, 0xa6, 0x58, 0xa9, 0x8a, 0x4b,
0x08, 0x53, 0xa9, 0x90, 0x04, 0x17, 0x7b, 0x62, 0x72, 0x72, 0x7e, 0x69, 0x5e, 0x09, 0xd8, 0x03,
0x9c, 0x41, 0x30, 0xae, 0x90, 0x08, 0x17, 0x6b, 0x71, 0x46, 0x62, 0x51, 0xaa, 0x04, 0x93, 0x02,
0xa3, 0x06, 0x4b, 0x10, 0x84, 0x23, 0x24, 0xc6, 0xc5, 0x96, 0x98, 0x0b, 0x56, 0xce, 0x0c, 0x16,
0x86, 0xf2, 0x84, 0x64, 0xb8, 0x38, 0x93, 0x73, 0x12, 0x33, 0x73, 0x13, 0x93, 0x72, 0x52, 0x25,
0x58, 0xc0, 0x52, 0x08, 0x01, 0xa7, 0xf0, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c,
0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63,
0x88, 0xb2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x87, 0xf8, 0x53,
0x37, 0x27, 0x31, 0xa9, 0x18, 0xc6, 0x46, 0x8a, 0x94, 0x0a, 0xd4, 0x68, 0x29, 0xa9, 0x2c, 0x48,
0x2d, 0x4e, 0x62, 0x03, 0x47, 0x8b, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x99, 0x35, 0xe3,
0x39, 0x02, 0x00, 0x00,
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.TrustDeposits) > 0 {
for iNdEx := len(m.TrustDeposits) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.TrustDeposits[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *TrustDepositRecord) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TrustDepositRecord) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TrustDepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Claimable != 0 {
i = encodeVarintGenesis(dAtA, i, uint64(m.Claimable))
i--
dAtA[i] = 0x20
}
if m.Amount != 0 {
i = encodeVarintGenesis(dAtA, i, uint64(m.Amount))
i--
dAtA[i] = 0x18
}
if m.Share != 0 {
i = encodeVarintGenesis(dAtA, i, uint64(m.Share))
i--
dAtA[i] = 0x10
}
if len(m.Account) > 0 {
i -= len(m.Account)
copy(dAtA[i:], m.Account)
i = encodeVarintGenesis(dAtA, i, uint64(len(m.Account)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
offset -= sovGenesis(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *GenesisState) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovGenesis(uint64(l))
if len(m.TrustDeposits) > 0 {
for _, e := range m.TrustDeposits {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
return n
}
func (m *TrustDepositRecord) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Account)
if l > 0 {
n += 1 + l + sovGenesis(uint64(l))
}
if m.Share != 0 {
n += 1 + sovGenesis(uint64(m.Share))
}
if m.Amount != 0 {
n += 1 + sovGenesis(uint64(m.Amount))
}
if m.Claimable != 0 {
n += 1 + sovGenesis(uint64(m.Claimable))
}
return n
}
func sovGenesis(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozGenesis(x uint64) (n int) {
return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *GenesisState) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustDeposits", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.TrustDeposits = append(m.TrustDeposits, TrustDepositRecord{})
if err := m.TrustDeposits[len(m.TrustDeposits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TrustDepositRecord) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TrustDepositRecord: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TrustDepositRecord: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Share", wireType)
}
m.Share = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Share |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
}
m.Amount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Amount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Claimable", wireType)
}
m.Claimable = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Claimable |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGenesis(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthGenesis
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupGenesis
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthGenesis
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
package types
import "cosmossdk.io/collections"
const (
// ModuleName defines the module name
ModuleName = "trustdeposit"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_trustdeposit"
)
var (
ParamsKey = []byte("p_trustdeposit")
TrustDepositKey = collections.NewPrefix(1)
)
const (
BondDenom = "uvna"
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
package types
import (
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var _ sdk.Msg = &MsgUpdateParams{}
// ValidateBasic does a sanity check on the provided data.
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errorsmod.Wrap(err, "invalid authority address")
}
if err := m.Params.Validate(); err != nil {
return err
}
return nil
}
package types
import (
"cosmossdk.io/math"
"fmt"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
var _ paramtypes.ParamSet = (*Params)(nil)
const (
DefaultTrustDepositReclaimBurnRate = "0.6" // 60%
DefaultTrustDepositShareValue = "1.0" // Initial value: 1
DefaultTrustDepositRate = "0.2" // 20%
DefaultWalletUserAgentRewardRate = "0.2" // 20%
DefaultUserAgentRewardRate = "0.2" // 20%
)
// ParamKeyTable the param key table for launch module
func ParamKeyTable() paramtypes.KeyTable {
return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
// NewParams creates a new Params instance
func NewParams(
trustDepositReclaimBurnRate math.LegacyDec,
trustDepositShareValue math.LegacyDec,
trustDepositRate math.LegacyDec,
walletUserAgentRewardRate math.LegacyDec,
userAgentRewardRate math.LegacyDec,
) Params {
return Params{
TrustDepositReclaimBurnRate: trustDepositReclaimBurnRate,
TrustDepositShareValue: trustDepositShareValue,
TrustDepositRate: trustDepositRate,
WalletUserAgentRewardRate: walletUserAgentRewardRate,
UserAgentRewardRate: userAgentRewardRate,
}
}
// DefaultParams returns a default set of parameters
func DefaultParams() Params {
TrustDepositReclaimBurnRate, _ := math.LegacyNewDecFromStr(DefaultTrustDepositReclaimBurnRate)
TrustDepositShareValue, _ := math.LegacyNewDecFromStr(DefaultTrustDepositShareValue)
TrustDepositRate, _ := math.LegacyNewDecFromStr(DefaultTrustDepositRate)
WalletUserAgentRewardRate, _ := math.LegacyNewDecFromStr(DefaultWalletUserAgentRewardRate)
UserAgentRewardRate, _ := math.LegacyNewDecFromStr(DefaultUserAgentRewardRate)
return NewParams(
TrustDepositReclaimBurnRate,
TrustDepositShareValue,
TrustDepositRate,
WalletUserAgentRewardRate,
UserAgentRewardRate,
)
}
// ParamSetPairs get the params.ParamSet
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(
[]byte("TrustDepositReclaimBurnRate"),
&p.TrustDepositReclaimBurnRate,
validateLegacyDec,
),
paramtypes.NewParamSetPair(
[]byte("TrustDepositShareValue"),
&p.TrustDepositShareValue,
validatePositiveLegacyDec,
),
paramtypes.NewParamSetPair(
[]byte("TrustDepositRate"),
&p.TrustDepositRate,
validateLegacyDec,
),
paramtypes.NewParamSetPair(
[]byte("WalletUserAgentRewardRate"),
&p.WalletUserAgentRewardRate,
validateLegacyDec,
),
paramtypes.NewParamSetPair(
[]byte("UserAgentRewardRate"),
&p.UserAgentRewardRate,
validateLegacyDec,
),
}
}
// Validate validates the set of params
func (p Params) Validate() error {
if err := validateLegacyDec(p.TrustDepositReclaimBurnRate); err != nil {
return err
}
if err := validatePositiveLegacyDec(p.TrustDepositShareValue); err != nil {
return err
}
if err := validateLegacyDec(p.TrustDepositRate); err != nil {
return err
}
if err := validateLegacyDec(p.WalletUserAgentRewardRate); err != nil {
return err
}
if err := validateLegacyDec(p.UserAgentRewardRate); err != nil {
return err
}
return nil
}
// validateLegacyDec validates that the parameter is a valid decimal between 0 and 1
func validateLegacyDec(i interface{}) error {
v, ok := i.(math.LegacyDec)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
if v.IsNegative() {
return fmt.Errorf("value cannot be negative: %s", v)
}
if v.GT(math.LegacyOneDec()) {
return fmt.Errorf("value cannot be greater than 1: %s", v)
}
return nil
}
// validatePositiveLegacyDec validates that the parameter is a positive decimal
func validatePositiveLegacyDec(i interface{}) error {
v, ok := i.(math.LegacyDec)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
if v.IsNegative() || v.IsZero() {
return fmt.Errorf("value must be positive: %s", v)
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustdeposit/params.proto
package types
import (
cosmossdk_io_math "cosmossdk.io/math"
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the parameters for the module.
type Params struct {
TrustDepositReclaimBurnRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=trust_deposit_reclaim_burn_rate,json=trustDepositReclaimBurnRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"trust_deposit_reclaim_burn_rate" yaml:"trust_deposit_reclaim_burn_rate"`
TrustDepositShareValue cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=trust_deposit_share_value,json=trustDepositShareValue,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"trust_deposit_share_value" yaml:"trust_deposit_share_value"`
TrustDepositRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=trust_deposit_rate,json=trustDepositRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"trust_deposit_rate" yaml:"trust_deposit_rate"`
WalletUserAgentRewardRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=wallet_user_agent_reward_rate,json=walletUserAgentRewardRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"wallet_user_agent_reward_rate" yaml:"wallet_user_agent_reward_rate"`
UserAgentRewardRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=user_agent_reward_rate,json=userAgentRewardRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"user_agent_reward_rate" yaml:"user_agent_reward_rate"`
}
func (m *Params) Reset() { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage() {}
func (*Params) Descriptor() ([]byte, []int) {
return fileDescriptor_54da5875c1c486fc, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Params.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
xxx_messageInfo_Params.DiscardUnknown(m)
}
var xxx_messageInfo_Params proto.InternalMessageInfo
func init() {
proto.RegisterType((*Params)(nil), "veranablockchain.trustdeposit.Params")
}
func init() {
proto.RegisterFile("veranablockchain/trustdeposit/params.proto", fileDescriptor_54da5875c1c486fc)
}
var fileDescriptor_54da5875c1c486fc = []byte{
// 438 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0xaa, 0xd3, 0x40,
0x14, 0xc6, 0x33, 0x6a, 0x0b, 0x66, 0xa5, 0x51, 0x4a, 0xff, 0xd0, 0xa4, 0x04, 0x29, 0x52, 0x30,
0x59, 0xb8, 0x2b, 0x08, 0x5a, 0x0a, 0x2e, 0x54, 0x90, 0x88, 0x0a, 0x6e, 0xc2, 0x49, 0x3a, 0x24,
0xa1, 0x49, 0x26, 0xcc, 0x4c, 0x5a, 0xb3, 0x75, 0x29, 0x08, 0x82, 0x2f, 0xe0, 0x23, 0xf8, 0x18,
0xdd, 0xd9, 0xa5, 0xb8, 0x28, 0xd2, 0x2e, 0xbc, 0xeb, 0xfb, 0x04, 0x97, 0xcc, 0xdc, 0x0b, 0xfd,
0x7b, 0x6f, 0x36, 0xe1, 0x90, 0xef, 0xe4, 0xfb, 0x7e, 0xe7, 0x90, 0xa3, 0x0e, 0x66, 0x98, 0x42,
0x0a, 0x5e, 0x4c, 0xfc, 0xa9, 0x1f, 0x42, 0x94, 0xda, 0x9c, 0xe6, 0x8c, 0x4f, 0x70, 0x46, 0x58,
0xc4, 0xed, 0x0c, 0x28, 0x24, 0xcc, 0xca, 0x28, 0xe1, 0x44, 0xeb, 0xee, 0xf7, 0x5a, 0xdb, 0xbd,
0xed, 0xfb, 0x90, 0x44, 0x29, 0xb1, 0xc5, 0x53, 0x7e, 0xd1, 0x7e, 0x18, 0x90, 0x80, 0x88, 0xd2,
0x2e, 0x2b, 0xf9, 0xd6, 0xfc, 0x5d, 0x53, 0xeb, 0x6f, 0x85, 0xb1, 0xf6, 0x03, 0xa9, 0x86, 0x30,
0x71, 0x2f, 0x5d, 0x5c, 0x8a, 0xfd, 0x18, 0xa2, 0xc4, 0xf5, 0x72, 0x9a, 0xba, 0x14, 0x38, 0x6e,
0xa2, 0x1e, 0x7a, 0x7c, 0x77, 0xf4, 0x66, 0xb1, 0x32, 0x94, 0xbf, 0x2b, 0xa3, 0xe3, 0x13, 0x96,
0x10, 0xc6, 0x26, 0x53, 0x2b, 0x22, 0x76, 0x02, 0x3c, 0xb4, 0x5e, 0xe3, 0x00, 0xfc, 0x62, 0x8c,
0xfd, 0xf3, 0x95, 0xd1, 0x2f, 0x20, 0x89, 0x87, 0xe6, 0x0d, 0x9e, 0xa6, 0xd3, 0x11, 0x1d, 0x63,
0xd9, 0xe0, 0x48, 0x7d, 0x94, 0xd3, 0xd4, 0x01, 0x8e, 0xb5, 0x2f, 0x48, 0x6d, 0xed, 0x3a, 0xb0,
0x10, 0x28, 0x76, 0x67, 0x10, 0xe7, 0xb8, 0x79, 0x4b, 0xf0, 0xbc, 0xac, 0xc6, 0xd3, 0x3b, 0xc6,
0xb3, 0xe5, 0x66, 0x3a, 0x8d, 0x6d, 0x92, 0x77, 0xa5, 0xf2, 0xa1, 0x14, 0xb4, 0x54, 0xd5, 0xf6,
0xa6, 0x28, 0x97, 0x71, 0x5b, 0x84, 0x3f, 0xaf, 0x16, 0xde, 0x3a, 0xba, 0x0c, 0x31, 0xff, 0xbd,
0x9d, 0xf9, 0xcb, 0xa1, 0xbf, 0x21, 0xb5, 0x3b, 0x87, 0x38, 0xc6, 0xdc, 0xcd, 0x19, 0xa6, 0x2e,
0x04, 0x38, 0x2d, 0x57, 0x37, 0x07, 0x3a, 0x91, 0xd9, 0x77, 0x44, 0xf6, 0xab, 0x6a, 0xd9, 0x8f,
0x64, 0xf6, 0xb5, 0x8e, 0xa6, 0xd3, 0x92, 0xfa, 0x7b, 0x86, 0xe9, 0x8b, 0x52, 0x75, 0x84, 0x28,
0x78, 0x0a, 0xb5, 0x71, 0x82, 0xa3, 0x26, 0x38, 0xc6, 0xd5, 0x38, 0xba, 0x92, 0xe3, 0x14, 0xc0,
0x83, 0xfc, 0x30, 0x7a, 0x68, 0x9f, 0xfd, 0x34, 0xd0, 0xd7, 0xff, 0xbf, 0x06, 0xfd, 0x83, 0xeb,
0xf8, 0xbc, 0x7b, 0x1f, 0xf2, 0x37, 0x1e, 0x7d, 0x5c, 0xac, 0x75, 0xb4, 0x5c, 0xeb, 0xe8, 0xdf,
0x5a, 0x47, 0xdf, 0x37, 0xba, 0xb2, 0xdc, 0xe8, 0xca, 0x9f, 0x8d, 0xae, 0x7c, 0x7a, 0x16, 0x44,
0x3c, 0xcc, 0x3d, 0xcb, 0x27, 0x89, 0x2d, 0xcd, 0x9e, 0xc4, 0xe0, 0xb1, 0xab, 0xfa, 0xb4, 0x33,
0x2f, 0x32, 0xcc, 0xbc, 0xba, 0xb8, 0x98, 0xa7, 0x17, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xf4,
0xbd, 0x2d, 0xa7, 0x03, 0x00, 0x00,
}
func (this *Params) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Params)
if !ok {
that2, ok := that.(Params)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.TrustDepositReclaimBurnRate.Equal(that1.TrustDepositReclaimBurnRate) {
return false
}
if !this.TrustDepositShareValue.Equal(that1.TrustDepositShareValue) {
return false
}
if !this.TrustDepositRate.Equal(that1.TrustDepositRate) {
return false
}
if !this.WalletUserAgentRewardRate.Equal(that1.WalletUserAgentRewardRate) {
return false
}
if !this.UserAgentRewardRate.Equal(that1.UserAgentRewardRate) {
return false
}
return true
}
func (m *Params) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Params) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size := m.UserAgentRewardRate.Size()
i -= size
if _, err := m.UserAgentRewardRate.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintParams(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
{
size := m.WalletUserAgentRewardRate.Size()
i -= size
if _, err := m.WalletUserAgentRewardRate.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintParams(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
{
size := m.TrustDepositRate.Size()
i -= size
if _, err := m.TrustDepositRate.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintParams(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
{
size := m.TrustDepositShareValue.Size()
i -= size
if _, err := m.TrustDepositShareValue.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintParams(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
{
size := m.TrustDepositReclaimBurnRate.Size()
i -= size
if _, err := m.TrustDepositReclaimBurnRate.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintParams(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
offset -= sovParams(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Params) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.TrustDepositReclaimBurnRate.Size()
n += 1 + l + sovParams(uint64(l))
l = m.TrustDepositShareValue.Size()
n += 1 + l + sovParams(uint64(l))
l = m.TrustDepositRate.Size()
n += 1 + l + sovParams(uint64(l))
l = m.WalletUserAgentRewardRate.Size()
n += 1 + l + sovParams(uint64(l))
l = m.UserAgentRewardRate.Size()
n += 1 + l + sovParams(uint64(l))
return n
}
func sovParams(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustDepositReclaimBurnRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthParams
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthParams
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.TrustDepositReclaimBurnRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustDepositShareValue", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthParams
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthParams
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.TrustDepositShareValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustDepositRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthParams
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthParams
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.TrustDepositRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field WalletUserAgentRewardRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthParams
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthParams
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.WalletUserAgentRewardRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field UserAgentRewardRate", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthParams
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthParams
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.UserAgentRewardRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipParams(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthParams
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipParams(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthParams
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupParams
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthParams
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowParams = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustdeposit/query.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/query"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
}
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryParamsRequest) ProtoMessage() {}
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0124e478700e9f98, []int{0}
}
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
}
func (m *QueryParamsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryParamsResponse) ProtoMessage() {}
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0124e478700e9f98, []int{1}
}
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
}
func (m *QueryParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
func (m *QueryParamsResponse) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// QueryGetTrustDepositRequest is request type for the GetTrustDeposit RPC method
type QueryGetTrustDepositRequest struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}
func (m *QueryGetTrustDepositRequest) Reset() { *m = QueryGetTrustDepositRequest{} }
func (m *QueryGetTrustDepositRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetTrustDepositRequest) ProtoMessage() {}
func (*QueryGetTrustDepositRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_0124e478700e9f98, []int{2}
}
func (m *QueryGetTrustDepositRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetTrustDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetTrustDepositRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetTrustDepositRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetTrustDepositRequest.Merge(m, src)
}
func (m *QueryGetTrustDepositRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetTrustDepositRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetTrustDepositRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetTrustDepositRequest proto.InternalMessageInfo
func (m *QueryGetTrustDepositRequest) GetAccount() string {
if m != nil {
return m.Account
}
return ""
}
// QueryGetTrustDepositResponse is response type for the GetTrustDeposit RPC method
type QueryGetTrustDepositResponse struct {
TrustDeposit TrustDeposit `protobuf:"bytes,1,opt,name=trust_deposit,json=trustDeposit,proto3" json:"trust_deposit"`
}
func (m *QueryGetTrustDepositResponse) Reset() { *m = QueryGetTrustDepositResponse{} }
func (m *QueryGetTrustDepositResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetTrustDepositResponse) ProtoMessage() {}
func (*QueryGetTrustDepositResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_0124e478700e9f98, []int{3}
}
func (m *QueryGetTrustDepositResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetTrustDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetTrustDepositResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetTrustDepositResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetTrustDepositResponse.Merge(m, src)
}
func (m *QueryGetTrustDepositResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetTrustDepositResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetTrustDepositResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetTrustDepositResponse proto.InternalMessageInfo
func (m *QueryGetTrustDepositResponse) GetTrustDeposit() TrustDeposit {
if m != nil {
return m.TrustDeposit
}
return TrustDeposit{}
}
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "veranablockchain.trustdeposit.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "veranablockchain.trustdeposit.QueryParamsResponse")
proto.RegisterType((*QueryGetTrustDepositRequest)(nil), "veranablockchain.trustdeposit.QueryGetTrustDepositRequest")
proto.RegisterType((*QueryGetTrustDepositResponse)(nil), "veranablockchain.trustdeposit.QueryGetTrustDepositResponse")
}
func init() {
proto.RegisterFile("veranablockchain/trustdeposit/query.proto", fileDescriptor_0124e478700e9f98)
}
var fileDescriptor_0124e478700e9f98 = []byte{
// 449 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x8b, 0xd3, 0x40,
0x14, 0xc7, 0x33, 0x8b, 0x56, 0x76, 0x74, 0x59, 0x1c, 0xab, 0x2c, 0xb1, 0x46, 0x09, 0x08, 0xba,
0x62, 0x86, 0xd4, 0x83, 0xa0, 0x78, 0x29, 0x82, 0x1e, 0x35, 0x88, 0x82, 0x97, 0x65, 0x92, 0x1d,
0xb2, 0xc1, 0x66, 0x5e, 0x36, 0x33, 0x09, 0x2e, 0xe2, 0xc5, 0x83, 0x67, 0xc1, 0x2f, 0xd1, 0xa3,
0x77, 0xbf, 0x40, 0x8f, 0x05, 0x2f, 0x9e, 0x44, 0x5a, 0xc1, 0xaf, 0x21, 0x99, 0x99, 0x40, 0xac,
0xa5, 0x55, 0x2f, 0xe5, 0xf5, 0xe5, 0xfd, 0xdf, 0xff, 0xf7, 0xde, 0x3c, 0x7c, 0xb3, 0xe6, 0x25,
0x13, 0x2c, 0x1e, 0x43, 0xf2, 0x2a, 0x39, 0x62, 0x99, 0xa0, 0xaa, 0xac, 0xa4, 0x3a, 0xe4, 0x05,
0xc8, 0x4c, 0xd1, 0xe3, 0x8a, 0x97, 0x27, 0x41, 0x51, 0x82, 0x02, 0x72, 0x65, 0xb9, 0x34, 0xe8,
0x96, 0xba, 0xe7, 0x59, 0x9e, 0x09, 0xa0, 0xfa, 0xd7, 0x28, 0xdc, 0x7e, 0x0a, 0x29, 0xe8, 0x90,
0x36, 0x91, 0xcd, 0x0e, 0x52, 0x80, 0x74, 0xcc, 0x29, 0x2b, 0x32, 0xca, 0x84, 0x00, 0xc5, 0x54,
0x06, 0x42, 0xda, 0xaf, 0xfb, 0x09, 0xc8, 0x1c, 0x24, 0x8d, 0x99, 0xe4, 0xc6, 0x9e, 0xd6, 0x61,
0xcc, 0x15, 0x0b, 0x69, 0xc1, 0xd2, 0x4c, 0xe8, 0xe2, 0xb6, 0x76, 0x3d, 0x7c, 0xc1, 0x4a, 0x96,
0xb7, 0x7d, 0x37, 0x0c, 0xaa, 0x4e, 0x0a, 0x6e, 0x4b, 0xfd, 0x3e, 0x26, 0x4f, 0x1b, 0xe3, 0x27,
0x5a, 0x1f, 0xf1, 0xe3, 0x8a, 0x4b, 0xe5, 0x1f, 0xe0, 0x0b, 0xbf, 0x65, 0x65, 0x01, 0x42, 0x72,
0xf2, 0x18, 0xf7, 0x8c, 0xcf, 0x1e, 0xba, 0x86, 0x6e, 0x9c, 0x1d, 0x5e, 0x0f, 0xd6, 0xae, 0x29,
0x30, 0xf2, 0xd1, 0xf6, 0xf4, 0xdb, 0x55, 0x67, 0xf2, 0xf3, 0xd3, 0x3e, 0x8a, 0xac, 0xde, 0xbf,
0x8b, 0x2f, 0x6b, 0x83, 0x47, 0x5c, 0x3d, 0x6b, 0x14, 0x0f, 0x8d, 0xc2, 0xfa, 0x93, 0x3d, 0x7c,
0x86, 0x25, 0x09, 0x54, 0x42, 0x69, 0xa7, 0xed, 0xa8, 0xfd, 0xeb, 0xd7, 0x78, 0xb0, 0x5a, 0x68,
0x11, 0x9f, 0xe3, 0x1d, 0x8d, 0x70, 0x60, 0x19, 0x2c, 0xe9, 0xad, 0x0d, 0xa4, 0xdd, 0x5e, 0xa3,
0x53, 0x0d, 0x6f, 0x74, 0x4e, 0x75, 0x72, 0xc3, 0xcf, 0x5b, 0xf8, 0xb4, 0x36, 0x26, 0xef, 0x11,
0xee, 0x99, 0xc1, 0x48, 0xb8, 0xa1, 0xeb, 0x9f, 0x9b, 0x75, 0x87, 0xff, 0x22, 0x31, 0x33, 0xf9,
0x17, 0xdf, 0x7d, 0xf9, 0xf1, 0x71, 0x6b, 0x97, 0xec, 0x50, 0x75, 0x48, 0xeb, 0xd0, 0xbe, 0x35,
0x99, 0x20, 0xbc, 0xbb, 0xb4, 0x06, 0x72, 0xef, 0x6f, 0xda, 0xaf, 0x5e, 0xba, 0x7b, 0xff, 0xbf,
0xb4, 0x96, 0x71, 0xa0, 0x19, 0x2f, 0x91, 0xbe, 0x65, 0x4c, 0xb9, 0xa2, 0x6f, 0xec, 0xa3, 0xbd,
0x1d, 0xbd, 0x98, 0xce, 0x3d, 0x34, 0x9b, 0x7b, 0xe8, 0xfb, 0xdc, 0x43, 0x1f, 0x16, 0x9e, 0x33,
0x5b, 0x78, 0xce, 0xd7, 0x85, 0xe7, 0xbc, 0x7c, 0x90, 0x66, 0xea, 0xa8, 0x8a, 0x83, 0x04, 0x72,
0x6a, 0xec, 0x6f, 0x8f, 0x59, 0x2c, 0xdb, 0xb8, 0x73, 0xc2, 0xaf, 0x57, 0x1c, 0x71, 0xdc, 0xd3,
0x57, 0x7c, 0xe7, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0xad, 0xfb, 0x75, 0xdb, 0x03, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
GetTrustDeposit(ctx context.Context, in *QueryGetTrustDepositRequest, opts ...grpc.CallOption) (*QueryGetTrustDepositResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustdeposit.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetTrustDeposit(ctx context.Context, in *QueryGetTrustDepositRequest, opts ...grpc.CallOption) (*QueryGetTrustDepositResponse, error) {
out := new(QueryGetTrustDepositResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustdeposit.Query/GetTrustDeposit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
GetTrustDeposit(context.Context, *QueryGetTrustDepositRequest) (*QueryGetTrustDepositResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (*UnimplementedQueryServer) GetTrustDeposit(ctx context.Context, req *QueryGetTrustDepositRequest) (*QueryGetTrustDepositResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTrustDeposit not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustdeposit.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetTrustDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetTrustDepositRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetTrustDeposit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustdeposit.Query/GetTrustDeposit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetTrustDeposit(ctx, req.(*QueryGetTrustDepositRequest))
}
return interceptor(ctx, in, info, handler)
}
var Query_serviceDesc = _Query_serviceDesc
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustdeposit.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "GetTrustDeposit",
Handler: _Query_GetTrustDeposit_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustdeposit/query.proto",
}
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryGetTrustDepositRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetTrustDepositRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetTrustDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Account) > 0 {
i -= len(m.Account)
copy(dAtA[i:], m.Account)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Account)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryGetTrustDepositResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetTrustDepositResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetTrustDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.TrustDeposit.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *QueryParamsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryGetTrustDepositRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Account)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryGetTrustDepositResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.TrustDeposit.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func sovQuery(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQuery(x uint64) (n int) {
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetTrustDepositRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetTrustDepositRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetTrustDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetTrustDepositResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetTrustDepositResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetTrustDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustDeposit", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.TrustDeposit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQuery(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthQuery
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupQuery
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthQuery
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: veranablockchain/trustdeposit/query.proto
/*
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package types
import (
"context"
"io"
"net/http"
"github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/proto"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/utilities"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = descriptor.ForMessage
var _ = metadata.Join
func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := server.Params(ctx, &protoReq)
return msg, metadata, err
}
func request_Query_GetTrustDeposit_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetTrustDepositRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["account"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account")
}
protoReq.Account, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err)
}
msg, err := client.GetTrustDeposit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetTrustDeposit_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetTrustDepositRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["account"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "account")
}
protoReq.Account, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "account", err)
}
msg, err := server.GetTrustDeposit(ctx, &protoReq)
return msg, metadata, err
}
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
// UnaryRPC :call QueryServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetTrustDeposit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetTrustDeposit_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetTrustDeposit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
conn, err := grpc.Dial(endpoint, opts...)
if err != nil {
return err
}
defer func() {
if err != nil {
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
}()
}()
return RegisterQueryHandler(ctx, mux, conn)
}
// RegisterQueryHandler registers the http handlers for service Query to "mux".
// The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn))
}
// RegisterQueryHandlerClient registers the http handlers for service Query
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient".
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient"
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetTrustDeposit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetTrustDeposit_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetTrustDeposit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
var (
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"td", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetTrustDeposit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"td", "v1", "get", "account"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
forward_Query_Params_0 = runtime.ForwardResponseMessage
forward_Query_GetTrustDeposit_0 = runtime.ForwardResponseMessage
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustdeposit/tx.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParams) ProtoMessage() {}
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return fileDescriptor_ecf9f31152d5bd50, []int{0}
}
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParams.Merge(m, src)
}
func (m *MsgUpdateParams) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
func (m *MsgUpdateParams) GetAuthority() string {
if m != nil {
return m.Authority
}
return ""
}
func (m *MsgUpdateParams) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
}
func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParamsResponse) ProtoMessage() {}
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ecf9f31152d5bd50, []int{1}
}
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
}
func (m *MsgUpdateParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
// MsgReclaimTrustDepositInterests defines the request type
type MsgReclaimTrustDepositInterests struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}
func (m *MsgReclaimTrustDepositInterests) Reset() { *m = MsgReclaimTrustDepositInterests{} }
func (m *MsgReclaimTrustDepositInterests) String() string { return proto.CompactTextString(m) }
func (*MsgReclaimTrustDepositInterests) ProtoMessage() {}
func (*MsgReclaimTrustDepositInterests) Descriptor() ([]byte, []int) {
return fileDescriptor_ecf9f31152d5bd50, []int{2}
}
func (m *MsgReclaimTrustDepositInterests) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgReclaimTrustDepositInterests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgReclaimTrustDepositInterests.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgReclaimTrustDepositInterests) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgReclaimTrustDepositInterests.Merge(m, src)
}
func (m *MsgReclaimTrustDepositInterests) XXX_Size() int {
return m.Size()
}
func (m *MsgReclaimTrustDepositInterests) XXX_DiscardUnknown() {
xxx_messageInfo_MsgReclaimTrustDepositInterests.DiscardUnknown(m)
}
var xxx_messageInfo_MsgReclaimTrustDepositInterests proto.InternalMessageInfo
func (m *MsgReclaimTrustDepositInterests) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
// MsgReclaimTrustDepositInterestsResponse defines the response type
type MsgReclaimTrustDepositInterestsResponse struct {
ClaimedAmount uint64 `protobuf:"varint,1,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"`
}
func (m *MsgReclaimTrustDepositInterestsResponse) Reset() {
*m = MsgReclaimTrustDepositInterestsResponse{}
}
func (m *MsgReclaimTrustDepositInterestsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgReclaimTrustDepositInterestsResponse) ProtoMessage() {}
func (*MsgReclaimTrustDepositInterestsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ecf9f31152d5bd50, []int{3}
}
func (m *MsgReclaimTrustDepositInterestsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgReclaimTrustDepositInterestsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgReclaimTrustDepositInterestsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgReclaimTrustDepositInterestsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgReclaimTrustDepositInterestsResponse.Merge(m, src)
}
func (m *MsgReclaimTrustDepositInterestsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgReclaimTrustDepositInterestsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgReclaimTrustDepositInterestsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgReclaimTrustDepositInterestsResponse proto.InternalMessageInfo
func (m *MsgReclaimTrustDepositInterestsResponse) GetClaimedAmount() uint64 {
if m != nil {
return m.ClaimedAmount
}
return 0
}
type MsgReclaimTrustDeposit struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Claimed uint64 `protobuf:"varint,2,opt,name=claimed,proto3" json:"claimed,omitempty"`
}
func (m *MsgReclaimTrustDeposit) Reset() { *m = MsgReclaimTrustDeposit{} }
func (m *MsgReclaimTrustDeposit) String() string { return proto.CompactTextString(m) }
func (*MsgReclaimTrustDeposit) ProtoMessage() {}
func (*MsgReclaimTrustDeposit) Descriptor() ([]byte, []int) {
return fileDescriptor_ecf9f31152d5bd50, []int{4}
}
func (m *MsgReclaimTrustDeposit) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgReclaimTrustDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgReclaimTrustDeposit.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgReclaimTrustDeposit) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgReclaimTrustDeposit.Merge(m, src)
}
func (m *MsgReclaimTrustDeposit) XXX_Size() int {
return m.Size()
}
func (m *MsgReclaimTrustDeposit) XXX_DiscardUnknown() {
xxx_messageInfo_MsgReclaimTrustDeposit.DiscardUnknown(m)
}
var xxx_messageInfo_MsgReclaimTrustDeposit proto.InternalMessageInfo
func (m *MsgReclaimTrustDeposit) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgReclaimTrustDeposit) GetClaimed() uint64 {
if m != nil {
return m.Claimed
}
return 0
}
type MsgReclaimTrustDepositResponse struct {
BurnedAmount uint64 `protobuf:"varint,1,opt,name=burned_amount,json=burnedAmount,proto3" json:"burned_amount,omitempty"`
ClaimedAmount uint64 `protobuf:"varint,2,opt,name=claimed_amount,json=claimedAmount,proto3" json:"claimed_amount,omitempty"`
}
func (m *MsgReclaimTrustDepositResponse) Reset() { *m = MsgReclaimTrustDepositResponse{} }
func (m *MsgReclaimTrustDepositResponse) String() string { return proto.CompactTextString(m) }
func (*MsgReclaimTrustDepositResponse) ProtoMessage() {}
func (*MsgReclaimTrustDepositResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ecf9f31152d5bd50, []int{5}
}
func (m *MsgReclaimTrustDepositResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgReclaimTrustDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgReclaimTrustDepositResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgReclaimTrustDepositResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgReclaimTrustDepositResponse.Merge(m, src)
}
func (m *MsgReclaimTrustDepositResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgReclaimTrustDepositResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgReclaimTrustDepositResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgReclaimTrustDepositResponse proto.InternalMessageInfo
func (m *MsgReclaimTrustDepositResponse) GetBurnedAmount() uint64 {
if m != nil {
return m.BurnedAmount
}
return 0
}
func (m *MsgReclaimTrustDepositResponse) GetClaimedAmount() uint64 {
if m != nil {
return m.ClaimedAmount
}
return 0
}
func init() {
proto.RegisterType((*MsgUpdateParams)(nil), "veranablockchain.trustdeposit.MsgUpdateParams")
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "veranablockchain.trustdeposit.MsgUpdateParamsResponse")
proto.RegisterType((*MsgReclaimTrustDepositInterests)(nil), "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterests")
proto.RegisterType((*MsgReclaimTrustDepositInterestsResponse)(nil), "veranablockchain.trustdeposit.MsgReclaimTrustDepositInterestsResponse")
proto.RegisterType((*MsgReclaimTrustDeposit)(nil), "veranablockchain.trustdeposit.MsgReclaimTrustDeposit")
proto.RegisterType((*MsgReclaimTrustDepositResponse)(nil), "veranablockchain.trustdeposit.MsgReclaimTrustDepositResponse")
}
func init() {
proto.RegisterFile("veranablockchain/trustdeposit/tx.proto", fileDescriptor_ecf9f31152d5bd50)
}
var fileDescriptor_ecf9f31152d5bd50 = []byte{
// 530 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4f, 0x6b, 0xd4, 0x40,
0x14, 0xdf, 0x69, 0x6b, 0xcb, 0x3e, 0xb7, 0x8a, 0xb1, 0xd8, 0x6d, 0xd0, 0xb4, 0x44, 0xaa, 0x65,
0xa1, 0x09, 0xae, 0xd8, 0x43, 0xa1, 0x42, 0x17, 0x11, 0x3d, 0x2c, 0x94, 0xa8, 0x08, 0x5e, 0xca,
0x24, 0x19, 0xb2, 0xc1, 0x4d, 0x26, 0xcc, 0x4c, 0x96, 0xf6, 0x26, 0x1e, 0xf5, 0xe2, 0xa7, 0x10,
0x8f, 0x7b, 0xf0, 0xe6, 0x17, 0xe8, 0xb1, 0x78, 0xd1, 0x93, 0xc8, 0xee, 0x61, 0xbf, 0x86, 0x24,
0x99, 0x6c, 0xdd, 0x18, 0x77, 0x71, 0xbd, 0xec, 0xce, 0xfb, 0xf7, 0x7b, 0xbf, 0xdf, 0xcc, 0x7b,
0x81, 0x3b, 0x3d, 0xc2, 0x70, 0x88, 0xed, 0x2e, 0x75, 0x5e, 0x3b, 0x1d, 0xec, 0x87, 0xa6, 0x60,
0x31, 0x17, 0x2e, 0x89, 0x28, 0xf7, 0x85, 0x29, 0x4e, 0x8c, 0x88, 0x51, 0x41, 0x95, 0x5b, 0xc5,
0x3c, 0xe3, 0xf7, 0x3c, 0xf5, 0x1a, 0x0e, 0xfc, 0x90, 0x9a, 0xe9, 0x6f, 0x56, 0xa1, 0xae, 0x3b,
0x94, 0x07, 0x94, 0x9b, 0x01, 0xf7, 0xcc, 0xde, 0xbd, 0xe4, 0x4f, 0x06, 0x36, 0xb2, 0xc0, 0x71,
0x6a, 0x99, 0x99, 0x21, 0x43, 0x6b, 0x1e, 0xf5, 0x68, 0xe6, 0x4f, 0x4e, 0xd2, 0xdb, 0x98, 0xce,
0x31, 0xc2, 0x0c, 0x07, 0x12, 0x41, 0xff, 0x86, 0xe0, 0x6a, 0x9b, 0x7b, 0x2f, 0x22, 0x17, 0x0b,
0x72, 0x94, 0x46, 0x94, 0x3d, 0xa8, 0xe2, 0x58, 0x74, 0x28, 0xf3, 0xc5, 0x69, 0x1d, 0x6d, 0xa1,
0x9d, 0x6a, 0xab, 0xfe, 0xf5, 0xf3, 0xee, 0x9a, 0x6c, 0x7d, 0xe8, 0xba, 0x8c, 0x70, 0xfe, 0x4c,
0x30, 0x3f, 0xf4, 0xac, 0x8b, 0x54, 0xe5, 0x09, 0x2c, 0x67, 0xd8, 0xf5, 0x85, 0x2d, 0xb4, 0x73,
0xb9, 0xb9, 0x6d, 0x4c, 0xbd, 0x04, 0x23, 0x6b, 0xd7, 0xaa, 0x9e, 0xfd, 0xd8, 0xac, 0x7c, 0x1a,
0xf5, 0x1b, 0xc8, 0x92, 0xf5, 0xfb, 0xad, 0xb7, 0xa3, 0x7e, 0xe3, 0x02, 0xf9, 0xdd, 0xa8, 0xdf,
0x30, 0xff, 0x10, 0x75, 0x32, 0x29, 0xab, 0xa0, 0x42, 0xdf, 0x80, 0xf5, 0x82, 0xcb, 0x22, 0x3c,
0xa2, 0x21, 0x27, 0xba, 0x03, 0x9b, 0x6d, 0xee, 0x59, 0xc4, 0xe9, 0x62, 0x3f, 0x78, 0x9e, 0x80,
0x3c, 0xca, 0x40, 0x9e, 0x86, 0x82, 0x30, 0xc2, 0x05, 0x57, 0x9a, 0xb0, 0xe2, 0x30, 0x82, 0x05,
0x65, 0x33, 0x6f, 0x20, 0x4f, 0xdc, 0xaf, 0x25, 0xac, 0x73, 0x4b, 0x3f, 0x82, 0xbb, 0x33, 0x9a,
0xe4, 0x7c, 0x94, 0x6d, 0xb8, 0x92, 0x66, 0x11, 0xf7, 0x18, 0x07, 0x34, 0x0e, 0x45, 0xda, 0x73,
0xc9, 0x5a, 0x95, 0xde, 0xc3, 0xd4, 0xa9, 0x0b, 0xb8, 0x51, 0x8e, 0x38, 0x0f, 0x5b, 0xa5, 0x0e,
0x2b, 0x12, 0x3e, 0x7d, 0xae, 0x25, 0x2b, 0x37, 0x0b, 0x3a, 0xba, 0xa0, 0x95, 0x77, 0x1d, 0xd3,
0xbf, 0x0d, 0xab, 0x76, 0xcc, 0xc2, 0x22, 0xfb, 0x5a, 0xe6, 0xcc, 0xc8, 0x97, 0x68, 0x5c, 0x28,
0xd1, 0xd8, 0xfc, 0xb2, 0x08, 0x8b, 0x6d, 0xee, 0x29, 0x3d, 0xa8, 0x4d, 0xcc, 0xa4, 0x31, 0x63,
0x96, 0x0a, 0x4f, 0xad, 0xee, 0xfd, 0x5b, 0xfe, 0x58, 0xcb, 0x47, 0x04, 0x37, 0xa7, 0x0e, 0xc6,
0xc3, 0xd9, 0xc0, 0xd3, 0xea, 0xd5, 0xc7, 0xff, 0x57, 0x3f, 0x26, 0xfa, 0x1e, 0xc1, 0xf5, 0xb2,
0x51, 0x78, 0x30, 0x17, 0xbe, 0x7a, 0x30, 0x57, 0x59, 0xce, 0x46, 0xbd, 0xf4, 0x26, 0xd9, 0xdf,
0xd6, 0xcb, 0xb3, 0x81, 0x86, 0xce, 0x07, 0x1a, 0xfa, 0x39, 0xd0, 0xd0, 0x87, 0xa1, 0x56, 0x39,
0x1f, 0x6a, 0x95, 0xef, 0x43, 0xad, 0xf2, 0xea, 0xc0, 0xf3, 0x45, 0x27, 0xb6, 0x0d, 0x87, 0x06,
0x72, 0x93, 0x77, 0xbb, 0xd8, 0xe6, 0xf9, 0xf9, 0xef, 0x6b, 0x2d, 0x4e, 0x23, 0xc2, 0xed, 0xe5,
0xf4, 0x6b, 0x75, 0xff, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x5e, 0xdc, 0x75, 0x7f, 0x05,
0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
ReclaimTrustDepositInterests(ctx context.Context, in *MsgReclaimTrustDepositInterests, opts ...grpc.CallOption) (*MsgReclaimTrustDepositInterestsResponse, error)
ReclaimTrustDeposit(ctx context.Context, in *MsgReclaimTrustDeposit, opts ...grpc.CallOption) (*MsgReclaimTrustDepositResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustdeposit.Msg/UpdateParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ReclaimTrustDepositInterests(ctx context.Context, in *MsgReclaimTrustDepositInterests, opts ...grpc.CallOption) (*MsgReclaimTrustDepositInterestsResponse, error) {
out := new(MsgReclaimTrustDepositInterestsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustdeposit.Msg/ReclaimTrustDepositInterests", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ReclaimTrustDeposit(ctx context.Context, in *MsgReclaimTrustDeposit, opts ...grpc.CallOption) (*MsgReclaimTrustDepositResponse, error) {
out := new(MsgReclaimTrustDepositResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustdeposit.Msg/ReclaimTrustDeposit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
ReclaimTrustDepositInterests(context.Context, *MsgReclaimTrustDepositInterests) (*MsgReclaimTrustDepositInterestsResponse, error)
ReclaimTrustDeposit(context.Context, *MsgReclaimTrustDeposit) (*MsgReclaimTrustDepositResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (*UnimplementedMsgServer) ReclaimTrustDepositInterests(ctx context.Context, req *MsgReclaimTrustDepositInterests) (*MsgReclaimTrustDepositInterestsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReclaimTrustDepositInterests not implemented")
}
func (*UnimplementedMsgServer) ReclaimTrustDeposit(ctx context.Context, req *MsgReclaimTrustDeposit) (*MsgReclaimTrustDepositResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ReclaimTrustDeposit not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustdeposit.Msg/UpdateParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ReclaimTrustDepositInterests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgReclaimTrustDepositInterests)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ReclaimTrustDepositInterests(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustdeposit.Msg/ReclaimTrustDepositInterests",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ReclaimTrustDepositInterests(ctx, req.(*MsgReclaimTrustDepositInterests))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ReclaimTrustDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgReclaimTrustDeposit)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ReclaimTrustDeposit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustdeposit.Msg/ReclaimTrustDeposit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ReclaimTrustDeposit(ctx, req.(*MsgReclaimTrustDeposit))
}
return interceptor(ctx, in, info, handler)
}
var Msg_serviceDesc = _Msg_serviceDesc
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustdeposit.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "ReclaimTrustDepositInterests",
Handler: _Msg_ReclaimTrustDepositInterests_Handler,
},
{
MethodName: "ReclaimTrustDeposit",
Handler: _Msg_ReclaimTrustDeposit_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustdeposit/tx.proto",
}
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
if len(m.Authority) > 0 {
i -= len(m.Authority)
copy(dAtA[i:], m.Authority)
i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgReclaimTrustDepositInterests) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgReclaimTrustDepositInterests) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgReclaimTrustDepositInterests) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgReclaimTrustDepositInterestsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgReclaimTrustDepositInterestsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgReclaimTrustDepositInterestsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ClaimedAmount != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.ClaimedAmount))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *MsgReclaimTrustDeposit) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgReclaimTrustDeposit) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgReclaimTrustDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Claimed != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Claimed))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgReclaimTrustDepositResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgReclaimTrustDepositResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgReclaimTrustDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ClaimedAmount != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.ClaimedAmount))
i--
dAtA[i] = 0x10
}
if m.BurnedAmount != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.BurnedAmount))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgUpdateParams) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Authority)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = m.Params.Size()
n += 1 + l + sovTx(uint64(l))
return n
}
func (m *MsgUpdateParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgReclaimTrustDepositInterests) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgReclaimTrustDepositInterestsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.ClaimedAmount != 0 {
n += 1 + sovTx(uint64(m.ClaimedAmount))
}
return n
}
func (m *MsgReclaimTrustDeposit) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Claimed != 0 {
n += 1 + sovTx(uint64(m.Claimed))
}
return n
}
func (m *MsgReclaimTrustDepositResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.BurnedAmount != 0 {
n += 1 + sovTx(uint64(m.BurnedAmount))
}
if m.ClaimedAmount != 0 {
n += 1 + sovTx(uint64(m.ClaimedAmount))
}
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgReclaimTrustDepositInterests) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgReclaimTrustDepositInterests: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgReclaimTrustDepositInterests: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgReclaimTrustDepositInterestsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgReclaimTrustDepositInterestsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgReclaimTrustDepositInterestsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ClaimedAmount", wireType)
}
m.ClaimedAmount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ClaimedAmount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgReclaimTrustDeposit) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgReclaimTrustDeposit: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgReclaimTrustDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Claimed", wireType)
}
m.Claimed = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Claimed |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgReclaimTrustDepositResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgReclaimTrustDepositResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgReclaimTrustDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field BurnedAmount", wireType)
}
m.BurnedAmount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.BurnedAmount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ClaimedAmount", wireType)
}
m.ClaimedAmount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ClaimedAmount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
package types
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// ValidateBasic implements sdk.Msg
func (msg *MsgReclaimTrustDepositInterests) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return fmt.Errorf("invalid creator address (%s)", err)
}
return nil
}
func (msg *MsgReclaimTrustDeposit) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
return fmt.Errorf("invalid creator address (%s)", err)
}
if msg.Claimed == 0 {
return fmt.Errorf("claimed amount must be greater than 0")
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustdeposit/types.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// TrustDeposit represents an account's trust deposit
type TrustDeposit struct {
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Share uint64 `protobuf:"varint,2,opt,name=share,proto3" json:"share,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Claimable uint64 `protobuf:"varint,4,opt,name=claimable,proto3" json:"claimable,omitempty"`
}
func (m *TrustDeposit) Reset() { *m = TrustDeposit{} }
func (m *TrustDeposit) String() string { return proto.CompactTextString(m) }
func (*TrustDeposit) ProtoMessage() {}
func (*TrustDeposit) Descriptor() ([]byte, []int) {
return fileDescriptor_ff5a6ed6a7c1030f, []int{0}
}
func (m *TrustDeposit) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TrustDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TrustDeposit.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TrustDeposit) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrustDeposit.Merge(m, src)
}
func (m *TrustDeposit) XXX_Size() int {
return m.Size()
}
func (m *TrustDeposit) XXX_DiscardUnknown() {
xxx_messageInfo_TrustDeposit.DiscardUnknown(m)
}
var xxx_messageInfo_TrustDeposit proto.InternalMessageInfo
func (m *TrustDeposit) GetAccount() string {
if m != nil {
return m.Account
}
return ""
}
func (m *TrustDeposit) GetShare() uint64 {
if m != nil {
return m.Share
}
return 0
}
func (m *TrustDeposit) GetAmount() uint64 {
if m != nil {
return m.Amount
}
return 0
}
func (m *TrustDeposit) GetClaimable() uint64 {
if m != nil {
return m.Claimable
}
return 0
}
func init() {
proto.RegisterType((*TrustDeposit)(nil), "veranablockchain.trustdeposit.TrustDeposit")
}
func init() {
proto.RegisterFile("veranablockchain/trustdeposit/types.proto", fileDescriptor_ff5a6ed6a7c1030f)
}
var fileDescriptor_ff5a6ed6a7c1030f = []byte{
// 297 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4a, 0x03, 0x31,
0x14, 0x86, 0x1b, 0xad, 0x95, 0x06, 0x37, 0x0e, 0x45, 0xc7, 0xa2, 0xa1, 0xb8, 0xaa, 0x42, 0x1b,
0xd4, 0xb5, 0x0b, 0x8b, 0x27, 0xa8, 0x82, 0xe0, 0x46, 0xde, 0xa4, 0x61, 0x1a, 0x9c, 0x4c, 0x86,
0x24, 0x53, 0xf4, 0x12, 0xe2, 0x61, 0x3c, 0x84, 0xcb, 0xe2, 0xca, 0xa5, 0xcc, 0x5c, 0x44, 0x26,
0x49, 0xb1, 0x88, 0xb8, 0x49, 0xde, 0xff, 0x7f, 0x2f, 0x2f, 0xf9, 0x09, 0x3e, 0x59, 0x70, 0x0d,
0x39, 0x24, 0x99, 0x62, 0x8f, 0x6c, 0x0e, 0x22, 0xa7, 0x56, 0x97, 0xc6, 0xce, 0x78, 0xa1, 0x8c,
0xb0, 0xd4, 0x3e, 0x17, 0xdc, 0x8c, 0x0b, 0xad, 0xac, 0x8a, 0x8e, 0x7e, 0xb7, 0x8e, 0xd7, 0x5b,
0xfb, 0xbb, 0x20, 0x45, 0xae, 0xa8, 0x5b, 0xfd, 0x89, 0xfe, 0x3e, 0x53, 0x46, 0x2a, 0x43, 0xa5,
0x49, 0xe9, 0xe2, 0xac, 0xd9, 0x02, 0x38, 0xf0, 0xe0, 0xc1, 0x29, 0xea, 0x45, 0x40, 0xbd, 0x54,
0xa5, 0xca, 0xfb, 0x4d, 0x15, 0xdc, 0xd3, 0xff, 0x9f, 0x59, 0x80, 0x06, 0x19, 0x26, 0x1c, 0xbf,
0x20, 0xbc, 0x73, 0xdb, 0xd0, 0x6b, 0x4f, 0xa3, 0x73, 0xbc, 0x0d, 0x8c, 0xa9, 0x32, 0xb7, 0x31,
0x1a, 0xa0, 0x61, 0x77, 0x12, 0x7f, 0xbc, 0x8d, 0x7a, 0xe1, 0xd6, 0xab, 0xd9, 0x4c, 0x73, 0x63,
0x6e, 0xac, 0x16, 0x79, 0x3a, 0x5d, 0x35, 0x46, 0x3d, 0xbc, 0x65, 0xe6, 0xa0, 0x79, 0xbc, 0x31,
0x40, 0xc3, 0xf6, 0xd4, 0x8b, 0x68, 0x0f, 0x77, 0x40, 0xba, 0x41, 0x9b, 0xce, 0x0e, 0x2a, 0x3a,
0xc4, 0x5d, 0x96, 0x81, 0x90, 0x90, 0x64, 0x3c, 0x6e, 0x3b, 0xf4, 0x63, 0x4c, 0xee, 0xde, 0x2b,
0x82, 0x96, 0x15, 0x41, 0x5f, 0x15, 0x41, 0xaf, 0x35, 0x69, 0x2d, 0x6b, 0xd2, 0xfa, 0xac, 0x49,
0xeb, 0xfe, 0x32, 0x15, 0x76, 0x5e, 0x26, 0x63, 0xa6, 0x24, 0xf5, 0x09, 0x47, 0x19, 0x24, 0x66,
0x55, 0xaf, 0xc5, 0x7d, 0xfa, 0xe3, 0x5f, 0x92, 0x8e, 0x0b, 0x7c, 0xf1, 0x1d, 0x00, 0x00, 0xff,
0xff, 0x74, 0x9a, 0x66, 0xf1, 0xc5, 0x01, 0x00, 0x00,
}
func (m *TrustDeposit) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TrustDeposit) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TrustDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Claimable != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Claimable))
i--
dAtA[i] = 0x20
}
if m.Amount != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Amount))
i--
dAtA[i] = 0x18
}
if m.Share != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Share))
i--
dAtA[i] = 0x10
}
if len(m.Account) > 0 {
i -= len(m.Account)
copy(dAtA[i:], m.Account)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Account)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
offset -= sovTypes(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *TrustDeposit) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Account)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.Share != 0 {
n += 1 + sovTypes(uint64(m.Share))
}
if m.Amount != 0 {
n += 1 + sovTypes(uint64(m.Amount))
}
if m.Claimable != 0 {
n += 1 + sovTypes(uint64(m.Claimable))
}
return n
}
func sovTypes(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTypes(x uint64) (n int) {
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *TrustDeposit) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TrustDeposit: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TrustDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Account = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Share", wireType)
}
m.Share = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Share |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
}
m.Amount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Amount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Claimable", wireType)
}
m.Claimable = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Claimable |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTypes(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTypes
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTypes
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTypes
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
package keeper
import (
"errors"
"fmt"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
func (ms msgServer) validateAddGovernanceFrameworkDocumentParams(ctx sdk.Context, msg *types.MsgAddGovernanceFrameworkDocument) error {
// Direct lookup of trust registry by ID
tr, err := ms.TrustRegistry.Get(ctx, msg.Id)
if err != nil {
return fmt.Errorf("trust registry with ID %d does not exist: %w", msg.Id, err)
}
// Check controller
if tr.Controller != msg.Creator {
return errors.New("creator is not the controller of the trust registry")
}
// Check version validity
var maxVersion int32
var hasVersion bool
err = ms.GFVersion.Walk(ctx, nil, func(id uint64, gfv types.GovernanceFrameworkVersion) (bool, error) {
if gfv.TrId == msg.Id {
if gfv.Version == msg.Version {
hasVersion = true
}
if gfv.Version > maxVersion {
maxVersion = gfv.Version
}
}
return false, nil
})
if err != nil {
return fmt.Errorf("error checking versions: %w", err)
}
// Validate version according to spec
if !hasVersion && msg.Version != maxVersion+1 {
return fmt.Errorf("invalid version: must be %d or %d", maxVersion, maxVersion+1)
}
if msg.Version <= tr.ActiveVersion {
return fmt.Errorf("version must be greater than the active version %d", tr.ActiveVersion)
}
// Validate language tag
if !isValidLanguageTag(msg.DocLanguage) {
return errors.New("invalid language tag (must conform to rfc1766)")
}
return nil
}
func (ms msgServer) executeAddGovernanceFrameworkDocument(ctx sdk.Context, msg *types.MsgAddGovernanceFrameworkDocument) error {
// Find or create governance framework version
var gfv types.GovernanceFrameworkVersion
maxVersion := int32(0)
err := ms.GFVersion.Walk(ctx, nil, func(key uint64, version types.GovernanceFrameworkVersion) (bool, error) {
if version.TrId == msg.Id {
if version.Version > maxVersion {
maxVersion = version.Version
}
if version.Version == msg.Version {
gfv = version
}
}
return false, nil
})
if err != nil {
return fmt.Errorf("failed to walk governance framework versions: %w", err)
}
// Create new version if needed
if gfv.Id == 0 {
nextGfvId, err := ms.GetNextID(ctx, "gfv")
if err != nil {
return fmt.Errorf("failed to generate governance framework version ID: %w", err)
}
gfv = types.GovernanceFrameworkVersion{
Id: nextGfvId,
TrId: msg.Id,
Created: ctx.BlockTime(),
Version: msg.Version,
ActiveSince: time.Time{}, // Zero time as per spec - not active yet
}
if err := ms.GFVersion.Set(ctx, gfv.Id, gfv); err != nil {
return fmt.Errorf("failed to persist governance framework version: %w", err)
}
}
// Create document
nextGfdId, err := ms.GetNextID(ctx, "gfd")
if err != nil {
return fmt.Errorf("failed to generate governance framework document ID: %w", err)
}
gfd := types.GovernanceFrameworkDocument{
Id: nextGfdId,
GfvId: gfv.Id,
Created: ctx.BlockTime(),
Language: msg.DocLanguage,
Url: msg.DocUrl,
DigestSri: msg.DocDigestSri,
}
if err := ms.GFDocument.Set(ctx, gfd.Id, gfd); err != nil {
return fmt.Errorf("failed to persist governance framework document: %w", err)
}
return nil
}
package keeper
import (
"errors"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
func (ms msgServer) validateIncreaseActiveGovernanceFrameworkVersionParams(ctx sdk.Context, msg *types.MsgIncreaseActiveGovernanceFrameworkVersion) error {
// Direct lookup by ID
tr, err := ms.TrustRegistry.Get(ctx, msg.Id)
if err != nil {
return fmt.Errorf("trust registry with ID %d does not exist: %w", msg.Id, err)
}
if tr.Controller != msg.Creator {
return errors.New("creator is not the controller of the trust registry")
}
nextVersion := tr.ActiveVersion + 1
// Find GFV for next version
var gfv types.GovernanceFrameworkVersion
found := false
err = ms.GFVersion.Walk(ctx, nil, func(id uint64, v types.GovernanceFrameworkVersion) (bool, error) {
if v.TrId == msg.Id && v.Version == nextVersion {
gfv = v
found = true
return true, nil
}
return false, nil
})
if err != nil {
return fmt.Errorf("error checking versions: %w", err)
}
if !found {
return fmt.Errorf("no governance framework version found for version %d", nextVersion)
}
// Check for document in trust registry's language
var hasDefaultLanguageDoc bool
err = ms.GFDocument.Walk(ctx, nil, func(id uint64, gfd types.GovernanceFrameworkDocument) (bool, error) {
if gfd.GfvId == gfv.Id && gfd.Language == tr.Language {
hasDefaultLanguageDoc = true
return true, nil
}
return false, nil
})
if err != nil {
return fmt.Errorf("error checking documents: %w", err)
}
if !hasDefaultLanguageDoc {
return errors.New("no document found for the default language of this version")
}
return nil
}
func (ms msgServer) executeIncreaseActiveGovernanceFrameworkVersion(ctx sdk.Context, msg *types.MsgIncreaseActiveGovernanceFrameworkVersion) error {
// Direct lookup of trust registry by ID
tr, err := ms.TrustRegistry.Get(ctx, msg.Id)
if err != nil {
return fmt.Errorf("error finding trust registry: %w", err)
}
nextVersion := tr.ActiveVersion + 1
var nextGfv types.GovernanceFrameworkVersion
var found bool
err = ms.GFVersion.Walk(ctx, nil, func(key uint64, gfv types.GovernanceFrameworkVersion) (bool, error) {
if gfv.TrId == msg.Id && gfv.Version == nextVersion {
nextGfv = gfv
found = true
return true, nil
}
return false, nil
})
if err != nil {
return fmt.Errorf("failed to walk governance framework versions: %w", err)
}
if !found {
return fmt.Errorf("next version not found")
}
// Update version
now := ctx.BlockTime()
tr.ActiveVersion = nextVersion
tr.Modified = now
nextGfv.ActiveSince = now
// Persist changes
if err := ms.TrustRegistry.Set(ctx, tr.Id, tr); err != nil {
return fmt.Errorf("failed to update trust registry: %w", err)
}
if err := ms.GFVersion.Set(ctx, nextGfv.Id, nextGfv); err != nil {
return fmt.Errorf("failed to update governance framework version: %w", err)
}
return nil
}
package keeper
import (
"fmt"
"cosmossdk.io/collections"
"cosmossdk.io/core/store"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
type (
Keeper struct {
cdc codec.BinaryCodec
storeService store.KVStoreService
logger log.Logger
// the address capable of executing a MsgUpdateParams message. Typically, this
// should be the x/gov module account.
authority string
// state management
Schema collections.Schema
Params collections.Item[types.Params]
TrustRegistry collections.Map[uint64, types.TrustRegistry]
TrustRegistryDIDIndex collections.Map[string, uint64] // Index for DID lookups
GFVersion collections.Map[uint64, types.GovernanceFrameworkVersion]
GFDocument collections.Map[uint64, types.GovernanceFrameworkDocument]
Counter collections.Map[string, uint64]
// module references
//bankKeeper types.BankKeeper
trustDeposit types.TrustDepositKeeper
}
)
func NewKeeper(
cdc codec.BinaryCodec,
storeService store.KVStoreService,
logger log.Logger,
authority string,
trustDeposit types.TrustDepositKeeper,
) Keeper {
if _, err := sdk.AccAddressFromBech32(authority); err != nil {
panic(fmt.Sprintf("invalid authority address: %s", authority))
}
sb := collections.NewSchemaBuilder(storeService)
k := Keeper{
cdc: cdc,
//addressCodec: addressCodec,
storeService: storeService,
authority: authority,
logger: logger,
Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.Params](cdc)),
TrustRegistry: collections.NewMap(sb, types.TrustRegistryKey, "trust_registry", collections.Uint64Key, codec.CollValue[types.TrustRegistry](cdc)),
TrustRegistryDIDIndex: collections.NewMap(sb, types.TrustRegistryDIDIndex, "trust_registry_did_index", collections.StringKey, collections.Uint64Value),
GFVersion: collections.NewMap(sb, types.GovernanceFrameworkVersionKey, "gf_version", collections.Uint64Key, codec.CollValue[types.GovernanceFrameworkVersion](cdc)),
GFDocument: collections.NewMap(sb, types.GovernanceFrameworkDocumentKey, "gf_document", collections.Uint64Key, codec.CollValue[types.GovernanceFrameworkDocument](cdc)),
Counter: collections.NewMap(sb, types.CounterKey, "counter", collections.StringKey, collections.Uint64Value),
trustDeposit: trustDeposit,
}
schema, err := sb.Build()
if err != nil {
panic(err)
}
k.Schema = schema
return k
}
// GetAuthority returns the module's authority.
func (k Keeper) GetAuthority() string {
return k.authority
}
// Logger returns a module-specific logger.
func (k Keeper) Logger() log.Logger {
return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName))
}
func (k Keeper) GetTrustRegistryByDID(ctx sdk.Context, did string) (types.TrustRegistry, error) {
// Get ID from DID index
id, err := k.TrustRegistryDIDIndex.Get(ctx, did)
if err != nil {
return types.TrustRegistry{}, fmt.Errorf("trust registry with DID %s not found: %w", did, err)
}
// Get Trust Registry using ID
return k.TrustRegistry.Get(ctx, id)
}
func (k Keeper) GetTrustRegistry(ctx sdk.Context, id uint64) (types.TrustRegistry, error) {
return k.TrustRegistry.Get(ctx, id)
}
func (k Keeper) GetNextID(ctx sdk.Context, entityType string) (uint64, error) {
currentID, err := k.Counter.Get(ctx, entityType)
if err != nil {
currentID = 0
}
nextID := currentID + 1
err = k.Counter.Set(ctx, entityType, nextID)
if err != nil {
return 0, fmt.Errorf("failed to set counter: %w", err)
}
return nextID, nil
}
func (k Keeper) GetTrustUnitPrice(ctx sdk.Context) uint64 {
params := k.GetParams(ctx)
return params.TrustUnitPrice
}
package keeper
import (
"context"
"fmt"
"strconv"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
type msgServer struct {
Keeper
}
// NewMsgServerImpl returns an implementation of the MsgServer interface
// for the provided Keeper.
func NewMsgServerImpl(keeper Keeper) types.MsgServer {
return &msgServer{Keeper: keeper}
}
var _ types.MsgServer = msgServer{}
func (ms msgServer) CreateTrustRegistry(goCtx context.Context, msg *types.MsgCreateTrustRegistry) (*types.MsgCreateTrustRegistryResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// [MOD-TR-MSG-1-3] Create New Trust Registry execution
now := ctx.BlockTime()
// Calculate trust deposit amount
params := ms.Keeper.GetParams(ctx)
trustDeposit := params.TrustRegistryTrustDeposit * params.TrustUnitPrice
// Increase trust deposit
if err := ms.Keeper.trustDeposit.AdjustTrustDeposit(ctx, msg.Creator, int64(trustDeposit)); err != nil {
return nil, fmt.Errorf("failed to adjust trust deposit: %w", err)
}
tr, gfv, gfd, err := ms.createTrustRegistryEntries(ctx, msg, now)
if err != nil {
return nil, err
}
// Update trust deposit amount in the trust registry entry
tr.Deposit = int64(trustDeposit)
if err := ms.persistEntries(ctx, tr, gfv, gfd); err != nil {
return nil, err
}
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeCreateTrustRegistry,
sdk.NewAttribute(types.AttributeKeyTrustRegistryID, strconv.FormatUint(tr.Id, 10)),
sdk.NewAttribute(types.AttributeKeyDID, tr.Did),
sdk.NewAttribute(types.AttributeKeyController, tr.Controller),
sdk.NewAttribute(types.AttributeKeyAka, tr.Aka),
sdk.NewAttribute(types.AttributeKeyLanguage, tr.Language),
sdk.NewAttribute(types.AttributeKeyDeposit, strconv.FormatUint(uint64(tr.Deposit), 10)),
sdk.NewAttribute(types.AttributeKeyTimestamp, now.String()),
),
sdk.NewEvent(
types.EventTypeCreateGovernanceFrameworkVersion,
sdk.NewAttribute(types.AttributeKeyGFVersionID, strconv.FormatUint(gfv.Id, 10)),
sdk.NewAttribute(types.AttributeKeyTrustRegistryID, strconv.FormatUint(gfv.TrId, 10)),
sdk.NewAttribute(types.AttributeKeyVersion, strconv.FormatUint(uint64(gfv.Version), 10)),
),
sdk.NewEvent(
types.EventTypeCreateGovernanceFrameworkDocument,
sdk.NewAttribute(types.AttributeKeyGFDocumentID, strconv.FormatUint(gfd.Id, 10)),
sdk.NewAttribute(types.AttributeKeyGFVersionID, strconv.FormatUint(gfd.GfvId, 10)),
sdk.NewAttribute(types.AttributeKeyDocURL, gfd.Url),
sdk.NewAttribute(types.AttributeKeyDigestSri, gfd.DigestSri),
),
})
return &types.MsgCreateTrustRegistryResponse{}, nil
}
func (ms msgServer) AddGovernanceFrameworkDocument(goCtx context.Context, msg *types.MsgAddGovernanceFrameworkDocument) (*types.MsgAddGovernanceFrameworkDocumentResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.validateAddGovernanceFrameworkDocumentParams(ctx, msg); err != nil {
return nil, err
}
if err := ms.executeAddGovernanceFrameworkDocument(ctx, msg); err != nil {
return nil, err
}
return &types.MsgAddGovernanceFrameworkDocumentResponse{}, nil
}
func (ms msgServer) IncreaseActiveGovernanceFrameworkVersion(goCtx context.Context, msg *types.MsgIncreaseActiveGovernanceFrameworkVersion) (*types.MsgIncreaseActiveGovernanceFrameworkVersionResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Validate parameters
if err := ms.validateIncreaseActiveGovernanceFrameworkVersionParams(ctx, msg); err != nil {
return nil, err
}
// Execute the increase
if err := ms.executeIncreaseActiveGovernanceFrameworkVersion(ctx, msg); err != nil {
return nil, err
}
return &types.MsgIncreaseActiveGovernanceFrameworkVersionResponse{}, nil
}
func (ms msgServer) UpdateTrustRegistry(goCtx context.Context, msg *types.MsgUpdateTrustRegistry) (*types.MsgUpdateTrustRegistryResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Get trust registry
tr, err := ms.TrustRegistry.Get(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("trust registry not found: %w", err)
}
// Check controller
if tr.Controller != msg.Creator {
return nil, fmt.Errorf("only trust registry controller can update trust registry")
}
// Update fields
tr.Did = msg.Did
tr.Aka = msg.Aka
tr.Modified = ctx.BlockTime()
// Save updated trust registry
if err := ms.TrustRegistry.Set(ctx, tr.Id, tr); err != nil {
return nil, fmt.Errorf("failed to update trust registry: %w", err)
}
return &types.MsgUpdateTrustRegistryResponse{}, nil
}
func (ms msgServer) ArchiveTrustRegistry(goCtx context.Context, msg *types.MsgArchiveTrustRegistry) (*types.MsgArchiveTrustRegistryResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
// Get trust registry
tr, err := ms.TrustRegistry.Get(ctx, msg.Id)
if err != nil {
return nil, fmt.Errorf("trust registry not found: %w", err)
}
// Check controller
if tr.Controller != msg.Creator {
return nil, fmt.Errorf("only trust registry controller can archive trust registry")
}
// Check archive state
if msg.Archive {
if tr.Archived != nil {
return nil, fmt.Errorf("trust registry is already archived")
}
} else {
if tr.Archived == nil {
return nil, fmt.Errorf("trust registry is not archived")
}
}
// Update archive state
now := ctx.BlockTime()
if msg.Archive {
tr.Archived = &now
} else {
tr.Archived = nil
}
tr.Modified = now
// Save updated trust registry
if err := ms.TrustRegistry.Set(ctx, tr.Id, tr); err != nil {
return nil, fmt.Errorf("failed to update trust registry: %w", err)
}
return &types.MsgArchiveTrustRegistryResponse{}, nil
}
package keeper
import (
"context"
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
func (ms msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
if ms.GetAuthority() != req.Authority {
return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.GetAuthority(), req.Authority)
}
ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.SetParams(ctx, req.Params); err != nil {
return nil, err
}
return &types.MsgUpdateParamsResponse{}, nil
}
package keeper
import (
"context"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
// GetParams get all parameters as types.Params
func (k Keeper) GetParams(ctx context.Context) (params types.Params) {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz := store.Get(types.ParamsKey)
if bz == nil {
return params
}
k.cdc.MustUnmarshal(bz, ¶ms)
return params
}
// SetParams set the params
func (k Keeper) SetParams(ctx context.Context, params types.Params) error {
store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
bz, err := k.cdc.Marshal(¶ms)
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)
return nil
}
package keeper
import (
"context"
"errors"
"sort"
"cosmossdk.io/collections"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
var _ types.QueryServer = queryServer{}
func NewQueryServerImpl(k Keeper) types.QueryServer {
return queryServer{k}
}
type queryServer struct {
k Keeper
}
func (qs queryServer) GetTrustRegistry(ctx context.Context, req *types.QueryGetTrustRegistryRequest) (*types.QueryGetTrustRegistryResponse, error) {
if req.TrId == 0 {
return nil, status.Error(codes.InvalidArgument, "trust registry ID is required")
}
// Direct lookup by ID
tr, err := qs.k.TrustRegistry.Get(ctx, req.TrId)
if err != nil {
if errors.Is(err, collections.ErrNotFound) {
return nil, status.Error(codes.NotFound, "trust registry not found")
}
return nil, status.Error(codes.Internal, err.Error())
}
// Get versions with nested documents
trWithVersions, err := qs.getTrustRegistryWithVersions(ctx, tr, req.ActiveGfOnly, req.PreferredLanguage)
if err != nil {
return nil, err
}
return &types.QueryGetTrustRegistryResponse{
TrustRegistry: trWithVersions,
}, nil
}
func (qs queryServer) getTrustRegistryWithVersions(ctx context.Context, tr types.TrustRegistry, activeOnly bool, preferredLang string) (*types.TrustRegistryWithVersions, error) {
var versionsWithDocs []types.GovernanceFrameworkVersionWithDocs
// Fetch all versions for this trust registry
err := qs.k.GFVersion.Walk(ctx, nil, func(id uint64, gfv types.GovernanceFrameworkVersion) (bool, error) {
if gfv.TrId == tr.Id {
if !activeOnly || gfv.Version == tr.ActiveVersion {
var docs []types.GovernanceFrameworkDocument
// Fetch documents for this version
err := qs.k.GFDocument.Walk(ctx, nil, func(docId uint64, gfd types.GovernanceFrameworkDocument) (bool, error) {
if gfd.GfvId == gfv.Id {
if preferredLang == "" || gfd.Language == preferredLang {
docs = append(docs, gfd)
}
}
return false, nil
})
if err != nil {
return true, err
}
// If we have a preferred language but didn't find a matching document,
// include the first document as fallback
if preferredLang != "" && len(docs) == 0 {
err := qs.k.GFDocument.Walk(ctx, nil, func(docId uint64, gfd types.GovernanceFrameworkDocument) (bool, error) {
if gfd.GfvId == gfv.Id {
docs = append(docs, gfd)
return true, nil
}
return false, nil
})
if err != nil {
return true, err
}
}
versionWithDocs := types.GovernanceFrameworkVersionWithDocs{
Id: gfv.Id,
TrId: gfv.TrId,
Created: gfv.Created,
Version: gfv.Version,
ActiveSince: gfv.ActiveSince,
Documents: docs,
}
versionsWithDocs = append(versionsWithDocs, versionWithDocs)
}
}
return false, nil
})
if err != nil {
return nil, status.Error(codes.Internal, err.Error())
}
return &types.TrustRegistryWithVersions{
Id: tr.Id,
Did: tr.Did,
Controller: tr.Controller,
Created: tr.Created,
Modified: tr.Modified,
Archived: tr.Archived,
Deposit: tr.Deposit,
Aka: tr.Aka,
ActiveVersion: tr.ActiveVersion,
Language: tr.Language,
Versions: versionsWithDocs,
}, nil
}
func (qs queryServer) ListTrustRegistries(ctx context.Context, req *types.QueryListTrustRegistriesRequest) (*types.QueryListTrustRegistriesResponse, error) {
// Validate response_max_size
if req.ResponseMaxSize < 1 || req.ResponseMaxSize > 1024 {
return nil, status.Error(codes.InvalidArgument, "response_max_size must be between 1 and 1,024")
}
var registriesWithVersions []types.TrustRegistryWithVersions
// Collect all matching trust registries with their nested versions and documents
err := qs.k.TrustRegistry.Walk(ctx, nil, func(key uint64, tr types.TrustRegistry) (bool, error) {
// Apply filters
if req.Controller != "" && tr.Controller != req.Controller {
return false, nil
}
if req.ModifiedAfter != nil && !tr.Modified.After(*req.ModifiedAfter) {
return false, nil
}
// Get versions with nested documents for this trust registry
trWithVersions, err := qs.getTrustRegistryWithVersions(ctx, tr, req.ActiveGfOnly, req.PreferredLanguage)
if err != nil {
return true, err
}
registriesWithVersions = append(registriesWithVersions, *trWithVersions)
return len(registriesWithVersions) >= int(req.ResponseMaxSize), nil
})
if err != nil {
return nil, status.Error(codes.Internal, err.Error())
}
// Sort by modified time ascending
sort.Slice(registriesWithVersions, func(i, j int) bool {
return registriesWithVersions[i].Modified.Before(registriesWithVersions[j].Modified)
})
return &types.QueryListTrustRegistriesResponse{
TrustRegistries: registriesWithVersions,
}, nil
}
// Params defines the handler for the Query/Params RPC method.
func (qs queryServer) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
params, err := qs.k.Params.Get(ctx)
if err != nil {
if errors.Is(err, collections.ErrNotFound) {
return &types.QueryParamsResponse{Params: types.Params{}}, nil
}
return nil, status.Error(codes.Internal, err.Error())
}
return &types.QueryParamsResponse{Params: params}, nil
}
package keeper
import (
"fmt"
"regexp"
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
func isValidLanguageTag(lang string) bool {
// RFC1766 primary tag must be exactly 2 letters
if len(lang) != 2 {
return false
}
// Must be lowercase letters only
match, _ := regexp.MatchString(`^[a-z]{2}$`, lang)
return match
}
func (ms msgServer) createTrustRegistryEntries(ctx sdk.Context, msg *types.MsgCreateTrustRegistry, now time.Time) (types.TrustRegistry, types.GovernanceFrameworkVersion, types.GovernanceFrameworkDocument, error) {
// Generate next ID for trust registry
nextTrId, err := ms.Keeper.GetNextID(ctx, "tr")
if err != nil {
return types.TrustRegistry{}, types.GovernanceFrameworkVersion{}, types.GovernanceFrameworkDocument{}, fmt.Errorf("failed to generate trust registry ID: %w", err)
}
// Create trust registry
tr := types.TrustRegistry{
Id: nextTrId,
Did: msg.Did,
Controller: msg.Creator,
Created: now,
Modified: now,
Deposit: 0,
Archived: nil,
Aka: msg.Aka,
ActiveVersion: 1,
Language: msg.Language,
}
// Generate next ID for governance framework version
nextGfvId, err := ms.Keeper.GetNextID(ctx, "gfv")
if err != nil {
return types.TrustRegistry{}, types.GovernanceFrameworkVersion{}, types.GovernanceFrameworkDocument{}, fmt.Errorf("failed to generate governance framework version ID: %w", err)
}
// Create governance framework version
gfv := types.GovernanceFrameworkVersion{
Id: nextGfvId,
TrId: tr.Id,
Created: now,
Version: 1,
ActiveSince: now,
}
// Generate next ID for governance framework document
nextGfdId, err := ms.Keeper.GetNextID(ctx, "gfd")
if err != nil {
return types.TrustRegistry{}, types.GovernanceFrameworkVersion{}, types.GovernanceFrameworkDocument{}, fmt.Errorf("failed to generate governance framework document ID: %w", err)
}
// Create governance framework document
gfd := types.GovernanceFrameworkDocument{
Id: nextGfdId,
GfvId: gfv.Id,
Created: now,
Language: msg.Language,
Url: msg.DocUrl,
DigestSri: msg.DocDigestSri,
}
return tr, gfv, gfd, nil
}
func (ms msgServer) persistEntries(ctx sdk.Context, tr types.TrustRegistry, gfv types.GovernanceFrameworkVersion, gfd types.GovernanceFrameworkDocument) error {
if err := ms.TrustRegistry.Set(ctx, tr.Id, tr); err != nil {
return fmt.Errorf("failed to persist TrustRegistry: %w", err)
}
// Store DID -> ID index
if err := ms.TrustRegistryDIDIndex.Set(ctx, tr.Did, tr.Id); err != nil {
return fmt.Errorf("failed to persist DID index: %w", err)
}
if err := ms.GFVersion.Set(ctx, gfv.Id, gfv); err != nil {
return fmt.Errorf("failed to persist GovernanceFrameworkVersion: %w", err)
}
if err := ms.GFDocument.Set(ctx, gfd.Id, gfd); err != nil {
return fmt.Errorf("failed to persist GovernanceFrameworkDocument: %w", err)
}
return nil
}
package trustregistry
import (
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/trustregistry"
)
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
return &autocliv1.ModuleOptions{
Query: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Query_ServiceDesc.ServiceName,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "GetTrustRegistry",
Use: "get-trust-registry [tr_id]",
Short: "Get trust registry information by ID",
Long: "Get the trust registry information for a given trust registry ID, with options to filter by active governance framework and preferred language",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "tr_id"},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"active_gf_only": {
Name: "active-gf-only",
DefaultValue: "false",
Usage: "If true, include only current governance framework data",
},
"preferred_language": {
Name: "preferred-language",
DefaultValue: "",
Usage: "Preferred language for the returned documents",
},
},
},
{
RpcMethod: "ListTrustRegistries",
Use: "list-trust-registries",
Short: "List Trust Registries",
Long: "List Trust Registries with optional filtering and pagination. Results are ordered by modified time ascending.",
FlagOptions: map[string]*autocliv1.FlagOptions{
"controller": {
Name: "controller",
Usage: "Filter by controller account address",
DefaultValue: "",
},
"modified_after": {
Name: "modified-after",
Usage: "Filter by modified time (RFC3339 format)",
DefaultValue: "",
},
"active_gf_only": {
Name: "active-gf-only",
Usage: "Include only current governance framework data",
DefaultValue: "false",
},
"preferred_language": {
Name: "preferred-language",
Usage: "Preferred language for returned documents",
DefaultValue: "",
},
"response_max_size": {
Name: "response-max-size",
Usage: "Maximum number of results to return (1-1024)",
DefaultValue: "64",
},
},
},
{
RpcMethod: "Params",
Use: "params",
Short: "Get the current module parameters",
},
},
},
Tx: &autocliv1.ServiceCommandDescriptor{
Service: modulev1.Msg_ServiceDesc.ServiceName,
EnhanceCustomCommand: true,
RpcCommandOptions: []*autocliv1.RpcCommandOptions{
{
RpcMethod: "CreateTrustRegistry",
Use: "create-trust-registry [did] [language] [doc-url] [doc-digest-sri]",
Short: "Create a new trust registry",
Long: "Create a new trust registry with the specified DID, language, and initial governance framework document",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "did"},
{ProtoField: "language"},
{ProtoField: "doc_url"},
{ProtoField: "doc_digest_sri"},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"aka": {
Name: "aka",
DefaultValue: "",
Usage: "aka uri",
},
},
},
{
RpcMethod: "AddGovernanceFrameworkDocument",
Use: "add-governance-framework-document [id] [doc-language] [url] [doc-digest-sri] [version]",
Short: "Add a governance framework document",
Long: "Add a new governance framework document to a trust registry",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "id"},
{ProtoField: "doc_language"},
{ProtoField: "doc_url"},
{ProtoField: "doc_digest_sri"},
{ProtoField: "version"},
},
},
{
RpcMethod: "IncreaseActiveGovernanceFrameworkVersion",
Use: "increase-active-gf-version [id]",
Short: "Increase the active governance framework version",
Long: "Increase the active governance framework version for a trust registry. This can only be done by the controller of the trust registry and requires a document in the trust registry's default language for the new version.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "id"},
},
},
{
RpcMethod: "UpdateTrustRegistry",
Use: "update-trust-registry [id] [did]",
Short: "Update a trust registry",
Long: "Update a trust registry's DID and AKA URI. Only the controller can update a trust registry.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "id"},
{ProtoField: "did"},
},
FlagOptions: map[string]*autocliv1.FlagOptions{
"aka": {
Name: "aka",
DefaultValue: "",
Usage: "aka uri",
},
},
},
{
RpcMethod: "ArchiveTrustRegistry",
Use: "archive-trust-registry [id] [archive]",
Short: "Archive or unarchive a trust registry",
Long: "Set the archive status of a trust registry. Use true to archive, false to unarchive. Only the controller can archive/unarchive.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "id"},
{ProtoField: "archive"},
},
},
},
},
}
}
package trustregistry
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/verana-labs/verana-blockchain/x/trustregistry/keeper"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
// InitGenesis initializes the module's state from a provided genesis state.
func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
// Set module parameters
if err := k.SetParams(ctx, genState.Params); err != nil {
panic(fmt.Sprintf("failed to set params: %s", err))
}
// Initialize trust registries
for _, tr := range genState.TrustRegistries {
// Set trust registry
if err := k.TrustRegistry.Set(ctx, tr.Id, tr); err != nil {
panic(fmt.Sprintf("failed to set trust registry: %s", err))
}
// Set DID index
if err := k.TrustRegistryDIDIndex.Set(ctx, tr.Did, tr.Id); err != nil {
panic(fmt.Sprintf("failed to set DID index: %s", err))
}
}
// Initialize governance framework versions
for _, gfv := range genState.GovernanceFrameworkVersions {
if err := k.GFVersion.Set(ctx, gfv.Id, gfv); err != nil {
panic(fmt.Sprintf("failed to set governance framework version: %s", err))
}
}
// Initialize governance framework documents
for _, gfd := range genState.GovernanceFrameworkDocuments {
if err := k.GFDocument.Set(ctx, gfd.Id, gfd); err != nil {
panic(fmt.Sprintf("failed to set governance framework document: %s", err))
}
}
// Initialize counters
for _, counter := range genState.Counters {
if err := k.Counter.Set(ctx, counter.EntityType, counter.Value); err != nil {
panic(fmt.Sprintf("failed to set counter for %s: %s", counter.EntityType, err))
}
}
}
// ExportGenesis returns the module's exported genesis.
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {
// Initialize with default genesis and update params
genesis := types.DefaultGenesis()
genesis.Params = k.GetParams(ctx)
// Export all trust registries
trustRegistries := exportTrustRegistries(ctx, k)
genesis.TrustRegistries = trustRegistries
// Export all governance framework versions
gfVersions := exportGovernanceFrameworkVersions(ctx, k)
genesis.GovernanceFrameworkVersions = gfVersions
// Export all governance framework documents
gfDocuments := exportGovernanceFrameworkDocuments(ctx, k)
genesis.GovernanceFrameworkDocuments = gfDocuments
// Export all counters
counters := exportCounters(ctx, k)
genesis.Counters = counters
return genesis
}
// Helper functions for exporting each collection
func exportTrustRegistries(ctx sdk.Context, k keeper.Keeper) []types.TrustRegistry {
var trustRegistries []types.TrustRegistry
err := k.TrustRegistry.Walk(ctx, nil, func(key uint64, tr types.TrustRegistry) (bool, error) {
trustRegistries = append(trustRegistries, tr)
return false, nil
})
if err != nil {
panic(fmt.Sprintf("failed to export trust registries: %s", err))
}
return trustRegistries
}
func exportGovernanceFrameworkVersions(ctx sdk.Context, k keeper.Keeper) []types.GovernanceFrameworkVersion {
var gfVersions []types.GovernanceFrameworkVersion
err := k.GFVersion.Walk(ctx, nil, func(key uint64, gfv types.GovernanceFrameworkVersion) (bool, error) {
gfVersions = append(gfVersions, gfv)
return false, nil
})
if err != nil {
panic(fmt.Sprintf("failed to export governance framework versions: %s", err))
}
return gfVersions
}
func exportGovernanceFrameworkDocuments(ctx sdk.Context, k keeper.Keeper) []types.GovernanceFrameworkDocument {
var gfDocuments []types.GovernanceFrameworkDocument
err := k.GFDocument.Walk(ctx, nil, func(key uint64, gfd types.GovernanceFrameworkDocument) (bool, error) {
gfDocuments = append(gfDocuments, gfd)
return false, nil
})
if err != nil {
panic(fmt.Sprintf("failed to export governance framework documents: %s", err))
}
return gfDocuments
}
func exportCounters(ctx sdk.Context, k keeper.Keeper) []types.Counter {
var counters []types.Counter
// We need to export all the counters we use in the module
// Known counter keys from the code are: "tr", "gfv", "gfd"
counterKeys := []string{"tr", "gfv", "gfd"}
for _, key := range counterKeys {
value, err := k.Counter.Get(ctx, key)
// If the counter doesn't exist, we don't need to include it
if err == nil {
counters = append(counters, types.Counter{
EntityType: key,
Value: value,
})
}
}
return counters
}
package trustregistry
import (
"context"
"encoding/json"
"fmt"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
// this line is used by starport scaffolding # 1
modulev1 "github.com/verana-labs/verana-blockchain/api/veranablockchain/trustregistry/module"
"github.com/verana-labs/verana-blockchain/x/trustregistry/keeper"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
var (
_ module.AppModuleBasic = (*AppModule)(nil)
_ module.AppModuleSimulation = (*AppModule)(nil)
_ module.HasGenesis = (*AppModule)(nil)
_ module.HasInvariants = (*AppModule)(nil)
_ module.HasConsensusVersion = (*AppModule)(nil)
_ appmodule.AppModule = (*AppModule)(nil)
_ appmodule.HasBeginBlocker = (*AppModule)(nil)
_ appmodule.HasEndBlocker = (*AppModule)(nil)
)
// ----------------------------------------------------------------------------
// AppModuleBasic
// ----------------------------------------------------------------------------
// AppModuleBasic implements the AppModuleBasic interface that defines the
// independent methods a Cosmos SDK module needs to implement.
type AppModuleBasic struct {
cdc codec.BinaryCodec
}
func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic {
return AppModuleBasic{cdc: cdc}
}
// Name returns the name of the module as a string.
func (AppModuleBasic) Name() string {
return types.ModuleName
}
// RegisterLegacyAminoCodec registers the amino codec for the module, which is used
// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message.
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) {
types.RegisterInterfaces(reg)
}
// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage.
// The default GenesisState need to be defined by the module developer and is primarily used for testing.
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(types.DefaultGenesis())
}
// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form.
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
var genState types.GenesisState
if err := cdc.UnmarshalJSON(bz, &genState); err != nil {
return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err)
}
return genState.Validate()
}
// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil {
panic(err)
}
}
// ----------------------------------------------------------------------------
// AppModule
// ----------------------------------------------------------------------------
// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement
type AppModule struct {
AppModuleBasic
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
}
func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
accountKeeper types.AccountKeeper,
bankKeeper types.BankKeeper,
) AppModule {
return AppModule{
AppModuleBasic: NewAppModuleBasic(cdc),
keeper: keeper,
accountKeeper: accountKeeper,
bankKeeper: bankKeeper,
}
}
// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServerImpl(am.keeper))
}
// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted)
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}
// InitGenesis performs the module's genesis initialization. It returns no validator updates.
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) {
var genState types.GenesisState
// Initialize global index to index in genesis state
cdc.MustUnmarshalJSON(gs, &genState)
InitGenesis(ctx, am.keeper, genState)
}
// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
genState := ExportGenesis(ctx, am.keeper)
return cdc.MustMarshalJSON(genState)
}
// ConsensusVersion is a sequence number for state-breaking change of the module.
// It should be incremented on each consensus-breaking change introduced by the module.
// To avoid wrong/empty versions, the initial version should be set to 1.
func (AppModule) ConsensusVersion() uint64 { return 1 }
// BeginBlock contains the logic that is automatically triggered at the beginning of each block.
// The begin block implementation is optional.
func (am AppModule) BeginBlock(_ context.Context) error {
return nil
}
// EndBlock contains the logic that is automatically triggered at the end of each block.
// The end block implementation is optional.
func (am AppModule) EndBlock(_ context.Context) error {
return nil
}
// IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (am AppModule) IsOnePerModuleType() {}
// IsAppModule implements the appmodule.AppModule interface.
func (am AppModule) IsAppModule() {}
// ----------------------------------------------------------------------------
// App Wiring Setup
// ----------------------------------------------------------------------------
func init() {
appmodule.Register(
&modulev1.Module{},
appmodule.Provide(ProvideModule),
)
}
type ModuleInputs struct {
depinject.In
StoreService store.KVStoreService
Cdc codec.Codec
Config *modulev1.Module
Logger log.Logger
AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
TrustDepositKeeper types.TrustDepositKeeper `optional:"true"`
}
type ModuleOutputs struct {
depinject.Out
TrustregistryKeeper keeper.Keeper
Module appmodule.AppModule
}
func ProvideModule(in ModuleInputs) ModuleOutputs {
// default to governance authority if not provided
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
k := keeper.NewKeeper(
in.Cdc,
in.StoreService,
in.Logger,
authority.String(),
in.TrustDepositKeeper,
)
m := NewAppModule(
in.Cdc,
k,
in.AccountKeeper,
in.BankKeeper,
)
return ModuleOutputs{TrustregistryKeeper: k, Module: m}
}
package trustregistry
import (
"math/rand"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"github.com/verana-labs/verana-blockchain/testutil/sample"
trustregistrysimulation "github.com/verana-labs/verana-blockchain/x/trustregistry/simulation"
"github.com/verana-labs/verana-blockchain/x/trustregistry/types"
)
// avoid unused import issue
var (
_ = trustregistrysimulation.FindAccount
_ = rand.Rand{}
_ = sample.AccAddress
_ = sdk.AccAddress{}
_ = simulation.MsgEntryKind
)
const (
// this line is used by starport scaffolding # simapp/module/const
)
// GenerateGenesisState creates a randomized GenState of the module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs := make([]string, len(simState.Accounts))
for i, acc := range simState.Accounts {
accs[i] = acc.Address.String()
}
trustregistryGenesis := types.GenesisState{
Params: types.DefaultParams(),
// this line is used by starport scaffolding # simapp/module/genesisState
}
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&trustregistryGenesis)
}
// RegisterStoreDecoder registers a decoder.
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {}
// WeightedOperations returns the all the gov module operations with their respective weights.
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation {
operations := make([]simtypes.WeightedOperation, 0)
// this line is used by starport scaffolding # simapp/module/operation
return operations
}
// ProposalMsgs returns msgs used for governance proposals for simulations.
func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg {
return []simtypes.WeightedProposalMsg{
// this line is used by starport scaffolding # simapp/module/OpMsg
}
}
package simulation
import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)
// FindAccount find a specific address from an account list
func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) {
creator, err := sdk.AccAddressFromBech32(address)
if err != nil {
panic(err)
}
return simtypes.FindAccount(accs, creator)
}
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
// this line is used by starport scaffolding # 1
)
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgCreateTrustRegistry{}, "/vpr/v1/tr/create-trust-registry")
legacy.RegisterAminoMsg(cdc, &MsgAddGovernanceFrameworkDocument{}, "/vpr/v1/tr/add-gfd")
legacy.RegisterAminoMsg(cdc, &MsgIncreaseActiveGovernanceFrameworkVersion{}, "/vpr/v1/tr/increase-active-gf-version")
legacy.RegisterAminoMsg(cdc, &MsgUpdateTrustRegistry{}, "/vpr/v1/tr/update-trust-registry")
}
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// this line is used by starport scaffolding # 3
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgUpdateParams{},
&MsgCreateTrustRegistry{},
&MsgAddGovernanceFrameworkDocument{},
&MsgIncreaseActiveGovernanceFrameworkVersion{},
&MsgUpdateTrustRegistry{},
&MsgArchiveTrustRegistry{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
package types
import (
"fmt"
)
// DefaultGenesis returns the default genesis state
func DefaultGenesis() *GenesisState {
return &GenesisState{
Params: DefaultParams(),
TrustRegistries: []TrustRegistry{},
GovernanceFrameworkVersions: []GovernanceFrameworkVersion{},
GovernanceFrameworkDocuments: []GovernanceFrameworkDocument{},
Counters: []Counter{},
}
}
// Validate performs basic genesis state validation returning an error upon any
// failure.
func (gs GenesisState) Validate() error {
// Validate params
if err := gs.Params.Validate(); err != nil {
return err
}
// Validate trust registries
seenTrustRegistryIDs := make(map[uint64]bool)
seenDIDs := make(map[string]bool)
for _, tr := range gs.TrustRegistries {
// Check for duplicate IDs
if seenTrustRegistryIDs[tr.Id] {
return fmt.Errorf("duplicate trust registry ID found in genesis state: %d", tr.Id)
}
seenTrustRegistryIDs[tr.Id] = true
// Check for duplicate DIDs
if seenDIDs[tr.Did] {
return fmt.Errorf("duplicate DID found in genesis state: %s", tr.Did)
}
seenDIDs[tr.Did] = true
}
// Validate governance framework versions
seenGFVersionIDs := make(map[uint64]bool)
for _, gfv := range gs.GovernanceFrameworkVersions {
// Check for duplicate IDs
if seenGFVersionIDs[gfv.Id] {
return fmt.Errorf("duplicate governance framework version ID found in genesis state: %d", gfv.Id)
}
seenGFVersionIDs[gfv.Id] = true
// Check that trust registry exists
if !seenTrustRegistryIDs[gfv.TrId] {
return fmt.Errorf("governance framework version references non-existent trust registry ID: %d", gfv.TrId)
}
}
// Validate governance framework documents
seenGFDocumentIDs := make(map[uint64]bool)
for _, gfd := range gs.GovernanceFrameworkDocuments {
// Check for duplicate IDs
if seenGFDocumentIDs[gfd.Id] {
return fmt.Errorf("duplicate governance framework document ID found in genesis state: %d", gfd.Id)
}
seenGFDocumentIDs[gfd.Id] = true
// Check that governance framework version exists
if !seenGFVersionIDs[gfd.GfvId] {
return fmt.Errorf("governance framework document references non-existent version ID: %d", gfd.GfvId)
}
}
// Validate counters
counterMap := make(map[string]uint64) // Temporary map for validation
for _, counter := range gs.Counters {
// Check for duplicate counter entity types
if _, exists := counterMap[counter.EntityType]; exists {
return fmt.Errorf("duplicate counter entity type found: %s", counter.EntityType)
}
counterMap[counter.EntityType] = counter.Value
// Only validate known counter types
if counter.EntityType != "tr" && counter.EntityType != "gfv" && counter.EntityType != "gfd" {
return fmt.Errorf("unknown counter entity type: %s", counter.EntityType)
}
// Counter values should be valid (e.g., not less than the highest ID of the corresponding entity)
switch counter.EntityType {
case "tr":
for _, tr := range gs.TrustRegistries {
if tr.Id > counter.Value {
return fmt.Errorf("trust registry counter (%d) is less than maximum trust registry ID (%d)", counter.Value, tr.Id)
}
}
case "gfv":
for _, gfv := range gs.GovernanceFrameworkVersions {
if gfv.Id > counter.Value {
return fmt.Errorf("governance framework version counter (%d) is less than maximum version ID (%d)", counter.Value, gfv.Id)
}
}
case "gfd":
for _, gfd := range gs.GovernanceFrameworkDocuments {
if gfd.Id > counter.Value {
return fmt.Errorf("governance framework document counter (%d) is less than maximum document ID (%d)", counter.Value, gfd.Id)
}
}
}
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustregistry/genesis.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Counter defines an entity type and its current counter value
type Counter struct {
EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *Counter) Reset() { *m = Counter{} }
func (m *Counter) String() string { return proto.CompactTextString(m) }
func (*Counter) ProtoMessage() {}
func (*Counter) Descriptor() ([]byte, []int) {
return fileDescriptor_ebaeef8e9d563df6, []int{0}
}
func (m *Counter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Counter) XXX_Merge(src proto.Message) {
xxx_messageInfo_Counter.Merge(m, src)
}
func (m *Counter) XXX_Size() int {
return m.Size()
}
func (m *Counter) XXX_DiscardUnknown() {
xxx_messageInfo_Counter.DiscardUnknown(m)
}
var xxx_messageInfo_Counter proto.InternalMessageInfo
func (m *Counter) GetEntityType() string {
if m != nil {
return m.EntityType
}
return ""
}
func (m *Counter) GetValue() uint64 {
if m != nil {
return m.Value
}
return 0
}
// GenesisState defines the trustregistry module's genesis state.
type GenesisState struct {
// params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// Collection of all trust registries
TrustRegistries []TrustRegistry `protobuf:"bytes,2,rep,name=trust_registries,json=trustRegistries,proto3" json:"trust_registries"`
// Collection of all governance framework versions
GovernanceFrameworkVersions []GovernanceFrameworkVersion `protobuf:"bytes,3,rep,name=governance_framework_versions,json=governanceFrameworkVersions,proto3" json:"governance_framework_versions"`
// Collection of all governance framework documents
GovernanceFrameworkDocuments []GovernanceFrameworkDocument `protobuf:"bytes,4,rep,name=governance_framework_documents,json=governanceFrameworkDocuments,proto3" json:"governance_framework_documents"`
// List of counters by entity type (tr, gfv, gfd)
Counters []Counter `protobuf:"bytes,5,rep,name=counters,proto3" json:"counters"`
}
func (m *GenesisState) Reset() { *m = GenesisState{} }
func (m *GenesisState) String() string { return proto.CompactTextString(m) }
func (*GenesisState) ProtoMessage() {}
func (*GenesisState) Descriptor() ([]byte, []int) {
return fileDescriptor_ebaeef8e9d563df6, []int{1}
}
func (m *GenesisState) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GenesisState) XXX_Merge(src proto.Message) {
xxx_messageInfo_GenesisState.Merge(m, src)
}
func (m *GenesisState) XXX_Size() int {
return m.Size()
}
func (m *GenesisState) XXX_DiscardUnknown() {
xxx_messageInfo_GenesisState.DiscardUnknown(m)
}
var xxx_messageInfo_GenesisState proto.InternalMessageInfo
func (m *GenesisState) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
func (m *GenesisState) GetTrustRegistries() []TrustRegistry {
if m != nil {
return m.TrustRegistries
}
return nil
}
func (m *GenesisState) GetGovernanceFrameworkVersions() []GovernanceFrameworkVersion {
if m != nil {
return m.GovernanceFrameworkVersions
}
return nil
}
func (m *GenesisState) GetGovernanceFrameworkDocuments() []GovernanceFrameworkDocument {
if m != nil {
return m.GovernanceFrameworkDocuments
}
return nil
}
func (m *GenesisState) GetCounters() []Counter {
if m != nil {
return m.Counters
}
return nil
}
func init() {
proto.RegisterType((*Counter)(nil), "veranablockchain.trustregistry.Counter")
proto.RegisterType((*GenesisState)(nil), "veranablockchain.trustregistry.GenesisState")
}
func init() {
proto.RegisterFile("veranablockchain/trustregistry/genesis.proto", fileDescriptor_ebaeef8e9d563df6)
}
var fileDescriptor_ebaeef8e9d563df6 = []byte{
// 435 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x6b, 0x14, 0x31,
0x14, 0xc7, 0x37, 0xed, 0xb6, 0xda, 0xac, 0xa0, 0x86, 0x1e, 0x86, 0x55, 0xd3, 0xa5, 0x07, 0x5d,
0xaa, 0x9d, 0x81, 0x7a, 0x53, 0x10, 0x59, 0xc5, 0xd2, 0x9b, 0x8c, 0x45, 0xc4, 0x83, 0x4b, 0x66,
0x7c, 0xa6, 0xa1, 0x3b, 0xc9, 0x90, 0x64, 0x46, 0xe7, 0x2e, 0x78, 0xf5, 0xe2, 0x77, 0xf0, 0xe8,
0xc7, 0xe8, 0xb1, 0x47, 0x4f, 0x22, 0xbb, 0x07, 0xbf, 0x86, 0x4c, 0x92, 0x96, 0x2a, 0xad, 0x03,
0x5e, 0x96, 0xf7, 0x1e, 0xbf, 0xfc, 0xfe, 0x6f, 0x87, 0x87, 0xef, 0xd5, 0xa0, 0x99, 0x64, 0xd9,
0x4c, 0xe5, 0x87, 0xf9, 0x01, 0x13, 0x32, 0xb1, 0xba, 0x32, 0x56, 0x03, 0x17, 0xc6, 0xea, 0x26,
0xe1, 0x20, 0xc1, 0x08, 0x13, 0x97, 0x5a, 0x59, 0x45, 0xe8, 0xdf, 0x74, 0xfc, 0x07, 0x3d, 0xbc,
0xce, 0x0a, 0x21, 0x55, 0xe2, 0x7e, 0xfd, 0x93, 0xe1, 0x3a, 0x57, 0x5c, 0xb9, 0x32, 0x69, 0xab,
0x30, 0xbd, 0xdb, 0x11, 0x5b, 0x32, 0xcd, 0x8a, 0x90, 0x3a, 0xdc, 0xea, 0x80, 0x6d, 0x53, 0x42,
0x60, 0x37, 0x1f, 0xe3, 0x4b, 0x4f, 0x54, 0x25, 0x2d, 0x68, 0xb2, 0x81, 0x07, 0x20, 0xad, 0xb0,
0xcd, 0xb4, 0x05, 0x22, 0x34, 0x42, 0xe3, 0xb5, 0x14, 0xfb, 0xd1, 0x7e, 0x53, 0x02, 0x59, 0xc7,
0x2b, 0x35, 0x9b, 0x55, 0x10, 0x2d, 0x8d, 0xd0, 0xb8, 0x9f, 0xfa, 0x66, 0xf3, 0x4b, 0x1f, 0x5f,
0xd9, 0xf5, 0xff, 0xfa, 0x85, 0x65, 0x16, 0xc8, 0x1e, 0x5e, 0xf5, 0xeb, 0x38, 0xc5, 0x60, 0xe7,
0x76, 0xfc, 0xef, 0xaf, 0x10, 0x3f, 0x77, 0xf4, 0x64, 0xed, 0xe8, 0xc7, 0x46, 0xef, 0xeb, 0xaf,
0x6f, 0x5b, 0x28, 0x0d, 0x02, 0xf2, 0x06, 0x5f, 0x73, 0xe8, 0x34, 0xb0, 0x02, 0x4c, 0xb4, 0x34,
0x5a, 0x1e, 0x0f, 0x76, 0xb6, 0xbb, 0xa4, 0xfb, 0x6d, 0x97, 0x86, 0x6e, 0xd2, 0x6f, 0xdd, 0xe9,
0x55, 0x7b, 0x66, 0x28, 0xc0, 0x90, 0x8f, 0x08, 0xdf, 0xe2, 0xaa, 0x06, 0x2d, 0x99, 0xcc, 0x61,
0xfa, 0x4e, 0xb3, 0x02, 0xde, 0x2b, 0x7d, 0x38, 0xad, 0x41, 0x1b, 0xa1, 0xa4, 0x89, 0x96, 0x5d,
0xda, 0x83, 0xae, 0xb4, 0xdd, 0x53, 0xc9, 0xb3, 0x13, 0xc7, 0x4b, 0xaf, 0x08, 0xd1, 0x37, 0xf8,
0x85, 0x84, 0x21, 0x9f, 0x10, 0xa6, 0xe7, 0xae, 0xf1, 0x56, 0xe5, 0x55, 0x01, 0xd2, 0x9a, 0xa8,
0xef, 0xf6, 0x78, 0xf8, 0x1f, 0x7b, 0x3c, 0x0d, 0x8e, 0xb0, 0xc8, 0x4d, 0x7e, 0x31, 0x62, 0xc8,
0x1e, 0xbe, 0x9c, 0xfb, 0x73, 0x30, 0xd1, 0x8a, 0x8b, 0xbc, 0xd3, 0x15, 0x19, 0xce, 0x27, 0xe8,
0x4f, 0x9f, 0x4f, 0x5e, 0x1d, 0xcd, 0x29, 0x3a, 0x9e, 0x53, 0xf4, 0x73, 0x4e, 0xd1, 0xe7, 0x05,
0xed, 0x1d, 0x2f, 0x68, 0xef, 0xfb, 0x82, 0xf6, 0x5e, 0x3f, 0xe2, 0xc2, 0x1e, 0x54, 0x59, 0x9c,
0xab, 0x22, 0xf1, 0xf2, 0xed, 0x19, 0xcb, 0xcc, 0x49, 0x7d, 0xe6, 0x6e, 0x3f, 0x9c, 0x77, 0xb9,
0xd9, 0xaa, 0x3b, 0xdd, 0xfb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xab, 0x99, 0xc8, 0xc8, 0x8c,
0x03, 0x00, 0x00,
}
func (m *Counter) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Counter) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Counter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Value != 0 {
i = encodeVarintGenesis(dAtA, i, uint64(m.Value))
i--
dAtA[i] = 0x10
}
if len(m.EntityType) > 0 {
i -= len(m.EntityType)
copy(dAtA[i:], m.EntityType)
i = encodeVarintGenesis(dAtA, i, uint64(len(m.EntityType)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *GenesisState) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Counters) > 0 {
for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
}
if len(m.GovernanceFrameworkDocuments) > 0 {
for iNdEx := len(m.GovernanceFrameworkDocuments) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.GovernanceFrameworkDocuments[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
}
if len(m.GovernanceFrameworkVersions) > 0 {
for iNdEx := len(m.GovernanceFrameworkVersions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.GovernanceFrameworkVersions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
}
}
if len(m.TrustRegistries) > 0 {
for iNdEx := len(m.TrustRegistries) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.TrustRegistries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenesis(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int {
offset -= sovGenesis(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Counter) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.EntityType)
if l > 0 {
n += 1 + l + sovGenesis(uint64(l))
}
if m.Value != 0 {
n += 1 + sovGenesis(uint64(m.Value))
}
return n
}
func (m *GenesisState) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovGenesis(uint64(l))
if len(m.TrustRegistries) > 0 {
for _, e := range m.TrustRegistries {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
if len(m.GovernanceFrameworkVersions) > 0 {
for _, e := range m.GovernanceFrameworkVersions {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
if len(m.GovernanceFrameworkDocuments) > 0 {
for _, e := range m.GovernanceFrameworkDocuments {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
if len(m.Counters) > 0 {
for _, e := range m.Counters {
l = e.Size()
n += 1 + l + sovGenesis(uint64(l))
}
}
return n
}
func sovGenesis(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozGenesis(x uint64) (n int) {
return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Counter) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Counter: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Counter: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field EntityType", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.EntityType = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
}
m.Value = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Value |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GenesisState) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GenesisState: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustRegistries", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.TrustRegistries = append(m.TrustRegistries, TrustRegistry{})
if err := m.TrustRegistries[len(m.TrustRegistries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field GovernanceFrameworkVersions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.GovernanceFrameworkVersions = append(m.GovernanceFrameworkVersions, GovernanceFrameworkVersion{})
if err := m.GovernanceFrameworkVersions[len(m.GovernanceFrameworkVersions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field GovernanceFrameworkDocuments", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.GovernanceFrameworkDocuments = append(m.GovernanceFrameworkDocuments, GovernanceFrameworkDocument{})
if err := m.GovernanceFrameworkDocuments[len(m.GovernanceFrameworkDocuments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenesis
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenesis
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenesis
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Counters = append(m.Counters, Counter{})
if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenesis(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenesis
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipGenesis(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowGenesis
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthGenesis
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupGenesis
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthGenesis
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
package types
import (
"cosmossdk.io/collections"
)
const (
// ModuleName defines the module name
ModuleName = "trustregistry"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_trustregistry"
)
var (
ParamsKey = collections.NewPrefix(0)
TrustRegistryKey = collections.NewPrefix(1) // Primary Trust Registry storage - using ID as key
TrustRegistryDIDIndex = collections.NewPrefix(2) // Index for DID lookups
GovernanceFrameworkVersionKey = collections.NewPrefix(3)
GovernanceFrameworkDocumentKey = collections.NewPrefix(4)
CounterKey = collections.NewPrefix(5)
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
package types
import (
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
)
var _ sdk.Msg = &MsgUpdateParams{}
// ValidateBasic does a sanity check on the provided data.
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errorsmod.Wrap(err, "invalid authority address")
}
if err := m.Params.Validate(); err != nil {
return err
}
return nil
}
package types
import (
"fmt"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
var _ paramtypes.ParamSet = (*Params)(nil)
const (
// Default parameter values
DefaultTrustUnitPrice = uint64(1000000) // 1.0 token in utoken representation
DefaultTrustRegistryTrustDeposit = uint64(10) // 10 trust units
)
// ParamKeyTable the param key table for launch module
func ParamKeyTable() paramtypes.KeyTable {
return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
// NewParams creates a new Params instance
func NewParams(
trustUnitPrice uint64,
trustRegistryTrustDeposit uint64,
) Params {
return Params{
TrustUnitPrice: trustUnitPrice,
TrustRegistryTrustDeposit: trustRegistryTrustDeposit,
}
}
// DefaultParams returns a default set of parameters
func DefaultParams() Params {
return NewParams(
DefaultTrustUnitPrice,
DefaultTrustRegistryTrustDeposit,
)
}
// ParamSetPairs get the params.ParamSet
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(
[]byte("TrustUnitPrice"),
&p.TrustUnitPrice,
validatePositiveUint64,
),
paramtypes.NewParamSetPair(
[]byte("TrustRegistryTrustDeposit"),
&p.TrustRegistryTrustDeposit,
validatePositiveUint64,
),
}
}
// Validate validates the set of params
func (p Params) Validate() error {
if p.TrustUnitPrice == 0 {
return fmt.Errorf("trust unit price must be positive")
}
if p.TrustRegistryTrustDeposit == 0 {
return fmt.Errorf("trust registry trust deposit must be positive")
}
return nil
}
// Parameter validation helpers
func validatePositiveUint64(i interface{}) error {
v, ok := i.(uint64)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
if v == 0 {
return fmt.Errorf("value must be positive: %d", v)
}
return nil
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustregistry/params.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the parameters for the module.
type Params struct {
TrustRegistryTrustDeposit uint64 `protobuf:"varint,1,opt,name=trust_registry_trust_deposit,json=trustRegistryTrustDeposit,proto3" json:"trust_registry_trust_deposit,omitempty"`
TrustUnitPrice uint64 `protobuf:"varint,2,opt,name=trust_unit_price,json=trustUnitPrice,proto3" json:"trust_unit_price,omitempty"`
}
func (m *Params) Reset() { *m = Params{} }
func (m *Params) String() string { return proto.CompactTextString(m) }
func (*Params) ProtoMessage() {}
func (*Params) Descriptor() ([]byte, []int) {
return fileDescriptor_7acf21b743435cb6, []int{0}
}
func (m *Params) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Params.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_Params.Merge(m, src)
}
func (m *Params) XXX_Size() int {
return m.Size()
}
func (m *Params) XXX_DiscardUnknown() {
xxx_messageInfo_Params.DiscardUnknown(m)
}
var xxx_messageInfo_Params proto.InternalMessageInfo
func (m *Params) GetTrustRegistryTrustDeposit() uint64 {
if m != nil {
return m.TrustRegistryTrustDeposit
}
return 0
}
func (m *Params) GetTrustUnitPrice() uint64 {
if m != nil {
return m.TrustUnitPrice
}
return 0
}
func init() {
proto.RegisterType((*Params)(nil), "veranablockchain.trustregistry.Params")
}
func init() {
proto.RegisterFile("veranablockchain/trustregistry/params.proto", fileDescriptor_7acf21b743435cb6)
}
var fileDescriptor_7acf21b743435cb6 = []byte{
// 258 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x4b, 0x2d, 0x4a,
0xcc, 0x4b, 0x4c, 0xca, 0xc9, 0x4f, 0xce, 0x4e, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x2f, 0x29, 0x2a,
0x2d, 0x2e, 0x29, 0x4a, 0x4d, 0xcf, 0x2c, 0x2e, 0x29, 0xaa, 0xd4, 0x2f, 0x48, 0x2c, 0x4a, 0xcc,
0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x43, 0x57, 0xac, 0x87, 0xa2, 0x58, 0x4a,
0x30, 0x31, 0x37, 0x33, 0x2f, 0x5f, 0x1f, 0x4c, 0x42, 0xb4, 0x48, 0x89, 0xa4, 0xe7, 0xa7, 0xe7,
0x83, 0x99, 0xfa, 0x20, 0x16, 0x44, 0x54, 0x69, 0x29, 0x23, 0x17, 0x5b, 0x00, 0xd8, 0x64, 0x21,
0x7b, 0x2e, 0x19, 0xb0, 0x21, 0xf1, 0x30, 0x53, 0xe2, 0x21, 0xdc, 0x94, 0xd4, 0x82, 0xfc, 0xe2,
0xcc, 0x12, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x49, 0xb0, 0x60, 0x10, 0x54, 0x49, 0x08,
0x88, 0xe3, 0x02, 0x51, 0x20, 0xa4, 0xc1, 0x25, 0x00, 0xd1, 0x51, 0x9a, 0x97, 0x59, 0x12, 0x5f,
0x50, 0x94, 0x99, 0x9c, 0x2a, 0xc1, 0x04, 0xd6, 0xc4, 0x07, 0x16, 0x0f, 0xcd, 0xcb, 0x2c, 0x09,
0x00, 0x89, 0x5a, 0x19, 0xbc, 0x58, 0x20, 0xcf, 0xd8, 0xf5, 0x7c, 0x83, 0x96, 0x3a, 0x86, 0xa7,
0x2b, 0xd0, 0xbc, 0x0d, 0x71, 0x9c, 0x53, 0xc4, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31,
0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb,
0x31, 0x44, 0xd9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x43, 0x4c,
0xd3, 0xcd, 0x49, 0x4c, 0x2a, 0x86, 0xb1, 0xf1, 0x18, 0x5d, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4,
0x06, 0x0e, 0x08, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x85, 0x7a, 0xd2, 0xfe, 0x80, 0x01,
0x00, 0x00,
}
func (this *Params) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Params)
if !ok {
that2, ok := that.(Params)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.TrustRegistryTrustDeposit != that1.TrustRegistryTrustDeposit {
return false
}
if this.TrustUnitPrice != that1.TrustUnitPrice {
return false
}
return true
}
func (m *Params) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Params) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.TrustUnitPrice != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.TrustUnitPrice))
i--
dAtA[i] = 0x10
}
if m.TrustRegistryTrustDeposit != 0 {
i = encodeVarintParams(dAtA, i, uint64(m.TrustRegistryTrustDeposit))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
offset -= sovParams(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Params) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.TrustRegistryTrustDeposit != 0 {
n += 1 + sovParams(uint64(m.TrustRegistryTrustDeposit))
}
if m.TrustUnitPrice != 0 {
n += 1 + sovParams(uint64(m.TrustUnitPrice))
}
return n
}
func sovParams(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Params: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustRegistryTrustDeposit", wireType)
}
m.TrustRegistryTrustDeposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrustRegistryTrustDeposit |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustUnitPrice", wireType)
}
m.TrustUnitPrice = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowParams
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrustUnitPrice |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipParams(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthParams
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipParams(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowParams
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthParams
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupParams
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthParams
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowParams = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustregistry/query.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/query"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryParamsRequest is request type for the Query/Params RPC method.
type QueryParamsRequest struct {
}
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
func (*QueryParamsRequest) ProtoMessage() {}
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3e500ee22150b7e8, []int{0}
}
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
}
func (m *QueryParamsRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
// QueryParamsResponse is response type for the Query/Params RPC method.
type QueryParamsResponse struct {
// params holds all the parameters of this module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
func (*QueryParamsResponse) ProtoMessage() {}
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3e500ee22150b7e8, []int{1}
}
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
}
func (m *QueryParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
func (m *QueryParamsResponse) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// QueryGetTrustRegistryRequest is the request type for the Query/GetTrustRegistry RPC method.
type QueryGetTrustRegistryRequest struct {
TrId uint64 `protobuf:"varint,1,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
ActiveGfOnly bool `protobuf:"varint,2,opt,name=active_gf_only,json=activeGfOnly,proto3" json:"active_gf_only,omitempty"`
PreferredLanguage string `protobuf:"bytes,3,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
}
func (m *QueryGetTrustRegistryRequest) Reset() { *m = QueryGetTrustRegistryRequest{} }
func (m *QueryGetTrustRegistryRequest) String() string { return proto.CompactTextString(m) }
func (*QueryGetTrustRegistryRequest) ProtoMessage() {}
func (*QueryGetTrustRegistryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3e500ee22150b7e8, []int{2}
}
func (m *QueryGetTrustRegistryRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetTrustRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetTrustRegistryRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetTrustRegistryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetTrustRegistryRequest.Merge(m, src)
}
func (m *QueryGetTrustRegistryRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryGetTrustRegistryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetTrustRegistryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetTrustRegistryRequest proto.InternalMessageInfo
func (m *QueryGetTrustRegistryRequest) GetTrId() uint64 {
if m != nil {
return m.TrId
}
return 0
}
func (m *QueryGetTrustRegistryRequest) GetActiveGfOnly() bool {
if m != nil {
return m.ActiveGfOnly
}
return false
}
func (m *QueryGetTrustRegistryRequest) GetPreferredLanguage() string {
if m != nil {
return m.PreferredLanguage
}
return ""
}
// QueryGetTrustRegistryResponse is the response type for the Query/GetTrustRegistry RPC method.
type QueryGetTrustRegistryResponse struct {
TrustRegistry *TrustRegistryWithVersions `protobuf:"bytes,1,opt,name=trust_registry,json=trustRegistry,proto3" json:"trust_registry,omitempty"`
}
func (m *QueryGetTrustRegistryResponse) Reset() { *m = QueryGetTrustRegistryResponse{} }
func (m *QueryGetTrustRegistryResponse) String() string { return proto.CompactTextString(m) }
func (*QueryGetTrustRegistryResponse) ProtoMessage() {}
func (*QueryGetTrustRegistryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3e500ee22150b7e8, []int{3}
}
func (m *QueryGetTrustRegistryResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryGetTrustRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryGetTrustRegistryResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryGetTrustRegistryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGetTrustRegistryResponse.Merge(m, src)
}
func (m *QueryGetTrustRegistryResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryGetTrustRegistryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGetTrustRegistryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGetTrustRegistryResponse proto.InternalMessageInfo
func (m *QueryGetTrustRegistryResponse) GetTrustRegistry() *TrustRegistryWithVersions {
if m != nil {
return m.TrustRegistry
}
return nil
}
// QueryListTrustRegistriesRequest is the request type for the Query/ListTrustRegistries RPC method.
type QueryListTrustRegistriesRequest struct {
Controller string `protobuf:"bytes,1,opt,name=controller,proto3" json:"controller,omitempty"`
ModifiedAfter *time.Time `protobuf:"bytes,2,opt,name=modified_after,json=modifiedAfter,proto3,stdtime" json:"modified_after,omitempty"`
ActiveGfOnly bool `protobuf:"varint,3,opt,name=active_gf_only,json=activeGfOnly,proto3" json:"active_gf_only,omitempty"`
PreferredLanguage string `protobuf:"bytes,4,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
ResponseMaxSize uint32 `protobuf:"varint,5,opt,name=response_max_size,json=responseMaxSize,proto3" json:"response_max_size,omitempty"`
}
func (m *QueryListTrustRegistriesRequest) Reset() { *m = QueryListTrustRegistriesRequest{} }
func (m *QueryListTrustRegistriesRequest) String() string { return proto.CompactTextString(m) }
func (*QueryListTrustRegistriesRequest) ProtoMessage() {}
func (*QueryListTrustRegistriesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3e500ee22150b7e8, []int{4}
}
func (m *QueryListTrustRegistriesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListTrustRegistriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListTrustRegistriesRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListTrustRegistriesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListTrustRegistriesRequest.Merge(m, src)
}
func (m *QueryListTrustRegistriesRequest) XXX_Size() int {
return m.Size()
}
func (m *QueryListTrustRegistriesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListTrustRegistriesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListTrustRegistriesRequest proto.InternalMessageInfo
func (m *QueryListTrustRegistriesRequest) GetController() string {
if m != nil {
return m.Controller
}
return ""
}
func (m *QueryListTrustRegistriesRequest) GetModifiedAfter() *time.Time {
if m != nil {
return m.ModifiedAfter
}
return nil
}
func (m *QueryListTrustRegistriesRequest) GetActiveGfOnly() bool {
if m != nil {
return m.ActiveGfOnly
}
return false
}
func (m *QueryListTrustRegistriesRequest) GetPreferredLanguage() string {
if m != nil {
return m.PreferredLanguage
}
return ""
}
func (m *QueryListTrustRegistriesRequest) GetResponseMaxSize() uint32 {
if m != nil {
return m.ResponseMaxSize
}
return 0
}
// QueryListTrustRegistriesResponse is the response type for the Query/ListTrustRegistries RPC method.
type QueryListTrustRegistriesResponse struct {
TrustRegistries []TrustRegistryWithVersions `protobuf:"bytes,1,rep,name=trust_registries,json=trustRegistries,proto3" json:"trust_registries"`
}
func (m *QueryListTrustRegistriesResponse) Reset() { *m = QueryListTrustRegistriesResponse{} }
func (m *QueryListTrustRegistriesResponse) String() string { return proto.CompactTextString(m) }
func (*QueryListTrustRegistriesResponse) ProtoMessage() {}
func (*QueryListTrustRegistriesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3e500ee22150b7e8, []int{5}
}
func (m *QueryListTrustRegistriesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *QueryListTrustRegistriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_QueryListTrustRegistriesResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *QueryListTrustRegistriesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryListTrustRegistriesResponse.Merge(m, src)
}
func (m *QueryListTrustRegistriesResponse) XXX_Size() int {
return m.Size()
}
func (m *QueryListTrustRegistriesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_QueryListTrustRegistriesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_QueryListTrustRegistriesResponse proto.InternalMessageInfo
func (m *QueryListTrustRegistriesResponse) GetTrustRegistries() []TrustRegistryWithVersions {
if m != nil {
return m.TrustRegistries
}
return nil
}
func init() {
proto.RegisterType((*QueryParamsRequest)(nil), "veranablockchain.trustregistry.QueryParamsRequest")
proto.RegisterType((*QueryParamsResponse)(nil), "veranablockchain.trustregistry.QueryParamsResponse")
proto.RegisterType((*QueryGetTrustRegistryRequest)(nil), "veranablockchain.trustregistry.QueryGetTrustRegistryRequest")
proto.RegisterType((*QueryGetTrustRegistryResponse)(nil), "veranablockchain.trustregistry.QueryGetTrustRegistryResponse")
proto.RegisterType((*QueryListTrustRegistriesRequest)(nil), "veranablockchain.trustregistry.QueryListTrustRegistriesRequest")
proto.RegisterType((*QueryListTrustRegistriesResponse)(nil), "veranablockchain.trustregistry.QueryListTrustRegistriesResponse")
}
func init() {
proto.RegisterFile("veranablockchain/trustregistry/query.proto", fileDescriptor_3e500ee22150b7e8)
}
var fileDescriptor_3e500ee22150b7e8 = []byte{
// 745 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x4d, 0x6f, 0x13, 0x3d,
0x10, 0xc7, 0xe3, 0x26, 0xad, 0x5a, 0xf7, 0x49, 0x5f, 0x9c, 0x3c, 0x52, 0x9e, 0xa8, 0x4f, 0x12,
0x45, 0x08, 0x45, 0x41, 0xdd, 0x55, 0xd3, 0x0b, 0x48, 0xbc, 0x35, 0x97, 0xaa, 0xa2, 0x08, 0xd8,
0x56, 0x80, 0xb8, 0x6c, 0x9d, 0xc4, 0xd9, 0x1a, 0x76, 0xd7, 0x5b, 0xdb, 0x89, 0x9a, 0x22, 0x0e,
0x70, 0xea, 0x09, 0x55, 0xe2, 0x4b, 0x80, 0x10, 0x12, 0x07, 0x3e, 0x44, 0x8f, 0x15, 0x5c, 0x38,
0x15, 0xd4, 0x22, 0x71, 0xe5, 0x23, 0xa0, 0x78, 0xbd, 0x55, 0x53, 0x1a, 0x52, 0xca, 0x65, 0xe5,
0xf5, 0xcc, 0x78, 0x7e, 0xe3, 0xff, 0x8c, 0x61, 0xb9, 0x4d, 0x38, 0xf6, 0x71, 0xcd, 0x65, 0xf5,
0x27, 0xf5, 0x75, 0x4c, 0x7d, 0x53, 0xf2, 0x96, 0x90, 0x9c, 0x38, 0x54, 0x48, 0xde, 0x31, 0x37,
0x5a, 0x84, 0x77, 0x8c, 0x80, 0x33, 0xc9, 0x50, 0xee, 0xa4, 0xaf, 0xd1, 0xe3, 0x9b, 0x9d, 0xc6,
0x1e, 0xf5, 0x99, 0xa9, 0xbe, 0x61, 0x48, 0x36, 0xed, 0x30, 0x87, 0xa9, 0xa5, 0xd9, 0x5d, 0xe9,
0xdd, 0x19, 0x87, 0x31, 0xc7, 0x25, 0x26, 0x0e, 0xa8, 0x89, 0x7d, 0x9f, 0x49, 0x2c, 0x29, 0xf3,
0x85, 0xb6, 0x96, 0xeb, 0x4c, 0x78, 0x4c, 0x98, 0x35, 0x2c, 0x48, 0x98, 0xdf, 0x6c, 0xcf, 0xd5,
0x88, 0xc4, 0x73, 0x66, 0x80, 0x1d, 0xea, 0x2b, 0x67, 0xed, 0x7b, 0x69, 0x00, 0x7e, 0x80, 0x39,
0xf6, 0x8e, 0x0e, 0x1e, 0xe0, 0x2c, 0x3b, 0x01, 0x89, 0x7c, 0xff, 0x0b, 0x21, 0xec, 0x90, 0x3d,
0xfc, 0xd1, 0xa6, 0xbc, 0xa6, 0x57, 0x7f, 0xb5, 0x56, 0xd3, 0x94, 0xd4, 0x23, 0x42, 0x62, 0x2f,
0x08, 0x1d, 0x8a, 0x69, 0x88, 0xee, 0x75, 0xb1, 0xef, 0xaa, 0xe4, 0x16, 0xd9, 0x68, 0x11, 0x21,
0x8b, 0x6b, 0x30, 0xd5, 0xb3, 0x2b, 0x02, 0xe6, 0x0b, 0x82, 0x96, 0xe0, 0x48, 0x08, 0x99, 0x01,
0x05, 0x50, 0x1a, 0xaf, 0x5c, 0x34, 0x7e, 0x7f, 0xcb, 0x46, 0x18, 0x5f, 0x1d, 0xdb, 0xdd, 0xcf,
0xc7, 0x5e, 0x7f, 0x7f, 0x5f, 0x06, 0x96, 0x3e, 0xa0, 0xb8, 0x0d, 0xe0, 0x8c, 0x4a, 0xb1, 0x48,
0xe4, 0x6a, 0x37, 0xc6, 0xd2, 0x31, 0x1a, 0x01, 0xa5, 0xe0, 0xb0, 0xe4, 0x36, 0x6d, 0xa8, 0x54,
0x09, 0x2b, 0x21, 0xf9, 0x52, 0x03, 0x5d, 0x80, 0x13, 0xb8, 0x2e, 0x69, 0x9b, 0xd8, 0x4e, 0xd3,
0x66, 0xbe, 0xdb, 0xc9, 0x0c, 0x15, 0x40, 0x69, 0xd4, 0xfa, 0x27, 0xdc, 0x5d, 0x6c, 0xde, 0xf1,
0xdd, 0x0e, 0x9a, 0x85, 0x28, 0xe0, 0xa4, 0x49, 0x38, 0x27, 0x0d, 0xdb, 0xc5, 0xbe, 0xd3, 0xc2,
0x0e, 0xc9, 0xc4, 0x0b, 0xa0, 0x34, 0x66, 0x4d, 0x1f, 0x59, 0x96, 0xb5, 0xa1, 0xf8, 0x1c, 0xc0,
0xff, 0xfb, 0xa0, 0xe8, 0xba, 0xd7, 0xe0, 0x84, 0xaa, 0xcb, 0x8e, 0x0a, 0xd3, 0xf5, 0x5f, 0x19,
0x54, 0x7f, 0xcf, 0x71, 0x0f, 0xa8, 0x5c, 0xbf, 0x4f, 0xb8, 0xe8, 0xb6, 0x8f, 0x95, 0x94, 0xc7,
0x4d, 0xc5, 0x37, 0x43, 0x30, 0xaf, 0x18, 0x96, 0xa9, 0xe8, 0x81, 0xa0, 0x24, 0x12, 0x05, 0x5d,
0x86, 0xb0, 0xce, 0x7c, 0xc9, 0x99, 0xeb, 0x12, 0xae, 0x08, 0xc6, 0xaa, 0x99, 0x8f, 0x1f, 0x66,
0xd3, 0x5a, 0xf1, 0x85, 0x46, 0x83, 0x13, 0x21, 0x56, 0x24, 0xa7, 0xbe, 0x63, 0x1d, 0xf3, 0x45,
0xb7, 0xe0, 0x84, 0xc7, 0x1a, 0xb4, 0x49, 0x49, 0xc3, 0xc6, 0x4d, 0x49, 0xb8, 0xba, 0xb6, 0xf1,
0x4a, 0xd6, 0x08, 0xdb, 0xc3, 0x88, 0xda, 0xc3, 0x58, 0x8d, 0xda, 0xa3, 0x3a, 0xba, 0xbb, 0x9f,
0x07, 0x3b, 0x5f, 0xf2, 0xc0, 0x4a, 0x46, 0xb1, 0x0b, 0xdd, 0xd0, 0x53, 0x34, 0x88, 0x9f, 0x59,
0x83, 0x44, 0x1f, 0x0d, 0x50, 0x19, 0x4e, 0x73, 0x7d, 0xdb, 0xb6, 0x87, 0x37, 0x6d, 0x41, 0xb7,
0x48, 0x66, 0xb8, 0x00, 0x4a, 0x49, 0x6b, 0x32, 0x32, 0xdc, 0xc6, 0x9b, 0x2b, 0x74, 0x8b, 0x14,
0x5f, 0x02, 0x58, 0xe8, 0x7f, 0x57, 0x5a, 0xb2, 0xc7, 0x70, 0xaa, 0x47, 0x32, 0x4a, 0xba, 0x4d,
0x1b, 0xff, 0x2b, 0xd1, 0xaa, 0x89, 0x6e, 0x1f, 0x5b, 0x93, 0xb2, 0x37, 0x67, 0xe5, 0x47, 0x1c,
0x0e, 0x2b, 0x20, 0xb4, 0x0d, 0xe0, 0x48, 0xd8, 0xf3, 0xa8, 0x32, 0x28, 0xcd, 0xaf, 0x63, 0x97,
0x9d, 0xff, 0xa3, 0x98, 0xb0, 0xd2, 0xe2, 0xbf, 0x2f, 0x3e, 0x7d, 0x7b, 0x35, 0x34, 0x89, 0x92,
0xa6, 0xe4, 0x66, 0x7b, 0x4e, 0x3f, 0x23, 0xe8, 0x2d, 0x80, 0x53, 0x27, 0x1b, 0x1a, 0x5d, 0x3d,
0x53, 0x82, 0x3e, 0x23, 0x99, 0xbd, 0x76, 0xce, 0x68, 0x0d, 0x9a, 0x55, 0xa0, 0x69, 0x84, 0x34,
0xa8, 0x43, 0xa4, 0xf9, 0x54, 0xcd, 0xf8, 0x33, 0xf4, 0x0e, 0xc0, 0xd4, 0x29, 0x72, 0xa2, 0x1b,
0x67, 0x4a, 0xd9, 0x7f, 0x68, 0xb2, 0x37, 0xcf, 0x7f, 0x80, 0xc6, 0x4e, 0x29, 0xec, 0x24, 0x1a,
0xd7, 0xd8, 0x2e, 0x15, 0xb2, 0xfa, 0x70, 0xf7, 0x20, 0x07, 0xf6, 0x0e, 0x72, 0xe0, 0xeb, 0x41,
0x0e, 0xec, 0x1c, 0xe6, 0x62, 0x7b, 0x87, 0xb9, 0xd8, 0xe7, 0xc3, 0x5c, 0xec, 0xd1, 0x75, 0x87,
0xca, 0xf5, 0x56, 0xcd, 0xa8, 0x33, 0xcf, 0x0c, 0x53, 0xcf, 0xba, 0xb8, 0x26, 0xa2, 0xf5, 0xb1,
0x07, 0x7d, 0xf3, 0xb4, 0x27, 0xbd, 0x36, 0xa2, 0x66, 0x71, 0xfe, 0x67, 0x00, 0x00, 0x00, 0xff,
0xff, 0x1e, 0xd9, 0x3f, 0xb5, 0xed, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// QueryClient is the client API for Query service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface {
// Parameters queries the parameters of the module.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// GetTrustRegistry returns the trust registry information.
GetTrustRegistry(ctx context.Context, in *QueryGetTrustRegistryRequest, opts ...grpc.CallOption) (*QueryGetTrustRegistryResponse, error)
// ListTrustRegistries returns a list of Trust Registries
ListTrustRegistries(ctx context.Context, in *QueryListTrustRegistriesRequest, opts ...grpc.CallOption) (*QueryListTrustRegistriesResponse, error)
}
type queryClient struct {
cc grpc1.ClientConn
}
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
return &queryClient{cc}
}
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
out := new(QueryParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Query/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) GetTrustRegistry(ctx context.Context, in *QueryGetTrustRegistryRequest, opts ...grpc.CallOption) (*QueryGetTrustRegistryResponse, error) {
out := new(QueryGetTrustRegistryResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Query/GetTrustRegistry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryClient) ListTrustRegistries(ctx context.Context, in *QueryListTrustRegistriesRequest, opts ...grpc.CallOption) (*QueryListTrustRegistriesResponse, error) {
out := new(QueryListTrustRegistriesResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Query/ListTrustRegistries", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServer is the server API for Query service.
type QueryServer interface {
// Parameters queries the parameters of the module.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// GetTrustRegistry returns the trust registry information.
GetTrustRegistry(context.Context, *QueryGetTrustRegistryRequest) (*QueryGetTrustRegistryResponse, error)
// ListTrustRegistries returns a list of Trust Registries
ListTrustRegistries(context.Context, *QueryListTrustRegistriesRequest) (*QueryListTrustRegistriesResponse, error)
}
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func (*UnimplementedQueryServer) GetTrustRegistry(ctx context.Context, req *QueryGetTrustRegistryRequest) (*QueryGetTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTrustRegistry not implemented")
}
func (*UnimplementedQueryServer) ListTrustRegistries(ctx context.Context, req *QueryListTrustRegistriesRequest) (*QueryListTrustRegistriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTrustRegistries not implemented")
}
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
s.RegisterService(&_Query_serviceDesc, srv)
}
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Query/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_GetTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryGetTrustRegistryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).GetTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Query/GetTrustRegistry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).GetTrustRegistry(ctx, req.(*QueryGetTrustRegistryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Query_ListTrustRegistries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryListTrustRegistriesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServer).ListTrustRegistries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Query/ListTrustRegistries",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).ListTrustRegistries(ctx, req.(*QueryListTrustRegistriesRequest))
}
return interceptor(ctx, in, info, handler)
}
var Query_serviceDesc = _Query_serviceDesc
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustregistry.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Params",
Handler: _Query_Params_Handler,
},
{
MethodName: "GetTrustRegistry",
Handler: _Query_GetTrustRegistry_Handler,
},
{
MethodName: "ListTrustRegistries",
Handler: _Query_ListTrustRegistries_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustregistry/query.proto",
}
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *QueryGetTrustRegistryRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetTrustRegistryRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetTrustRegistryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.PreferredLanguage) > 0 {
i -= len(m.PreferredLanguage)
copy(dAtA[i:], m.PreferredLanguage)
i = encodeVarintQuery(dAtA, i, uint64(len(m.PreferredLanguage)))
i--
dAtA[i] = 0x1a
}
if m.ActiveGfOnly {
i--
if m.ActiveGfOnly {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
if m.TrId != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.TrId))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *QueryGetTrustRegistryResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryGetTrustRegistryResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryGetTrustRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.TrustRegistry != nil {
{
size, err := m.TrustRegistry.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryListTrustRegistriesRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListTrustRegistriesRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListTrustRegistriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ResponseMaxSize != 0 {
i = encodeVarintQuery(dAtA, i, uint64(m.ResponseMaxSize))
i--
dAtA[i] = 0x28
}
if len(m.PreferredLanguage) > 0 {
i -= len(m.PreferredLanguage)
copy(dAtA[i:], m.PreferredLanguage)
i = encodeVarintQuery(dAtA, i, uint64(len(m.PreferredLanguage)))
i--
dAtA[i] = 0x22
}
if m.ActiveGfOnly {
i--
if m.ActiveGfOnly {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if m.ModifiedAfter != nil {
n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.ModifiedAfter, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter):])
if err3 != nil {
return 0, err3
}
i -= n3
i = encodeVarintQuery(dAtA, i, uint64(n3))
i--
dAtA[i] = 0x12
}
if len(m.Controller) > 0 {
i -= len(m.Controller)
copy(dAtA[i:], m.Controller)
i = encodeVarintQuery(dAtA, i, uint64(len(m.Controller)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *QueryListTrustRegistriesResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *QueryListTrustRegistriesResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *QueryListTrustRegistriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.TrustRegistries) > 0 {
for iNdEx := len(m.TrustRegistries) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.TrustRegistries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintQuery(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
offset -= sovQuery(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *QueryParamsRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *QueryParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = m.Params.Size()
n += 1 + l + sovQuery(uint64(l))
return n
}
func (m *QueryGetTrustRegistryRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.TrId != 0 {
n += 1 + sovQuery(uint64(m.TrId))
}
if m.ActiveGfOnly {
n += 2
}
l = len(m.PreferredLanguage)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryGetTrustRegistryResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.TrustRegistry != nil {
l = m.TrustRegistry.Size()
n += 1 + l + sovQuery(uint64(l))
}
return n
}
func (m *QueryListTrustRegistriesRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Controller)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
if m.ModifiedAfter != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.ModifiedAfter)
n += 1 + l + sovQuery(uint64(l))
}
if m.ActiveGfOnly {
n += 2
}
l = len(m.PreferredLanguage)
if l > 0 {
n += 1 + l + sovQuery(uint64(l))
}
if m.ResponseMaxSize != 0 {
n += 1 + sovQuery(uint64(m.ResponseMaxSize))
}
return n
}
func (m *QueryListTrustRegistriesResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.TrustRegistries) > 0 {
for _, e := range m.TrustRegistries {
l = e.Size()
n += 1 + l + sovQuery(uint64(l))
}
}
return n
}
func sovQuery(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozQuery(x uint64) (n int) {
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetTrustRegistryRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetTrustRegistryRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetTrustRegistryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
m.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ActiveGfOnly", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.ActiveGfOnly = bool(v != 0)
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PreferredLanguage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.PreferredLanguage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryGetTrustRegistryResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryGetTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryGetTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustRegistry", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.TrustRegistry == nil {
m.TrustRegistry = &TrustRegistryWithVersions{}
}
if err := m.TrustRegistry.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListTrustRegistriesRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListTrustRegistriesRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListTrustRegistriesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ModifiedAfter", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ModifiedAfter == nil {
m.ModifiedAfter = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.ModifiedAfter, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ActiveGfOnly", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.ActiveGfOnly = bool(v != 0)
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field PreferredLanguage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.PreferredLanguage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ResponseMaxSize", wireType)
}
m.ResponseMaxSize = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ResponseMaxSize |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *QueryListTrustRegistriesResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: QueryListTrustRegistriesResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: QueryListTrustRegistriesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field TrustRegistries", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowQuery
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthQuery
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthQuery
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.TrustRegistries = append(m.TrustRegistries, TrustRegistryWithVersions{})
if err := m.TrustRegistries[len(m.TrustRegistries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipQuery(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthQuery
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipQuery(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowQuery
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthQuery
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupQuery
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthQuery
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: veranablockchain/trustregistry/query.proto
/*
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package types
import (
"context"
"io"
"net/http"
"github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/proto"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/grpc-ecosystem/grpc-gateway/utilities"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = descriptor.ForMessage
var _ = metadata.Join
func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryParamsRequest
var metadata runtime.ServerMetadata
msg, err := server.Params(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_GetTrustRegistry_0 = &utilities.DoubleArray{Encoding: map[string]int{"tr_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
)
func request_Query_GetTrustRegistry_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetTrustRegistryRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["tr_id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tr_id")
}
protoReq.TrId, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tr_id", err)
}
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetTrustRegistry_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.GetTrustRegistry(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_GetTrustRegistry_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryGetTrustRegistryRequest
var metadata runtime.ServerMetadata
var (
val string
ok bool
err error
_ = err
)
val, ok = pathParams["tr_id"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tr_id")
}
protoReq.TrId, err = runtime.Uint64(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tr_id", err)
}
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetTrustRegistry_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.GetTrustRegistry(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_Query_ListTrustRegistries_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_Query_ListTrustRegistries_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListTrustRegistriesRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListTrustRegistries_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.ListTrustRegistries(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_Query_ListTrustRegistries_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryListTrustRegistriesRequest
var metadata runtime.ServerMetadata
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ListTrustRegistries_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.ListTrustRegistries(ctx, &protoReq)
return msg, metadata, err
}
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
// UnaryRPC :call QueryServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetTrustRegistry_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_GetTrustRegistry_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetTrustRegistry_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListTrustRegistries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_Query_ListTrustRegistries_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListTrustRegistries_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
conn, err := grpc.Dial(endpoint, opts...)
if err != nil {
return err
}
defer func() {
if err != nil {
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
}()
}()
return RegisterQueryHandler(ctx, mux, conn)
}
// RegisterQueryHandler registers the http handlers for service Query to "mux".
// The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn))
}
// RegisterQueryHandlerClient registers the http handlers for service Query
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient".
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient"
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error {
mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_GetTrustRegistry_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_GetTrustRegistry_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_GetTrustRegistry_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
mux.Handle("GET", pattern_Query_ListTrustRegistries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_Query_ListTrustRegistries_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_Query_ListTrustRegistries_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
var (
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"tr", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_GetTrustRegistry_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"tr", "v1", "get", "tr_id"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_ListTrustRegistries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"tr", "v1", "list"}, "", runtime.AssumeColonVerbOpt(false)))
)
var (
forward_Query_Params_0 = runtime.ForwardResponseMessage
forward_Query_GetTrustRegistry_0 = runtime.ForwardResponseMessage
forward_Query_ListTrustRegistries_0 = runtime.ForwardResponseMessage
)
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustregistry/tx.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgUpdateParams is the Msg/UpdateParams request type.
type MsgUpdateParams struct {
// authority is the address that controls the module (defaults to x/gov unless overwritten).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the module parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} }
func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParams) ProtoMessage() {}
func (*MsgUpdateParams) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{0}
}
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParams.Merge(m, src)
}
func (m *MsgUpdateParams) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParams) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo
func (m *MsgUpdateParams) GetAuthority() string {
if m != nil {
return m.Authority
}
return ""
}
func (m *MsgUpdateParams) GetParams() Params {
if m != nil {
return m.Params
}
return Params{}
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
type MsgUpdateParamsResponse struct {
}
func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} }
func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateParamsResponse) ProtoMessage() {}
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{1}
}
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src)
}
func (m *MsgUpdateParamsResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo
// MsgCreateTrustRegistry defines the Msg/CreateTrustRegistry request type.
type MsgCreateTrustRegistry struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Aka string `protobuf:"bytes,3,opt,name=aka,proto3" json:"aka,omitempty"`
Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
DocUrl string `protobuf:"bytes,5,opt,name=doc_url,json=docUrl,proto3" json:"doc_url,omitempty"`
DocDigestSri string `protobuf:"bytes,6,opt,name=doc_digest_sri,json=docDigestSri,proto3" json:"doc_digest_sri,omitempty"`
}
func (m *MsgCreateTrustRegistry) Reset() { *m = MsgCreateTrustRegistry{} }
func (m *MsgCreateTrustRegistry) String() string { return proto.CompactTextString(m) }
func (*MsgCreateTrustRegistry) ProtoMessage() {}
func (*MsgCreateTrustRegistry) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{2}
}
func (m *MsgCreateTrustRegistry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateTrustRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateTrustRegistry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateTrustRegistry) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateTrustRegistry.Merge(m, src)
}
func (m *MsgCreateTrustRegistry) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateTrustRegistry) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateTrustRegistry.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateTrustRegistry proto.InternalMessageInfo
func (m *MsgCreateTrustRegistry) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgCreateTrustRegistry) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *MsgCreateTrustRegistry) GetAka() string {
if m != nil {
return m.Aka
}
return ""
}
func (m *MsgCreateTrustRegistry) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
func (m *MsgCreateTrustRegistry) GetDocUrl() string {
if m != nil {
return m.DocUrl
}
return ""
}
func (m *MsgCreateTrustRegistry) GetDocDigestSri() string {
if m != nil {
return m.DocDigestSri
}
return ""
}
// MsgCreateTrustRegistryResponse defines the Msg/CreateTrustRegistry response type.
type MsgCreateTrustRegistryResponse struct {
}
func (m *MsgCreateTrustRegistryResponse) Reset() { *m = MsgCreateTrustRegistryResponse{} }
func (m *MsgCreateTrustRegistryResponse) String() string { return proto.CompactTextString(m) }
func (*MsgCreateTrustRegistryResponse) ProtoMessage() {}
func (*MsgCreateTrustRegistryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{3}
}
func (m *MsgCreateTrustRegistryResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgCreateTrustRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgCreateTrustRegistryResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgCreateTrustRegistryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgCreateTrustRegistryResponse.Merge(m, src)
}
func (m *MsgCreateTrustRegistryResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgCreateTrustRegistryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgCreateTrustRegistryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgCreateTrustRegistryResponse proto.InternalMessageInfo
// MsgAddGovernanceFrameworkDocument defines the Msg/AddGovernanceFrameworkDocument request type.
type MsgAddGovernanceFrameworkDocument struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
DocLanguage string `protobuf:"bytes,3,opt,name=doc_language,json=docLanguage,proto3" json:"doc_language,omitempty"`
DocUrl string `protobuf:"bytes,4,opt,name=doc_url,json=docUrl,proto3" json:"doc_url,omitempty"`
DocDigestSri string `protobuf:"bytes,5,opt,name=doc_digest_sri,json=docDigestSri,proto3" json:"doc_digest_sri,omitempty"`
Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
}
func (m *MsgAddGovernanceFrameworkDocument) Reset() { *m = MsgAddGovernanceFrameworkDocument{} }
func (m *MsgAddGovernanceFrameworkDocument) String() string { return proto.CompactTextString(m) }
func (*MsgAddGovernanceFrameworkDocument) ProtoMessage() {}
func (*MsgAddGovernanceFrameworkDocument) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{4}
}
func (m *MsgAddGovernanceFrameworkDocument) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddGovernanceFrameworkDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddGovernanceFrameworkDocument.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgAddGovernanceFrameworkDocument) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddGovernanceFrameworkDocument.Merge(m, src)
}
func (m *MsgAddGovernanceFrameworkDocument) XXX_Size() int {
return m.Size()
}
func (m *MsgAddGovernanceFrameworkDocument) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddGovernanceFrameworkDocument.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddGovernanceFrameworkDocument proto.InternalMessageInfo
func (m *MsgAddGovernanceFrameworkDocument) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgAddGovernanceFrameworkDocument) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgAddGovernanceFrameworkDocument) GetDocLanguage() string {
if m != nil {
return m.DocLanguage
}
return ""
}
func (m *MsgAddGovernanceFrameworkDocument) GetDocUrl() string {
if m != nil {
return m.DocUrl
}
return ""
}
func (m *MsgAddGovernanceFrameworkDocument) GetDocDigestSri() string {
if m != nil {
return m.DocDigestSri
}
return ""
}
func (m *MsgAddGovernanceFrameworkDocument) GetVersion() int32 {
if m != nil {
return m.Version
}
return 0
}
// MsgAddGovernanceFrameworkDocumentResponse defines the Msg/AddGovernanceFrameworkDocument response type.
type MsgAddGovernanceFrameworkDocumentResponse struct {
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) Reset() {
*m = MsgAddGovernanceFrameworkDocumentResponse{}
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) String() string {
return proto.CompactTextString(m)
}
func (*MsgAddGovernanceFrameworkDocumentResponse) ProtoMessage() {}
func (*MsgAddGovernanceFrameworkDocumentResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{5}
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgAddGovernanceFrameworkDocumentResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgAddGovernanceFrameworkDocumentResponse.Merge(m, src)
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgAddGovernanceFrameworkDocumentResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgAddGovernanceFrameworkDocumentResponse proto.InternalMessageInfo
// MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion request type.
type MsgIncreaseActiveGovernanceFrameworkVersion struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) Reset() {
*m = MsgIncreaseActiveGovernanceFrameworkVersion{}
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) String() string {
return proto.CompactTextString(m)
}
func (*MsgIncreaseActiveGovernanceFrameworkVersion) ProtoMessage() {}
func (*MsgIncreaseActiveGovernanceFrameworkVersion) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{6}
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersion.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersion.Merge(m, src)
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) XXX_Size() int {
return m.Size()
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) XXX_DiscardUnknown() {
xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersion.DiscardUnknown(m)
}
var xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersion proto.InternalMessageInfo
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
// MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion response type.
type MsgIncreaseActiveGovernanceFrameworkVersionResponse struct {
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) Reset() {
*m = MsgIncreaseActiveGovernanceFrameworkVersionResponse{}
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) String() string {
return proto.CompactTextString(m)
}
func (*MsgIncreaseActiveGovernanceFrameworkVersionResponse) ProtoMessage() {}
func (*MsgIncreaseActiveGovernanceFrameworkVersionResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{7}
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersionResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersionResponse.Merge(m, src)
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersionResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgIncreaseActiveGovernanceFrameworkVersionResponse proto.InternalMessageInfo
// MsgUpdateTrustRegistry defines the Msg/UpdateTrustRegistry request type.
type MsgUpdateTrustRegistry struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Did string `protobuf:"bytes,3,opt,name=did,proto3" json:"did,omitempty"`
Aka string `protobuf:"bytes,4,opt,name=aka,proto3" json:"aka,omitempty"`
}
func (m *MsgUpdateTrustRegistry) Reset() { *m = MsgUpdateTrustRegistry{} }
func (m *MsgUpdateTrustRegistry) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateTrustRegistry) ProtoMessage() {}
func (*MsgUpdateTrustRegistry) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{8}
}
func (m *MsgUpdateTrustRegistry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateTrustRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateTrustRegistry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateTrustRegistry) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateTrustRegistry.Merge(m, src)
}
func (m *MsgUpdateTrustRegistry) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateTrustRegistry) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateTrustRegistry.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateTrustRegistry proto.InternalMessageInfo
func (m *MsgUpdateTrustRegistry) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgUpdateTrustRegistry) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgUpdateTrustRegistry) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *MsgUpdateTrustRegistry) GetAka() string {
if m != nil {
return m.Aka
}
return ""
}
// MsgUpdateTrustRegistryResponse defines the Msg/UpdateTrustRegistry response type.
type MsgUpdateTrustRegistryResponse struct {
}
func (m *MsgUpdateTrustRegistryResponse) Reset() { *m = MsgUpdateTrustRegistryResponse{} }
func (m *MsgUpdateTrustRegistryResponse) String() string { return proto.CompactTextString(m) }
func (*MsgUpdateTrustRegistryResponse) ProtoMessage() {}
func (*MsgUpdateTrustRegistryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{9}
}
func (m *MsgUpdateTrustRegistryResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgUpdateTrustRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgUpdateTrustRegistryResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgUpdateTrustRegistryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgUpdateTrustRegistryResponse.Merge(m, src)
}
func (m *MsgUpdateTrustRegistryResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgUpdateTrustRegistryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgUpdateTrustRegistryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgUpdateTrustRegistryResponse proto.InternalMessageInfo
// MsgArchiveTrustRegistry defines the Msg/ArchiveTrustRegistry request type.
type MsgArchiveTrustRegistry struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Archive bool `protobuf:"varint,3,opt,name=archive,proto3" json:"archive,omitempty"`
}
func (m *MsgArchiveTrustRegistry) Reset() { *m = MsgArchiveTrustRegistry{} }
func (m *MsgArchiveTrustRegistry) String() string { return proto.CompactTextString(m) }
func (*MsgArchiveTrustRegistry) ProtoMessage() {}
func (*MsgArchiveTrustRegistry) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{10}
}
func (m *MsgArchiveTrustRegistry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgArchiveTrustRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgArchiveTrustRegistry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgArchiveTrustRegistry) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgArchiveTrustRegistry.Merge(m, src)
}
func (m *MsgArchiveTrustRegistry) XXX_Size() int {
return m.Size()
}
func (m *MsgArchiveTrustRegistry) XXX_DiscardUnknown() {
xxx_messageInfo_MsgArchiveTrustRegistry.DiscardUnknown(m)
}
var xxx_messageInfo_MsgArchiveTrustRegistry proto.InternalMessageInfo
func (m *MsgArchiveTrustRegistry) GetCreator() string {
if m != nil {
return m.Creator
}
return ""
}
func (m *MsgArchiveTrustRegistry) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *MsgArchiveTrustRegistry) GetArchive() bool {
if m != nil {
return m.Archive
}
return false
}
// MsgArchiveTrustRegistryResponse defines the Msg/ArchiveTrustRegistry response type.
type MsgArchiveTrustRegistryResponse struct {
}
func (m *MsgArchiveTrustRegistryResponse) Reset() { *m = MsgArchiveTrustRegistryResponse{} }
func (m *MsgArchiveTrustRegistryResponse) String() string { return proto.CompactTextString(m) }
func (*MsgArchiveTrustRegistryResponse) ProtoMessage() {}
func (*MsgArchiveTrustRegistryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_55f6f1dc061e8abe, []int{11}
}
func (m *MsgArchiveTrustRegistryResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgArchiveTrustRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgArchiveTrustRegistryResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MsgArchiveTrustRegistryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgArchiveTrustRegistryResponse.Merge(m, src)
}
func (m *MsgArchiveTrustRegistryResponse) XXX_Size() int {
return m.Size()
}
func (m *MsgArchiveTrustRegistryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MsgArchiveTrustRegistryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MsgArchiveTrustRegistryResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgUpdateParams)(nil), "veranablockchain.trustregistry.MsgUpdateParams")
proto.RegisterType((*MsgUpdateParamsResponse)(nil), "veranablockchain.trustregistry.MsgUpdateParamsResponse")
proto.RegisterType((*MsgCreateTrustRegistry)(nil), "veranablockchain.trustregistry.MsgCreateTrustRegistry")
proto.RegisterType((*MsgCreateTrustRegistryResponse)(nil), "veranablockchain.trustregistry.MsgCreateTrustRegistryResponse")
proto.RegisterType((*MsgAddGovernanceFrameworkDocument)(nil), "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocument")
proto.RegisterType((*MsgAddGovernanceFrameworkDocumentResponse)(nil), "veranablockchain.trustregistry.MsgAddGovernanceFrameworkDocumentResponse")
proto.RegisterType((*MsgIncreaseActiveGovernanceFrameworkVersion)(nil), "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersion")
proto.RegisterType((*MsgIncreaseActiveGovernanceFrameworkVersionResponse)(nil), "veranablockchain.trustregistry.MsgIncreaseActiveGovernanceFrameworkVersionResponse")
proto.RegisterType((*MsgUpdateTrustRegistry)(nil), "veranablockchain.trustregistry.MsgUpdateTrustRegistry")
proto.RegisterType((*MsgUpdateTrustRegistryResponse)(nil), "veranablockchain.trustregistry.MsgUpdateTrustRegistryResponse")
proto.RegisterType((*MsgArchiveTrustRegistry)(nil), "veranablockchain.trustregistry.MsgArchiveTrustRegistry")
proto.RegisterType((*MsgArchiveTrustRegistryResponse)(nil), "veranablockchain.trustregistry.MsgArchiveTrustRegistryResponse")
}
func init() {
proto.RegisterFile("veranablockchain/trustregistry/tx.proto", fileDescriptor_55f6f1dc061e8abe)
}
var fileDescriptor_55f6f1dc061e8abe = []byte{
// 781 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x4f, 0x14, 0x4b,
0x14, 0x9d, 0x62, 0xbe, 0x98, 0x82, 0xf0, 0xde, 0xeb, 0x47, 0xa0, 0xe9, 0x45, 0x03, 0x13, 0xa3,
0x08, 0x61, 0x5a, 0x21, 0x62, 0xc2, 0x02, 0x33, 0x40, 0x34, 0x44, 0x27, 0x31, 0x8d, 0x18, 0xe3,
0x66, 0x52, 0xd3, 0x5d, 0xe9, 0xe9, 0x30, 0xd3, 0x35, 0xa9, 0xaa, 0x19, 0x61, 0xa5, 0x31, 0x71,
0x63, 0x62, 0xc2, 0xc2, 0x1f, 0xe1, 0xca, 0xb0, 0x70, 0xe3, 0x3f, 0x60, 0xe1, 0x82, 0xb8, 0xd2,
0x0d, 0x1a, 0x58, 0xb0, 0xf6, 0x1f, 0x98, 0xae, 0xfe, 0x20, 0x34, 0xed, 0x4c, 0xf3, 0xe1, 0x06,
0xba, 0xee, 0xad, 0x7b, 0xee, 0x39, 0x77, 0x4e, 0x55, 0x0a, 0xde, 0xe8, 0x60, 0x8a, 0x1c, 0x54,
0x6b, 0x10, 0x63, 0xd3, 0xa8, 0x23, 0xdb, 0xd1, 0x38, 0x6d, 0x33, 0x4e, 0xb1, 0x65, 0x33, 0x4e,
0xb7, 0x35, 0xbe, 0x55, 0x6a, 0x51, 0xc2, 0x89, 0xa4, 0x46, 0x37, 0x96, 0x4e, 0x6d, 0x54, 0xfe,
0x43, 0x4d, 0xdb, 0x21, 0x9a, 0xf8, 0xeb, 0x95, 0x28, 0xa3, 0x06, 0x61, 0x4d, 0xc2, 0xb4, 0x26,
0xb3, 0xb4, 0xce, 0x6d, 0xf7, 0x9f, 0x9f, 0x18, 0xf3, 0x12, 0x55, 0xb1, 0xd2, 0xbc, 0x85, 0x9f,
0x1a, 0xb6, 0x88, 0x45, 0xbc, 0xb8, 0xfb, 0xe5, 0x47, 0x67, 0x7a, 0xb0, 0x6c, 0x21, 0x8a, 0x9a,
0x3e, 0x44, 0xf1, 0x3b, 0x80, 0xff, 0x54, 0x98, 0xb5, 0xd1, 0x32, 0x11, 0xc7, 0x8f, 0x45, 0x46,
0x5a, 0x80, 0x05, 0xd4, 0xe6, 0x75, 0x42, 0x6d, 0xbe, 0x2d, 0x83, 0x09, 0x30, 0x55, 0x58, 0x96,
0xbf, 0x7e, 0x9a, 0x1d, 0xf6, 0x7b, 0x97, 0x4d, 0x93, 0x62, 0xc6, 0xd6, 0x39, 0xb5, 0x1d, 0x4b,
0x3f, 0xd9, 0x2a, 0xad, 0xc1, 0x9c, 0x87, 0x2d, 0xf7, 0x4d, 0x80, 0xa9, 0x81, 0xb9, 0xeb, 0xa5,
0xee, 0x63, 0x28, 0x79, 0xfd, 0x96, 0x0b, 0x7b, 0x07, 0xe3, 0xa9, 0x0f, 0xc7, 0xbb, 0xd3, 0x40,
0xf7, 0x01, 0x16, 0x57, 0x5e, 0x1f, 0xef, 0x4e, 0x9f, 0x40, 0xbf, 0x3d, 0xde, 0x9d, 0xbe, 0x75,
0x46, 0xd6, 0x56, 0x44, 0x58, 0x44, 0x47, 0x71, 0x0c, 0x8e, 0x46, 0x42, 0x3a, 0x66, 0x2d, 0xe2,
0x30, 0x5c, 0xfc, 0x01, 0xe0, 0x48, 0x85, 0x59, 0x2b, 0x14, 0x23, 0x8e, 0x9f, 0xb8, 0x28, 0xba,
0x8f, 0x22, 0xcd, 0xc1, 0xbc, 0xe1, 0x86, 0x09, 0xed, 0xa9, 0x3d, 0xd8, 0x28, 0xfd, 0x0b, 0xd3,
0xa6, 0x6d, 0x0a, 0xd9, 0x05, 0xdd, 0xfd, 0x94, 0x46, 0x60, 0x1a, 0x6d, 0x22, 0x39, 0x2d, 0x10,
0x32, 0x7b, 0x07, 0xe3, 0x40, 0x77, 0x03, 0x92, 0x02, 0xfb, 0x1b, 0xc8, 0xb1, 0xda, 0xc8, 0xc2,
0x72, 0x46, 0x6c, 0x0f, 0xd7, 0xd2, 0x28, 0xcc, 0x9b, 0xc4, 0xa8, 0xb6, 0x69, 0x43, 0xce, 0x8a,
0x54, 0xce, 0x24, 0xc6, 0x06, 0x6d, 0x48, 0xd7, 0xe0, 0x90, 0x9b, 0x30, 0x6d, 0x0b, 0x33, 0x5e,
0x65, 0xd4, 0x96, 0x73, 0x22, 0x3f, 0x68, 0x12, 0x63, 0x55, 0x04, 0xd7, 0xa9, 0xbd, 0x38, 0xe8,
0xce, 0x2c, 0xa0, 0x54, 0x9c, 0x80, 0x6a, 0xbc, 0xc0, 0x70, 0x06, 0xbf, 0x00, 0x9c, 0xac, 0x30,
0xab, 0x6c, 0x9a, 0x0f, 0x48, 0x07, 0x53, 0x07, 0x39, 0x06, 0xbe, 0x4f, 0x51, 0x13, 0xbf, 0x20,
0x74, 0x73, 0x95, 0x18, 0xed, 0x26, 0x76, 0xf8, 0x85, 0xc6, 0x31, 0x04, 0xfb, 0xfc, 0x69, 0x64,
0xf4, 0x3e, 0xdb, 0x94, 0x26, 0xa1, 0xcb, 0xb4, 0x1a, 0x0a, 0x17, 0x53, 0xd1, 0x07, 0x4c, 0x62,
0x3c, 0x8a, 0xd1, 0x9e, 0xe9, 0xa1, 0x3d, 0x7b, 0x56, 0xbb, 0x24, 0xc3, 0x7c, 0x07, 0x53, 0x66,
0x13, 0x47, 0x8c, 0x26, 0xab, 0x07, 0xcb, 0xc8, 0x54, 0x66, 0xe0, 0xcd, 0x9e, 0x92, 0xc3, 0x01,
0xbd, 0x84, 0x33, 0x15, 0x66, 0xad, 0x39, 0x6e, 0x31, 0xc3, 0x65, 0x83, 0xdb, 0x1d, 0x1c, 0x53,
0xf7, 0xd4, 0xeb, 0x74, 0x15, 0x93, 0x8a, 0xb0, 0xbd, 0x03, 0xe7, 0xcf, 0x41, 0x20, 0xe4, 0xfd,
0xde, 0x33, 0xb7, 0x67, 0xfc, 0xcb, 0x9b, 0x3b, 0xfa, 0x6b, 0xfa, 0x66, 0x4f, 0x9f, 0x31, 0x7b,
0x26, 0x62, 0xf6, 0x58, 0x47, 0xc6, 0xb0, 0x0a, 0x89, 0xbf, 0x01, 0xe2, 0xc4, 0x96, 0xa9, 0x51,
0xb7, 0x3b, 0x7f, 0x81, 0xb9, 0x0c, 0xf3, 0xc8, 0xc3, 0x16, 0xec, 0xfb, 0xf5, 0x60, 0x19, 0x61,
0x3a, 0x09, 0xc7, 0xff, 0x40, 0x23, 0xa0, 0x3a, 0xf7, 0x39, 0x0f, 0xd3, 0x15, 0x66, 0x49, 0x5b,
0x70, 0xf0, 0xd4, 0xdd, 0xa9, 0xf5, 0xba, 0xf3, 0x22, 0x37, 0x92, 0x72, 0xf7, 0x9c, 0x05, 0x01,
0x03, 0xe9, 0x1d, 0x80, 0xff, 0xc7, 0xdd, 0x5f, 0x0b, 0x09, 0x00, 0x63, 0xea, 0x94, 0xa5, 0x8b,
0xd5, 0x85, 0x7c, 0x3e, 0x02, 0xa8, 0xf6, 0xb8, 0x4b, 0xca, 0x09, 0x5a, 0x74, 0x87, 0x50, 0xd6,
0x2e, 0x0d, 0x11, 0x12, 0xfe, 0x02, 0xe0, 0x54, 0xe2, 0xc3, 0xfd, 0x30, 0x41, 0xdf, 0xa4, 0x60,
0xca, 0xfa, 0x15, 0x82, 0x9d, 0xf2, 0x43, 0xdc, 0x91, 0x5f, 0x48, 0x6c, 0xb0, 0xf3, 0xfb, 0xa1,
0xcb, 0x61, 0x96, 0x76, 0x00, 0x1c, 0x8e, 0x3d, 0xc9, 0x49, 0x1c, 0x1f, 0x57, 0xa8, 0xdc, 0xbb,
0x60, 0x61, 0x40, 0x49, 0xc9, 0xbe, 0x72, 0x1f, 0x19, 0xcb, 0xcf, 0xf6, 0x0e, 0x55, 0xb0, 0x7f,
0xa8, 0x82, 0x9f, 0x87, 0x2a, 0xd8, 0x39, 0x52, 0x53, 0xfb, 0x47, 0x6a, 0xea, 0xdb, 0x91, 0x9a,
0x7a, 0xbe, 0x64, 0xd9, 0xbc, 0xde, 0xae, 0x95, 0x0c, 0xd2, 0xd4, 0xbc, 0x5e, 0xb3, 0x0d, 0x54,
0x63, 0xc1, 0x77, 0x97, 0xb7, 0x07, 0xdf, 0x6e, 0x61, 0x56, 0xcb, 0x89, 0x47, 0xd5, 0xfc, 0xef,
0x00, 0x00, 0x00, 0xff, 0xff, 0x67, 0x8a, 0xa9, 0x4c, 0x29, 0x0a, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// CreateTrustRegistry creates a new trust registry.
CreateTrustRegistry(ctx context.Context, in *MsgCreateTrustRegistry, opts ...grpc.CallOption) (*MsgCreateTrustRegistryResponse, error)
AddGovernanceFrameworkDocument(ctx context.Context, in *MsgAddGovernanceFrameworkDocument, opts ...grpc.CallOption) (*MsgAddGovernanceFrameworkDocumentResponse, error)
IncreaseActiveGovernanceFrameworkVersion(ctx context.Context, in *MsgIncreaseActiveGovernanceFrameworkVersion, opts ...grpc.CallOption) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error)
UpdateTrustRegistry(ctx context.Context, in *MsgUpdateTrustRegistry, opts ...grpc.CallOption) (*MsgUpdateTrustRegistryResponse, error)
ArchiveTrustRegistry(ctx context.Context, in *MsgArchiveTrustRegistry, opts ...grpc.CallOption) (*MsgArchiveTrustRegistryResponse, error)
}
type msgClient struct {
cc grpc1.ClientConn
}
func NewMsgClient(cc grpc1.ClientConn) MsgClient {
return &msgClient{cc}
}
func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) {
out := new(MsgUpdateParamsResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Msg/UpdateParams", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) CreateTrustRegistry(ctx context.Context, in *MsgCreateTrustRegistry, opts ...grpc.CallOption) (*MsgCreateTrustRegistryResponse, error) {
out := new(MsgCreateTrustRegistryResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Msg/CreateTrustRegistry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) AddGovernanceFrameworkDocument(ctx context.Context, in *MsgAddGovernanceFrameworkDocument, opts ...grpc.CallOption) (*MsgAddGovernanceFrameworkDocumentResponse, error) {
out := new(MsgAddGovernanceFrameworkDocumentResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Msg/AddGovernanceFrameworkDocument", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) IncreaseActiveGovernanceFrameworkVersion(ctx context.Context, in *MsgIncreaseActiveGovernanceFrameworkVersion, opts ...grpc.CallOption) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error) {
out := new(MsgIncreaseActiveGovernanceFrameworkVersionResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Msg/IncreaseActiveGovernanceFrameworkVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) UpdateTrustRegistry(ctx context.Context, in *MsgUpdateTrustRegistry, opts ...grpc.CallOption) (*MsgUpdateTrustRegistryResponse, error) {
out := new(MsgUpdateTrustRegistryResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Msg/UpdateTrustRegistry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgClient) ArchiveTrustRegistry(ctx context.Context, in *MsgArchiveTrustRegistry, opts ...grpc.CallOption) (*MsgArchiveTrustRegistryResponse, error) {
out := new(MsgArchiveTrustRegistryResponse)
err := c.cc.Invoke(ctx, "/veranablockchain.trustregistry.Msg/ArchiveTrustRegistry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServer is the server API for Msg service.
type MsgServer interface {
// UpdateParams defines a (governance) operation for updating the module
// parameters. The authority defaults to the x/gov module account.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// CreateTrustRegistry creates a new trust registry.
CreateTrustRegistry(context.Context, *MsgCreateTrustRegistry) (*MsgCreateTrustRegistryResponse, error)
AddGovernanceFrameworkDocument(context.Context, *MsgAddGovernanceFrameworkDocument) (*MsgAddGovernanceFrameworkDocumentResponse, error)
IncreaseActiveGovernanceFrameworkVersion(context.Context, *MsgIncreaseActiveGovernanceFrameworkVersion) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error)
UpdateTrustRegistry(context.Context, *MsgUpdateTrustRegistry) (*MsgUpdateTrustRegistryResponse, error)
ArchiveTrustRegistry(context.Context, *MsgArchiveTrustRegistry) (*MsgArchiveTrustRegistryResponse, error)
}
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServer struct {
}
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented")
}
func (*UnimplementedMsgServer) CreateTrustRegistry(ctx context.Context, req *MsgCreateTrustRegistry) (*MsgCreateTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateTrustRegistry not implemented")
}
func (*UnimplementedMsgServer) AddGovernanceFrameworkDocument(ctx context.Context, req *MsgAddGovernanceFrameworkDocument) (*MsgAddGovernanceFrameworkDocumentResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddGovernanceFrameworkDocument not implemented")
}
func (*UnimplementedMsgServer) IncreaseActiveGovernanceFrameworkVersion(ctx context.Context, req *MsgIncreaseActiveGovernanceFrameworkVersion) (*MsgIncreaseActiveGovernanceFrameworkVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IncreaseActiveGovernanceFrameworkVersion not implemented")
}
func (*UnimplementedMsgServer) UpdateTrustRegistry(ctx context.Context, req *MsgUpdateTrustRegistry) (*MsgUpdateTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateTrustRegistry not implemented")
}
func (*UnimplementedMsgServer) ArchiveTrustRegistry(ctx context.Context, req *MsgArchiveTrustRegistry) (*MsgArchiveTrustRegistryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ArchiveTrustRegistry not implemented")
}
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
s.RegisterService(&_Msg_serviceDesc, srv)
}
func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateParams)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateParams(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Msg/UpdateParams",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_CreateTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgCreateTrustRegistry)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).CreateTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Msg/CreateTrustRegistry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).CreateTrustRegistry(ctx, req.(*MsgCreateTrustRegistry))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_AddGovernanceFrameworkDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgAddGovernanceFrameworkDocument)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).AddGovernanceFrameworkDocument(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Msg/AddGovernanceFrameworkDocument",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).AddGovernanceFrameworkDocument(ctx, req.(*MsgAddGovernanceFrameworkDocument))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_IncreaseActiveGovernanceFrameworkVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgIncreaseActiveGovernanceFrameworkVersion)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).IncreaseActiveGovernanceFrameworkVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Msg/IncreaseActiveGovernanceFrameworkVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).IncreaseActiveGovernanceFrameworkVersion(ctx, req.(*MsgIncreaseActiveGovernanceFrameworkVersion))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_UpdateTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgUpdateTrustRegistry)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).UpdateTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Msg/UpdateTrustRegistry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).UpdateTrustRegistry(ctx, req.(*MsgUpdateTrustRegistry))
}
return interceptor(ctx, in, info, handler)
}
func _Msg_ArchiveTrustRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MsgArchiveTrustRegistry)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServer).ArchiveTrustRegistry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/veranablockchain.trustregistry.Msg/ArchiveTrustRegistry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServer).ArchiveTrustRegistry(ctx, req.(*MsgArchiveTrustRegistry))
}
return interceptor(ctx, in, info, handler)
}
var Msg_serviceDesc = _Msg_serviceDesc
var _Msg_serviceDesc = grpc.ServiceDesc{
ServiceName: "veranablockchain.trustregistry.Msg",
HandlerType: (*MsgServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateParams",
Handler: _Msg_UpdateParams_Handler,
},
{
MethodName: "CreateTrustRegistry",
Handler: _Msg_CreateTrustRegistry_Handler,
},
{
MethodName: "AddGovernanceFrameworkDocument",
Handler: _Msg_AddGovernanceFrameworkDocument_Handler,
},
{
MethodName: "IncreaseActiveGovernanceFrameworkVersion",
Handler: _Msg_IncreaseActiveGovernanceFrameworkVersion_Handler,
},
{
MethodName: "UpdateTrustRegistry",
Handler: _Msg_UpdateTrustRegistry_Handler,
},
{
MethodName: "ArchiveTrustRegistry",
Handler: _Msg_ArchiveTrustRegistry_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "veranablockchain/trustregistry/tx.proto",
}
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTx(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
if len(m.Authority) > 0 {
i -= len(m.Authority)
copy(dAtA[i:], m.Authority)
i = encodeVarintTx(dAtA, i, uint64(len(m.Authority)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgCreateTrustRegistry) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateTrustRegistry) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateTrustRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.DocDigestSri) > 0 {
i -= len(m.DocDigestSri)
copy(dAtA[i:], m.DocDigestSri)
i = encodeVarintTx(dAtA, i, uint64(len(m.DocDigestSri)))
i--
dAtA[i] = 0x32
}
if len(m.DocUrl) > 0 {
i -= len(m.DocUrl)
copy(dAtA[i:], m.DocUrl)
i = encodeVarintTx(dAtA, i, uint64(len(m.DocUrl)))
i--
dAtA[i] = 0x2a
}
if len(m.Language) > 0 {
i -= len(m.Language)
copy(dAtA[i:], m.Language)
i = encodeVarintTx(dAtA, i, uint64(len(m.Language)))
i--
dAtA[i] = 0x22
}
if len(m.Aka) > 0 {
i -= len(m.Aka)
copy(dAtA[i:], m.Aka)
i = encodeVarintTx(dAtA, i, uint64(len(m.Aka)))
i--
dAtA[i] = 0x1a
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgCreateTrustRegistryResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgCreateTrustRegistryResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgCreateTrustRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgAddGovernanceFrameworkDocument) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgAddGovernanceFrameworkDocument) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgAddGovernanceFrameworkDocument) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Version != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Version))
i--
dAtA[i] = 0x30
}
if len(m.DocDigestSri) > 0 {
i -= len(m.DocDigestSri)
copy(dAtA[i:], m.DocDigestSri)
i = encodeVarintTx(dAtA, i, uint64(len(m.DocDigestSri)))
i--
dAtA[i] = 0x2a
}
if len(m.DocUrl) > 0 {
i -= len(m.DocUrl)
copy(dAtA[i:], m.DocUrl)
i = encodeVarintTx(dAtA, i, uint64(len(m.DocUrl)))
i--
dAtA[i] = 0x22
}
if len(m.DocLanguage) > 0 {
i -= len(m.DocLanguage)
copy(dAtA[i:], m.DocLanguage)
i = encodeVarintTx(dAtA, i, uint64(len(m.DocLanguage)))
i--
dAtA[i] = 0x1a
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgUpdateTrustRegistry) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateTrustRegistry) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateTrustRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Aka) > 0 {
i -= len(m.Aka)
copy(dAtA[i:], m.Aka)
i = encodeVarintTx(dAtA, i, uint64(len(m.Aka)))
i--
dAtA[i] = 0x22
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTx(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x1a
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgUpdateTrustRegistryResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgUpdateTrustRegistryResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgUpdateTrustRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *MsgArchiveTrustRegistry) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgArchiveTrustRegistry) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgArchiveTrustRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Archive {
i--
if m.Archive {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
if m.Id != 0 {
i = encodeVarintTx(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x10
}
if len(m.Creator) > 0 {
i -= len(m.Creator)
copy(dAtA[i:], m.Creator)
i = encodeVarintTx(dAtA, i, uint64(len(m.Creator)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *MsgArchiveTrustRegistryResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *MsgArchiveTrustRegistryResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgArchiveTrustRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
offset -= sovTx(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgUpdateParams) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Authority)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = m.Params.Size()
n += 1 + l + sovTx(uint64(l))
return n
}
func (m *MsgUpdateParamsResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgCreateTrustRegistry) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Aka)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Language)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.DocUrl)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.DocDigestSri)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgCreateTrustRegistryResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgAddGovernanceFrameworkDocument) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
l = len(m.DocLanguage)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.DocUrl)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.DocDigestSri)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Version != 0 {
n += 1 + sovTx(uint64(m.Version))
}
return n
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
return n
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgUpdateTrustRegistry) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
l = len(m.Aka)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
func (m *MsgUpdateTrustRegistryResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *MsgArchiveTrustRegistry) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Creator)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
if m.Id != 0 {
n += 1 + sovTx(uint64(m.Id))
}
if m.Archive {
n += 2
}
return n
}
func (m *MsgArchiveTrustRegistryResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func sovTx(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Authority = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateTrustRegistry) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateTrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateTrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DocUrl", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DocUrl = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DocDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DocDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgCreateTrustRegistryResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgCreateTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgCreateTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgAddGovernanceFrameworkDocument) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgAddGovernanceFrameworkDocument: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgAddGovernanceFrameworkDocument: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DocLanguage", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DocLanguage = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DocUrl", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DocUrl = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DocDigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DocDigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
m.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Version |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgAddGovernanceFrameworkDocumentResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgAddGovernanceFrameworkDocumentResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgAddGovernanceFrameworkDocumentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersion) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersion: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersion: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgIncreaseActiveGovernanceFrameworkVersionResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersionResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgIncreaseActiveGovernanceFrameworkVersionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateTrustRegistry) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateTrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateTrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgUpdateTrustRegistryResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgUpdateTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgUpdateTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgArchiveTrustRegistry) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgArchiveTrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgArchiveTrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTx
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTx
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Creator = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Archive", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.Archive = bool(v != 0)
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *MsgArchiveTrustRegistryResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTx
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: MsgArchiveTrustRegistryResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgArchiveTrustRegistryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
iNdEx = preIndex
skippy, err := skipTx(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTx
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTx(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTx
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTx
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTx
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTx
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTx = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
package types
import (
"fmt"
"net/url"
"regexp"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
func (msg *MsgCreateTrustRegistry) ValidateBasic() error {
if msg.Did == "" || msg.Language == "" || msg.DocUrl == "" || msg.DocDigestSri == "" {
return fmt.Errorf("missing mandatory parameter")
}
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address: %s", err)
}
// DID syntax validation can be added here
if !isValidDID(msg.Did) {
return fmt.Errorf("invalid DID syntax")
}
// Validate AKA URI if present
if msg.Aka != "" && !isValidURI(msg.Aka) {
return fmt.Errorf("invalid AKA URI")
}
// Validate language tag (RFC1766)
if !isValidLanguageTagForCreateTrustRegistry(msg.Language) {
return fmt.Errorf("invalid language tag (must conform to RFC 1766 and be 2 characters long)")
}
// Validate URL
if !isValidURL(msg.DocUrl) {
return fmt.Errorf("invalid document URL")
}
// Validate document digest sri
if !isValidDigestSRI(msg.DocDigestSri) {
return fmt.Errorf("invalid document digest sri")
}
return nil
}
func isValidLanguageTagForCreateTrustRegistry(lang string) bool {
// RFC1766 primary tag must be exactly 2 letters
if len(lang) > 17 || len(lang) < 2 {
return false
}
// Must be lowercase letters only
match, _ := regexp.MatchString(`^[a-z]{2}$`, lang[:2]) // Check only the first two characters
return match
}
func (msg *MsgAddGovernanceFrameworkDocument) ValidateBasic() error {
if msg.Id == 0 || msg.DocLanguage == "" || msg.DocUrl == "" || msg.DocDigestSri == "" || msg.Version == 0 {
return fmt.Errorf("missing mandatory parameter")
}
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address: %s", err)
}
// Language tag validation (RFC1766)
if !isValidLanguageTag(msg.DocLanguage) {
return fmt.Errorf("invalid language tag (must conform to rfc1766)")
}
// Validate URL and hash
if _, err := url.Parse(msg.DocUrl); err != nil {
return fmt.Errorf("invalid document URL")
}
// Validate document digest sri
if !isValidDigestSRI(msg.DocDigestSri) {
return fmt.Errorf("invalid document digest sri")
}
return nil
}
func (msg *MsgIncreaseActiveGovernanceFrameworkVersion) ValidateBasic() error {
if msg.Creator == "" {
return fmt.Errorf("creator address is required")
}
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address: %s", err)
}
if msg.Id == 0 {
return fmt.Errorf("trust registry id is required")
}
return nil
}
func (msg *MsgUpdateTrustRegistry) ValidateBasic() error {
if msg.Creator == "" {
return fmt.Errorf("creator address is required")
}
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address: %s", err)
}
if msg.Id == 0 {
return fmt.Errorf("trust registry id is required")
}
if msg.Did == "" {
return fmt.Errorf("did is required")
}
if !isValidDID(msg.Did) {
return fmt.Errorf("invalid did")
}
return nil
}
func (msg *MsgArchiveTrustRegistry) ValidateBasic() error {
if msg.Creator == "" {
return fmt.Errorf("creator address is required")
}
if msg.Id == 0 {
return fmt.Errorf("trust registry id is required")
}
if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil {
return sdkerrors.ErrInvalidAddress.Wrapf("invalid creator address: %s", err)
}
return nil
}
// Helper functions
func isValidDID(did string) bool {
// Basic DID validation regex
// This is a simplified version and may need to be expanded based on specific DID method requirements
didRegex := regexp.MustCompile(`^did:[a-zA-Z0-9]+:[a-zA-Z0-9._-]+$`)
return didRegex.MatchString(did)
}
func isValidLanguageTag(lang string) bool {
// RFC1766 primary tag must be exactly 2 letters
if len(lang) != 2 {
return false
}
// Must be lowercase letters only
match, _ := regexp.MatchString(`^[a-z]{2}$`, lang)
return match
}
func isValidURI(uri string) bool {
_, err := url.ParseRequestURI(uri)
return err == nil
}
func isValidURL(urlStr string) bool {
_, err := url.ParseRequestURI(urlStr)
return err == nil
}
func isValidDigestSRI(digestSRI string) bool {
// sha256-[base64], sha384-[base64], or sha512-[base64]
sriRegex := regexp.MustCompile(`^(sha256|sha384|sha512)-[A-Za-z0-9+/]+[=]{0,2}$`)
return sriRegex.MatchString(digestSRI)
}
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: veranablockchain/trustregistry/types.proto
package types
import (
fmt "fmt"
_ "github.com/cosmos/cosmos-proto"
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types"
_ "google.golang.org/protobuf/types/known/timestamppb"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type TrustRegistry struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
Created time.Time `protobuf:"bytes,4,opt,name=created,proto3,stdtime" json:"created"`
Modified time.Time `protobuf:"bytes,5,opt,name=modified,proto3,stdtime" json:"modified"`
Archived *time.Time `protobuf:"bytes,6,opt,name=archived,proto3,stdtime" json:"archived,omitempty"`
Deposit int64 `protobuf:"varint,7,opt,name=deposit,proto3" json:"deposit,omitempty"`
Aka string `protobuf:"bytes,8,opt,name=aka,proto3" json:"aka,omitempty"`
ActiveVersion int32 `protobuf:"varint,9,opt,name=active_version,json=activeVersion,proto3" json:"active_version,omitempty"`
Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
}
func (m *TrustRegistry) Reset() { *m = TrustRegistry{} }
func (m *TrustRegistry) String() string { return proto.CompactTextString(m) }
func (*TrustRegistry) ProtoMessage() {}
func (*TrustRegistry) Descriptor() ([]byte, []int) {
return fileDescriptor_7d6a1e5c27d81066, []int{0}
}
func (m *TrustRegistry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TrustRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TrustRegistry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TrustRegistry) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrustRegistry.Merge(m, src)
}
func (m *TrustRegistry) XXX_Size() int {
return m.Size()
}
func (m *TrustRegistry) XXX_DiscardUnknown() {
xxx_messageInfo_TrustRegistry.DiscardUnknown(m)
}
var xxx_messageInfo_TrustRegistry proto.InternalMessageInfo
func (m *TrustRegistry) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *TrustRegistry) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *TrustRegistry) GetController() string {
if m != nil {
return m.Controller
}
return ""
}
func (m *TrustRegistry) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *TrustRegistry) GetModified() time.Time {
if m != nil {
return m.Modified
}
return time.Time{}
}
func (m *TrustRegistry) GetArchived() *time.Time {
if m != nil {
return m.Archived
}
return nil
}
func (m *TrustRegistry) GetDeposit() int64 {
if m != nil {
return m.Deposit
}
return 0
}
func (m *TrustRegistry) GetAka() string {
if m != nil {
return m.Aka
}
return ""
}
func (m *TrustRegistry) GetActiveVersion() int32 {
if m != nil {
return m.ActiveVersion
}
return 0
}
func (m *TrustRegistry) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
type GovernanceFrameworkVersion struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
Created time.Time `protobuf:"bytes,3,opt,name=created,proto3,stdtime" json:"created"`
Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
ActiveSince time.Time `protobuf:"bytes,5,opt,name=active_since,json=activeSince,proto3,stdtime" json:"active_since"`
}
func (m *GovernanceFrameworkVersion) Reset() { *m = GovernanceFrameworkVersion{} }
func (m *GovernanceFrameworkVersion) String() string { return proto.CompactTextString(m) }
func (*GovernanceFrameworkVersion) ProtoMessage() {}
func (*GovernanceFrameworkVersion) Descriptor() ([]byte, []int) {
return fileDescriptor_7d6a1e5c27d81066, []int{1}
}
func (m *GovernanceFrameworkVersion) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GovernanceFrameworkVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GovernanceFrameworkVersion.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GovernanceFrameworkVersion) XXX_Merge(src proto.Message) {
xxx_messageInfo_GovernanceFrameworkVersion.Merge(m, src)
}
func (m *GovernanceFrameworkVersion) XXX_Size() int {
return m.Size()
}
func (m *GovernanceFrameworkVersion) XXX_DiscardUnknown() {
xxx_messageInfo_GovernanceFrameworkVersion.DiscardUnknown(m)
}
var xxx_messageInfo_GovernanceFrameworkVersion proto.InternalMessageInfo
func (m *GovernanceFrameworkVersion) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *GovernanceFrameworkVersion) GetTrId() uint64 {
if m != nil {
return m.TrId
}
return 0
}
func (m *GovernanceFrameworkVersion) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *GovernanceFrameworkVersion) GetVersion() int32 {
if m != nil {
return m.Version
}
return 0
}
func (m *GovernanceFrameworkVersion) GetActiveSince() time.Time {
if m != nil {
return m.ActiveSince
}
return time.Time{}
}
type GovernanceFrameworkDocument struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
GfvId uint64 `protobuf:"varint,2,opt,name=gfv_id,json=gfvId,proto3" json:"gfv_id,omitempty"`
Created time.Time `protobuf:"bytes,3,opt,name=created,proto3,stdtime" json:"created"`
Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
DigestSri string `protobuf:"bytes,6,opt,name=digest_sri,json=digestSri,proto3" json:"digest_sri,omitempty"`
}
func (m *GovernanceFrameworkDocument) Reset() { *m = GovernanceFrameworkDocument{} }
func (m *GovernanceFrameworkDocument) String() string { return proto.CompactTextString(m) }
func (*GovernanceFrameworkDocument) ProtoMessage() {}
func (*GovernanceFrameworkDocument) Descriptor() ([]byte, []int) {
return fileDescriptor_7d6a1e5c27d81066, []int{2}
}
func (m *GovernanceFrameworkDocument) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GovernanceFrameworkDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GovernanceFrameworkDocument.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GovernanceFrameworkDocument) XXX_Merge(src proto.Message) {
xxx_messageInfo_GovernanceFrameworkDocument.Merge(m, src)
}
func (m *GovernanceFrameworkDocument) XXX_Size() int {
return m.Size()
}
func (m *GovernanceFrameworkDocument) XXX_DiscardUnknown() {
xxx_messageInfo_GovernanceFrameworkDocument.DiscardUnknown(m)
}
var xxx_messageInfo_GovernanceFrameworkDocument proto.InternalMessageInfo
func (m *GovernanceFrameworkDocument) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *GovernanceFrameworkDocument) GetGfvId() uint64 {
if m != nil {
return m.GfvId
}
return 0
}
func (m *GovernanceFrameworkDocument) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *GovernanceFrameworkDocument) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
func (m *GovernanceFrameworkDocument) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *GovernanceFrameworkDocument) GetDigestSri() string {
if m != nil {
return m.DigestSri
}
return ""
}
// GovernanceFrameworkVersionWithDocs extends GovernanceFrameworkVersion to include its documents
type GovernanceFrameworkVersionWithDocs struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
TrId uint64 `protobuf:"varint,2,opt,name=tr_id,json=trId,proto3" json:"tr_id,omitempty"`
Created time.Time `protobuf:"bytes,3,opt,name=created,proto3,stdtime" json:"created"`
Version int32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
ActiveSince time.Time `protobuf:"bytes,5,opt,name=active_since,json=activeSince,proto3,stdtime" json:"active_since"`
Documents []GovernanceFrameworkDocument `protobuf:"bytes,6,rep,name=documents,proto3" json:"documents"`
}
func (m *GovernanceFrameworkVersionWithDocs) Reset() { *m = GovernanceFrameworkVersionWithDocs{} }
func (m *GovernanceFrameworkVersionWithDocs) String() string { return proto.CompactTextString(m) }
func (*GovernanceFrameworkVersionWithDocs) ProtoMessage() {}
func (*GovernanceFrameworkVersionWithDocs) Descriptor() ([]byte, []int) {
return fileDescriptor_7d6a1e5c27d81066, []int{3}
}
func (m *GovernanceFrameworkVersionWithDocs) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GovernanceFrameworkVersionWithDocs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GovernanceFrameworkVersionWithDocs.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GovernanceFrameworkVersionWithDocs) XXX_Merge(src proto.Message) {
xxx_messageInfo_GovernanceFrameworkVersionWithDocs.Merge(m, src)
}
func (m *GovernanceFrameworkVersionWithDocs) XXX_Size() int {
return m.Size()
}
func (m *GovernanceFrameworkVersionWithDocs) XXX_DiscardUnknown() {
xxx_messageInfo_GovernanceFrameworkVersionWithDocs.DiscardUnknown(m)
}
var xxx_messageInfo_GovernanceFrameworkVersionWithDocs proto.InternalMessageInfo
func (m *GovernanceFrameworkVersionWithDocs) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *GovernanceFrameworkVersionWithDocs) GetTrId() uint64 {
if m != nil {
return m.TrId
}
return 0
}
func (m *GovernanceFrameworkVersionWithDocs) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *GovernanceFrameworkVersionWithDocs) GetVersion() int32 {
if m != nil {
return m.Version
}
return 0
}
func (m *GovernanceFrameworkVersionWithDocs) GetActiveSince() time.Time {
if m != nil {
return m.ActiveSince
}
return time.Time{}
}
func (m *GovernanceFrameworkVersionWithDocs) GetDocuments() []GovernanceFrameworkDocument {
if m != nil {
return m.Documents
}
return nil
}
// TrustRegistryWithVersions extends TrustRegistry to include its versions with nested documents
type TrustRegistryWithVersions struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"`
Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
Created time.Time `protobuf:"bytes,4,opt,name=created,proto3,stdtime" json:"created"`
Modified time.Time `protobuf:"bytes,5,opt,name=modified,proto3,stdtime" json:"modified"`
Archived *time.Time `protobuf:"bytes,6,opt,name=archived,proto3,stdtime" json:"archived,omitempty"`
Deposit int64 `protobuf:"varint,7,opt,name=deposit,proto3" json:"deposit,omitempty"`
Aka string `protobuf:"bytes,8,opt,name=aka,proto3" json:"aka,omitempty"`
ActiveVersion int32 `protobuf:"varint,9,opt,name=active_version,json=activeVersion,proto3" json:"active_version,omitempty"`
Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
Versions []GovernanceFrameworkVersionWithDocs `protobuf:"bytes,11,rep,name=versions,proto3" json:"versions"`
}
func (m *TrustRegistryWithVersions) Reset() { *m = TrustRegistryWithVersions{} }
func (m *TrustRegistryWithVersions) String() string { return proto.CompactTextString(m) }
func (*TrustRegistryWithVersions) ProtoMessage() {}
func (*TrustRegistryWithVersions) Descriptor() ([]byte, []int) {
return fileDescriptor_7d6a1e5c27d81066, []int{4}
}
func (m *TrustRegistryWithVersions) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TrustRegistryWithVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TrustRegistryWithVersions.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *TrustRegistryWithVersions) XXX_Merge(src proto.Message) {
xxx_messageInfo_TrustRegistryWithVersions.Merge(m, src)
}
func (m *TrustRegistryWithVersions) XXX_Size() int {
return m.Size()
}
func (m *TrustRegistryWithVersions) XXX_DiscardUnknown() {
xxx_messageInfo_TrustRegistryWithVersions.DiscardUnknown(m)
}
var xxx_messageInfo_TrustRegistryWithVersions proto.InternalMessageInfo
func (m *TrustRegistryWithVersions) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *TrustRegistryWithVersions) GetDid() string {
if m != nil {
return m.Did
}
return ""
}
func (m *TrustRegistryWithVersions) GetController() string {
if m != nil {
return m.Controller
}
return ""
}
func (m *TrustRegistryWithVersions) GetCreated() time.Time {
if m != nil {
return m.Created
}
return time.Time{}
}
func (m *TrustRegistryWithVersions) GetModified() time.Time {
if m != nil {
return m.Modified
}
return time.Time{}
}
func (m *TrustRegistryWithVersions) GetArchived() *time.Time {
if m != nil {
return m.Archived
}
return nil
}
func (m *TrustRegistryWithVersions) GetDeposit() int64 {
if m != nil {
return m.Deposit
}
return 0
}
func (m *TrustRegistryWithVersions) GetAka() string {
if m != nil {
return m.Aka
}
return ""
}
func (m *TrustRegistryWithVersions) GetActiveVersion() int32 {
if m != nil {
return m.ActiveVersion
}
return 0
}
func (m *TrustRegistryWithVersions) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
func (m *TrustRegistryWithVersions) GetVersions() []GovernanceFrameworkVersionWithDocs {
if m != nil {
return m.Versions
}
return nil
}
func init() {
proto.RegisterType((*TrustRegistry)(nil), "veranablockchain.trustregistry.TrustRegistry")
proto.RegisterType((*GovernanceFrameworkVersion)(nil), "veranablockchain.trustregistry.GovernanceFrameworkVersion")
proto.RegisterType((*GovernanceFrameworkDocument)(nil), "veranablockchain.trustregistry.GovernanceFrameworkDocument")
proto.RegisterType((*GovernanceFrameworkVersionWithDocs)(nil), "veranablockchain.trustregistry.GovernanceFrameworkVersionWithDocs")
proto.RegisterType((*TrustRegistryWithVersions)(nil), "veranablockchain.trustregistry.TrustRegistryWithVersions")
}
func init() {
proto.RegisterFile("veranablockchain/trustregistry/types.proto", fileDescriptor_7d6a1e5c27d81066)
}
var fileDescriptor_7d6a1e5c27d81066 = []byte{
// 645 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xdd, 0x6a, 0x13, 0x41,
0x14, 0xce, 0x24, 0x9b, 0xbf, 0x89, 0x2d, 0x3a, 0x56, 0x98, 0x46, 0xdc, 0x86, 0x80, 0x10, 0x84,
0xee, 0x42, 0xbd, 0x11, 0x84, 0xa2, 0xa1, 0x58, 0xbc, 0xdd, 0x16, 0x15, 0x6f, 0xc2, 0x64, 0x67,
0xb2, 0x19, 0xb2, 0xbb, 0x13, 0x66, 0x66, 0x57, 0xfb, 0x16, 0x7d, 0x02, 0x9f, 0xc2, 0x87, 0xe8,
0x8d, 0x50, 0xbd, 0xf2, 0x4a, 0xa5, 0xf5, 0x41, 0x64, 0x77, 0x76, 0xdb, 0xb4, 0xd6, 0x62, 0x8b,
0x17, 0x22, 0xde, 0x84, 0x73, 0xce, 0x9c, 0xef, 0xfc, 0x7d, 0x27, 0x67, 0xe1, 0x83, 0x94, 0x49,
0x12, 0x93, 0x71, 0x28, 0xfc, 0x99, 0x3f, 0x25, 0x3c, 0x76, 0xb5, 0x4c, 0x94, 0x96, 0x2c, 0xe0,
0x4a, 0xcb, 0x3d, 0x57, 0xef, 0xcd, 0x99, 0x72, 0xe6, 0x52, 0x68, 0x81, 0xec, 0xf3, 0xbe, 0xce,
0x19, 0xdf, 0xee, 0x2d, 0x12, 0xf1, 0x58, 0xb8, 0xf9, 0xaf, 0x81, 0x74, 0x57, 0x02, 0x11, 0x88,
0x5c, 0x74, 0x33, 0xa9, 0xb0, 0xae, 0xfa, 0x42, 0x45, 0x42, 0x8d, 0xcc, 0x83, 0x51, 0x8a, 0xa7,
0xb5, 0x40, 0x88, 0x20, 0x64, 0x6e, 0xae, 0x8d, 0x93, 0x89, 0xab, 0x79, 0xc4, 0x94, 0x26, 0xd1,
0xdc, 0x38, 0xf4, 0xdf, 0xd5, 0xe0, 0xd2, 0x6e, 0x96, 0xd6, 0x2b, 0xd2, 0xa2, 0x65, 0x58, 0xe5,
0x14, 0x83, 0x1e, 0x18, 0x58, 0x5e, 0x95, 0x53, 0x74, 0x13, 0xd6, 0x28, 0xa7, 0xb8, 0xda, 0x03,
0x83, 0xb6, 0x97, 0x89, 0xe8, 0x11, 0x84, 0xbe, 0x88, 0xb5, 0x14, 0x61, 0xc8, 0x24, 0xae, 0x65,
0x0f, 0x43, 0xfc, 0xe9, 0xfd, 0xfa, 0x4a, 0x91, 0xfa, 0x29, 0xa5, 0x92, 0x29, 0xb5, 0xa3, 0x25,
0x8f, 0x03, 0x6f, 0xc1, 0x17, 0x6d, 0xc2, 0xa6, 0x2f, 0x19, 0xd1, 0x8c, 0x62, 0xab, 0x07, 0x06,
0x9d, 0x8d, 0xae, 0x63, 0x0a, 0x74, 0xca, 0x02, 0x9d, 0xdd, 0xb2, 0xc0, 0x61, 0xeb, 0xe0, 0xcb,
0x5a, 0x65, 0xff, 0xeb, 0x1a, 0xf0, 0x4a, 0x10, 0x7a, 0x02, 0x5b, 0x91, 0xa0, 0x7c, 0xc2, 0x19,
0xc5, 0xf5, 0x2b, 0x04, 0x38, 0x41, 0x65, 0x11, 0x88, 0xf4, 0xa7, 0x3c, 0x65, 0x14, 0x37, 0x7e,
0x2b, 0x02, 0x30, 0x11, 0x4a, 0x14, 0xc2, 0xb0, 0x49, 0xd9, 0x5c, 0x28, 0xae, 0x71, 0xb3, 0x07,
0x06, 0x35, 0xaf, 0x54, 0xb3, 0x49, 0x91, 0x19, 0xc1, 0x2d, 0x33, 0x29, 0x32, 0x23, 0xe8, 0x3e,
0x5c, 0x26, 0xbe, 0xe6, 0x29, 0x1b, 0xa5, 0x4c, 0x2a, 0x2e, 0x62, 0xdc, 0xee, 0x81, 0x41, 0xdd,
0x5b, 0x32, 0xd6, 0x17, 0xc6, 0x88, 0xba, 0xb0, 0x15, 0x92, 0x38, 0x48, 0x48, 0xc0, 0x30, 0xcc,
0xd1, 0x27, 0x7a, 0xff, 0x3b, 0x80, 0xdd, 0x6d, 0x91, 0x32, 0x19, 0x93, 0xd8, 0x67, 0xcf, 0x24,
0x89, 0xd8, 0x1b, 0x21, 0x67, 0x25, 0xf4, 0x3c, 0x5b, 0xb7, 0x61, 0x5d, 0xcb, 0x51, 0xc1, 0x97,
0xe5, 0x59, 0x5a, 0x3e, 0xa7, 0x8b, 0x63, 0xaf, 0x5d, 0x67, 0xec, 0x18, 0x36, 0xcb, 0xfa, 0xad,
0xbc, 0xfe, 0x52, 0x45, 0xdb, 0xf0, 0x46, 0xd1, 0xa0, 0xe2, 0xb1, 0xcf, 0xae, 0x44, 0x4a, 0xc7,
0x20, 0x77, 0x32, 0x60, 0xff, 0x23, 0x80, 0x77, 0x2f, 0x68, 0x73, 0x4b, 0xf8, 0x49, 0xc4, 0x62,
0xfd, 0x53, 0x9f, 0x77, 0x60, 0x23, 0x98, 0xa4, 0xa7, 0x8d, 0xd6, 0x83, 0x49, 0xfa, 0x07, 0x3a,
0x5d, 0x64, 0xc2, 0x3a, 0xcb, 0x44, 0x46, 0x6f, 0x22, 0xc3, 0xbc, 0xc5, 0xb6, 0x97, 0x89, 0xe8,
0x1e, 0x84, 0x94, 0x07, 0x4c, 0xe9, 0x91, 0x92, 0x3c, 0x5f, 0xa7, 0xb6, 0xd7, 0x36, 0x96, 0x1d,
0xc9, 0xfb, 0x1f, 0xaa, 0xb0, 0xff, 0x6b, 0xea, 0x5e, 0x72, 0x3d, 0xdd, 0x12, 0xbe, 0xfa, 0x57,
0x28, 0x44, 0x23, 0xd8, 0xa6, 0x05, 0x5d, 0x0a, 0x37, 0x7a, 0xb5, 0x41, 0x67, 0xe3, 0xb1, 0x73,
0xf9, 0x8d, 0x73, 0x2e, 0xa1, 0x7c, 0x68, 0x65, 0x69, 0xbc, 0xd3, 0x98, 0xfd, 0x7d, 0x0b, 0xae,
0x9e, 0xb9, 0x55, 0xd9, 0x08, 0x8b, 0x69, 0xaa, 0xff, 0x77, 0xeb, 0xaf, 0xba, 0x5b, 0x88, 0xc2,
0x56, 0x81, 0x55, 0xb8, 0x93, 0x2f, 0xc3, 0xf0, 0x1a, 0xcb, 0x70, 0xee, 0xbf, 0x52, 0xec, 0xc4,
0x49, 0xe4, 0xe1, 0xab, 0x83, 0x23, 0x1b, 0x1c, 0x1e, 0xd9, 0xe0, 0xdb, 0x91, 0x0d, 0xf6, 0x8f,
0xed, 0xca, 0xe1, 0xb1, 0x5d, 0xf9, 0x7c, 0x6c, 0x57, 0x5e, 0x6f, 0x06, 0x5c, 0x4f, 0x93, 0xb1,
0xe3, 0x8b, 0xc8, 0x35, 0x79, 0xd7, 0x43, 0x32, 0x56, 0xa5, 0xbc, 0xf0, 0x85, 0x7e, 0x7b, 0xd1,
0x37, 0x7a, 0xdc, 0xc8, 0xc7, 0xfa, 0xf0, 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdc, 0xb4, 0x5b,
0x63, 0xd2, 0x07, 0x00, 0x00,
}
func (m *TrustRegistry) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TrustRegistry) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TrustRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Language) > 0 {
i -= len(m.Language)
copy(dAtA[i:], m.Language)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Language)))
i--
dAtA[i] = 0x52
}
if m.ActiveVersion != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.ActiveVersion))
i--
dAtA[i] = 0x48
}
if len(m.Aka) > 0 {
i -= len(m.Aka)
copy(dAtA[i:], m.Aka)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Aka)))
i--
dAtA[i] = 0x42
}
if m.Deposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Deposit))
i--
dAtA[i] = 0x38
}
if m.Archived != nil {
n1, err1 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Archived, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Archived):])
if err1 != nil {
return 0, err1
}
i -= n1
i = encodeVarintTypes(dAtA, i, uint64(n1))
i--
dAtA[i] = 0x32
}
n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Modified, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintTypes(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x2a
n3, err3 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err3 != nil {
return 0, err3
}
i -= n3
i = encodeVarintTypes(dAtA, i, uint64(n3))
i--
dAtA[i] = 0x22
if len(m.Controller) > 0 {
i -= len(m.Controller)
copy(dAtA[i:], m.Controller)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Controller)))
i--
dAtA[i] = 0x1a
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *GovernanceFrameworkVersion) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GovernanceFrameworkVersion) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GovernanceFrameworkVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ActiveSince, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveSince):])
if err4 != nil {
return 0, err4
}
i -= n4
i = encodeVarintTypes(dAtA, i, uint64(n4))
i--
dAtA[i] = 0x2a
if m.Version != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Version))
i--
dAtA[i] = 0x20
}
n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err5 != nil {
return 0, err5
}
i -= n5
i = encodeVarintTypes(dAtA, i, uint64(n5))
i--
dAtA[i] = 0x1a
if m.TrId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.TrId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *GovernanceFrameworkDocument) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GovernanceFrameworkDocument) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GovernanceFrameworkDocument) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.DigestSri) > 0 {
i -= len(m.DigestSri)
copy(dAtA[i:], m.DigestSri)
i = encodeVarintTypes(dAtA, i, uint64(len(m.DigestSri)))
i--
dAtA[i] = 0x32
}
if len(m.Url) > 0 {
i -= len(m.Url)
copy(dAtA[i:], m.Url)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Url)))
i--
dAtA[i] = 0x2a
}
if len(m.Language) > 0 {
i -= len(m.Language)
copy(dAtA[i:], m.Language)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Language)))
i--
dAtA[i] = 0x22
}
n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err6 != nil {
return 0, err6
}
i -= n6
i = encodeVarintTypes(dAtA, i, uint64(n6))
i--
dAtA[i] = 0x1a
if m.GfvId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.GfvId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *GovernanceFrameworkVersionWithDocs) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *GovernanceFrameworkVersionWithDocs) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *GovernanceFrameworkVersionWithDocs) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Documents) > 0 {
for iNdEx := len(m.Documents) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Documents[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTypes(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x32
}
}
n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.ActiveSince, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveSince):])
if err7 != nil {
return 0, err7
}
i -= n7
i = encodeVarintTypes(dAtA, i, uint64(n7))
i--
dAtA[i] = 0x2a
if m.Version != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Version))
i--
dAtA[i] = 0x20
}
n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err8 != nil {
return 0, err8
}
i -= n8
i = encodeVarintTypes(dAtA, i, uint64(n8))
i--
dAtA[i] = 0x1a
if m.TrId != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.TrId))
i--
dAtA[i] = 0x10
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *TrustRegistryWithVersions) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *TrustRegistryWithVersions) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TrustRegistryWithVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Versions) > 0 {
for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Versions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTypes(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x5a
}
}
if len(m.Language) > 0 {
i -= len(m.Language)
copy(dAtA[i:], m.Language)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Language)))
i--
dAtA[i] = 0x52
}
if m.ActiveVersion != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.ActiveVersion))
i--
dAtA[i] = 0x48
}
if len(m.Aka) > 0 {
i -= len(m.Aka)
copy(dAtA[i:], m.Aka)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Aka)))
i--
dAtA[i] = 0x42
}
if m.Deposit != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Deposit))
i--
dAtA[i] = 0x38
}
if m.Archived != nil {
n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.Archived, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Archived):])
if err9 != nil {
return 0, err9
}
i -= n9
i = encodeVarintTypes(dAtA, i, uint64(n9))
i--
dAtA[i] = 0x32
}
n10, err10 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Modified, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified):])
if err10 != nil {
return 0, err10
}
i -= n10
i = encodeVarintTypes(dAtA, i, uint64(n10))
i--
dAtA[i] = 0x2a
n11, err11 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created):])
if err11 != nil {
return 0, err11
}
i -= n11
i = encodeVarintTypes(dAtA, i, uint64(n11))
i--
dAtA[i] = 0x22
if len(m.Controller) > 0 {
i -= len(m.Controller)
copy(dAtA[i:], m.Controller)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Controller)))
i--
dAtA[i] = 0x1a
}
if len(m.Did) > 0 {
i -= len(m.Did)
copy(dAtA[i:], m.Did)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Did)))
i--
dAtA[i] = 0x12
}
if m.Id != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Id))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
offset -= sovTypes(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *TrustRegistry) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.Controller)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified)
n += 1 + l + sovTypes(uint64(l))
if m.Archived != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Archived)
n += 1 + l + sovTypes(uint64(l))
}
if m.Deposit != 0 {
n += 1 + sovTypes(uint64(m.Deposit))
}
l = len(m.Aka)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.ActiveVersion != 0 {
n += 1 + sovTypes(uint64(m.ActiveVersion))
}
l = len(m.Language)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
return n
}
func (m *GovernanceFrameworkVersion) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
if m.TrId != 0 {
n += 1 + sovTypes(uint64(m.TrId))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
if m.Version != 0 {
n += 1 + sovTypes(uint64(m.Version))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveSince)
n += 1 + l + sovTypes(uint64(l))
return n
}
func (m *GovernanceFrameworkDocument) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
if m.GfvId != 0 {
n += 1 + sovTypes(uint64(m.GfvId))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
l = len(m.Language)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.Url)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.DigestSri)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
return n
}
func (m *GovernanceFrameworkVersionWithDocs) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
if m.TrId != 0 {
n += 1 + sovTypes(uint64(m.TrId))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
if m.Version != 0 {
n += 1 + sovTypes(uint64(m.Version))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.ActiveSince)
n += 1 + l + sovTypes(uint64(l))
if len(m.Documents) > 0 {
for _, e := range m.Documents {
l = e.Size()
n += 1 + l + sovTypes(uint64(l))
}
}
return n
}
func (m *TrustRegistryWithVersions) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Id != 0 {
n += 1 + sovTypes(uint64(m.Id))
}
l = len(m.Did)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = len(m.Controller)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Created)
n += 1 + l + sovTypes(uint64(l))
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Modified)
n += 1 + l + sovTypes(uint64(l))
if m.Archived != nil {
l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.Archived)
n += 1 + l + sovTypes(uint64(l))
}
if m.Deposit != 0 {
n += 1 + sovTypes(uint64(m.Deposit))
}
l = len(m.Aka)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.ActiveVersion != 0 {
n += 1 + sovTypes(uint64(m.ActiveVersion))
}
l = len(m.Language)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if len(m.Versions) > 0 {
for _, e := range m.Versions {
l = e.Size()
n += 1 + l + sovTypes(uint64(l))
}
}
return n
}
func sovTypes(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTypes(x uint64) (n int) {
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *TrustRegistry) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TrustRegistry: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TrustRegistry: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Modified, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Archived == nil {
m.Archived = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Archived, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
m.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 9:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ActiveVersion", wireType)
}
m.ActiveVersion = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ActiveVersion |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GovernanceFrameworkVersion) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GovernanceFrameworkVersion: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GovernanceFrameworkVersion: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
m.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
m.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Version |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ActiveSince", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ActiveSince, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GovernanceFrameworkDocument) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GovernanceFrameworkDocument: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GovernanceFrameworkDocument: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field GfvId", wireType)
}
m.GfvId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.GfvId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Url = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DigestSri", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DigestSri = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GovernanceFrameworkVersionWithDocs) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: GovernanceFrameworkVersionWithDocs: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: GovernanceFrameworkVersionWithDocs: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TrId", wireType)
}
m.TrId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TrId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
m.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Version |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ActiveSince", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.ActiveSince, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Documents", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Documents = append(m.Documents, GovernanceFrameworkDocument{})
if err := m.Documents[len(m.Documents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *TrustRegistryWithVersions) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: TrustRegistryWithVersions: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: TrustRegistryWithVersions: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
m.Id = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Id |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Did", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Did = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Controller = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Modified, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Archived", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Archived == nil {
m.Archived = new(time.Time)
}
if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.Archived, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
}
m.Deposit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deposit |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 8:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Aka", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Aka = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 9:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ActiveVersion", wireType)
}
m.ActiveVersion = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ActiveVersion |= int32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 10:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Language = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 11:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Versions = append(m.Versions, GovernanceFrameworkVersionWithDocs{})
if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTypes(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
case 1:
iNdEx += 8
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowTypes
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthTypes
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTypes
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTypes
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)